Hi,
Is there a way I can remove some of the links under the users photos on their profile page? For example, I am not allowing videos, but there is a "Profile Video" link on the users profile page.
Is there a file I need to edit?
Thanks
Hi,
Is there a way I can remove some of the links under the users photos on their profile page? For example, I am not allowing videos, but there is a "Profile Video" link on the users profile page.
Is there a file I need to edit?
Thanks |
Do a search in the Forums for Action Field items and you will find it. I apologize I can't remember at this moment the exact spot, I know it's in inc/ I think it's inc/actions.inc.php file, but please don't quote me. When you find it you only need to comment them out. |
Hi, I did a quick search but couldn't really find anything.
I also checked all actions.inc files and they all seem to be in respective folders. I.E ray/modules/video etc - there is no overal file.
Any other suggestions? |
This has been talked about before, and it's pretty simple to follow for those of us who are used to Dolphin, for the newbies it might not be I just realized, so here it is again. I'm only doing this because he actually used a good title.
To remove certain items from the Profile Actions Field Menu please do the following:
Open:
templates/base/scripts/BxBaseProfileView.php
Locate the following:
/* * * * Ray IM Integration [END]* * * */ $ret .= $oTemplMenu -> getActionsMenuItem( 'action_send.gif', _t('_SendLetter'), "compose.php?ID=$profileID" ); $ret .= $oTemplMenu -> getActionsMenuItem( 'action_email.gif', _t('_Send eCard'), "javascript:void(0);", '', '', "window.open( 'eCards/send_eCard.php?to={$this -> _iProfileID}', '', 'width=500,height=600,scrollbars=yes' );" ); $ret .= $oTemplMenu -> getActionsMenuItem( 'action_fave.gif', _t('_Fave'), "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=hot&ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" ); $ret .= $oTemplMenu -> getActionsMenuItem( 'action_friends.gif', _t('_Befriend remove'),"javascript:void(0);", '', '', "window.open( 'list_pop.php?action=delfriend&ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" ); $ret .= $oTemplMenu -> getActionsMenuItem( 'action_friends.gif', _t('_Befriend'),"javascript:void(0);", '', '', "window.open( 'list_pop.php?action=friend&ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" ); $ret .= $oTemplMenu -> getActionsMenuItem( 'action_share.gif', _t('_Share'), "javascript:void(0);", '', '', "return launchTellFriendProfile($profileID);" ); //$ret .= $oTemplMenu -> getActionsMenuItem( 'action_greet.gif', _t('_Greet'), "javascript:void(0);", '', '', "window.open( 'greet.php?sendto=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" ); //if ( !$this -> oTemplConfig -> bAnonymousMode ) //$ret .= $oTemplMenu -> getActionsMenuItem( 'action_email.gif', _t('_Get E-mail'), "javascript:void(0);", '', '', "window.open( 'freemail.php?ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" ); $ret .= '<div class="menu_item_block_right">'; $ret .= $oTemplMenu -> getActionsMenuItem( 'action_photos.gif', $this->getLinkStat('prPhoto', _t('_ProfilePhotos'), $profileID), "photos_gallery.php?ID=$profileID"); // $ret .= $oTemplMenu -> getActionsMenuItem( 'action_videos.gif', _t('_ProfileVideos'), "javascript:void(0);", '', '', "openRayWidget( 'video', 'player', '$profileID' );" ); //$ret .= $oTemplMenu -> getActionsMenuItem( 'action_music.gif', $this->getLinkStat('prMusic', _t('_ProfileMusic'), $profileID), "javascript:void(0);", '', '', "openRayWidget( 'mp3', 'player', '$profileID', '" . getPassword( $memberID ) . "', '$memberID');"); $ret .= $oTemplMenu -> getActionsMenuItem( 'action_block.gif', _t('_Block'), "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=block&ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" ); $ret .= '</div>'; $ret .= '<div class="clear_both"></div>'; $ret .= '</div>'; $ret .= '</div>'; } if ($bNoDB) { return $ret; } else { echo DesignBoxContent( _t( $sCaption ), $ret, 1 ); } }
Note, the order has been changed as this is on a site that will go from build phase to production, so the menu was balanced after some items we did not want were commented out, but you will be able to find what you want here. Just go ahead and hop in there, use a // to comment out the items you don't want in the menu.
Do not change the title here, if you wish to change the title of something in the Actions Field Box then please use the Language Keys to make that change.
|
Thank you very much! |