Photo Album Flash--Profile Albums Flash Slideshow Gallery`s Module

Hello I have just purchased this module from deratmedia

Profile Albums Flash Slideshow Gallery`s

And quickly discovered that the profile block only works if the member actively places their albums in this Module, rather than this done automatically. I need this only for the members profile pages and wanted to spice the viewing of member pictures up a little! But it sort of defeats the object that my members need to navigate and add to this useful module for it to display? Otherwise it remain empty on the profile page and looks ugly!!

Does anyone have any ideas on how to edit this file to make it defaulted to display the members albums automatically, without the member having to manually add photos from their existing albums for it to display in the flash block on the profile page?? Along with the installation package to the root you have to edit the following file:

ANY HELP WOULD BE GREAT. TO DERATMEDIA:: I FIGURED THIS IS OK BECAUSE YOU NEED THE ROOT FOLDER TO BE UPLOADED FOR THIS TO WORK SO I AM NOT COMPRIMISING THE INTEGRITY OF THE MODULE THANKS FOR UNDERSTANDING BUT I NEED SOME HELP ON THIS.

So here is the modification code within this file inc/classes/BxDolFilesModule.php

 

 function actionBrowse ($sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '', $sParamValue3 = '' , $sParamValue4 = '') { $bAlbumView = false; if ($sParamName == 'album' or $sParamName == 'flash' && $sParamValue1 == 'owner' ) { $bAlbumView = true; $aAlbumInfo = $this->oAlbums->getAlbumInfo(array('fileUri' => $sParamValue, 'owner' => getID($sParamValue2)), array('ID', 'Caption', 'Owner', 'AllowAlbumView')); $GLOBALS['oTopMenu']->setCustomSubHeader($aAlbumInfo['Caption']); $GLOBALS['oTopMenu']->setCustomBreadcrumbs(array( _t('_' . $this->_oConfig->getMainPrefix()) => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'home/', $aAlbumInfo['Caption'] => '', )); $sAlbumPreview = ''; if ($this->_oConfig->getGlParam('album_slideshow_on') == 'on') { $sAlbumID = $aAlbumInfo['ID']; $sAlbumOwner = getNickName($aAlbumInfo['Owner']); $sOwnerID = $aAlbumInfo['Owner']; $sAlbumUri = $sParamValue; $mode = $_GET['showMode']; if ($mode == '') $mode = 'simpleViewer'; $sSimpleViewer = _t('_bx_slideshow_simpleViewer'); $sPostcardViewer = _t('_bx_slideshow_postcardViewer'); $sTiltViewer = _t('_bx_slideshow__tiltViewer'); $aDBTopMenu = array(); foreach (array( 'simpleViewer', 'tiltViewer', 'postcardViewer', 'cooliris') as $myMode) { switch ( $myMode ) { case 'simpleViewer': if( $mode == $myMode ) { bx_import('BxDolService'); $sAlbumPreview = BxDolService::call('ultimate_photos', 'simple_viewer', array($sAlbumID,$sOwnerID)); } $modeTitle = simpleViewer; break; case 'postcardViewer': if( $mode == $myMode ) { bx_import('BxDolService'); $sAlbumPreview = BxDolService::call('ultimate_photos', 'postcard_viewer', array($sAlbumID,$sOwnerID)); } $modeTitle = postcardViewer; break; case 'tiltViewer': if( $mode == $myMode ) { bx_import('BxDolService'); $sAlbumPreview = BxDolService::call('ultimate_photos', 'tilt_viewer', array($sAlbumID,$sOwnerID)); } $modeTitle = tiltViewer; break; case 'cooliris': if( $mode == $myMode ) { $sAlbumPreview = $this->_oTemplate->getAlbumPreview('rss/album/' . $sParamValue . '/owner/' . $sParamValue2); } $modeTitle = cooliris; break; } $sLink = "{$_SERVER['PHP_SELF']}?"; $sLink .= 'showMode=$myMode'; $aDBTopMenu[$modeTitle] = array('href' => $sLink, 'dynamic' => false, 'active' => ( $myMode == $mode )); } if (strlen($sAlbumPreview) > 0) { $sLinks = BX_DOL_URL_ROOT . 'm/photos/browse/flash/'.$sAlbumUri.'/owner/'.$sAlbumOwner; bx_import('BxDolService'); $sAlbumPreview = DesignBoxContent($aAlbumInfo['Caption'], $sAlbumPreview, 1, BxDolService::call('ultimate_photos', 'slideshow_top_menu', array($aDBTopMenu,$sLinks))); } } } if (!empty($aAlbumInfo) && $aAlbumInfo['Owner'] == $this->_iProfileId && $sParamValue2 === getNickName($this->_iProfileId) && $sParamName == 'album' ) { $sCode = $this->actionAlbumsViewMy('main_objects', $sParamValue, $sParamValue1, $sParamValue2, $sParamValue3); return ''; Another Modification is made to this file: modules/boonex/photos/classes/BxPhotosPageAlbumsMy.php by simply adding this:::: 'myflash' => array( 'blocks' => array('adminAlbumShort', 'albumObjects'), 'level' => 1, 'link' => 'browse/flash' ),

Quote · 18 Jun 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.