Removing Actions from...ermm..Actions

moe78z posted 17th of May 2008 in Community Voice. 3 comments.
Hi everyone,

I'm not going to use Music Profiles in my members profiles. So I removed music from the navigation menus and also under profiles. So there's no way anyone can hear or upload any music. However, whenever a member logs in and browses other members profiles, they would see the "Actions" panel. In the actions panel, there are options like "Send Letter", "Profile Photos" and "Profile Music". How do I remove this "Profile Music" option? I've looked everywhere and I can't find it.

I'm using Dolphin 6.1.1.
 
Comments
·Oldest
·Top
Please login to post a comment.
gameutopia
Open up
/templates/base/scripts/BxBaseProfileView.php

find:
$ret = '<div class="menuBlock">';
$ret .= '<div class="menu_item_block">';
$ret .= '<div class="menu_item_block_left">';
$ret .= $oTemplMenu -> getActionsMenuItem( 'action_send.gif', _t('_SendLetter'), "compose.php?ID=$profileID" );
$ret .= $oTemplMenu -> getActionsMenuItem( 'action_fave.gif', _t('_Fave'), "javascript:void(0);", '', '', see more "window.open( 'list_pop.php?action=hot&amp;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&amp;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_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' );" );
//$ret .= $IMNow;
....etc...etc

comment out what you don't want to show such as:
//$ret .= $oTemplMenu -> getActionsMenuItem( 'action_music.gif', $this->getLinkStat('prMusic', _t('_ProfileMusic'), $profileID), "javascript:void(0);", '', '', "openRayWidget( 'mp3', 'player', '$profileID', '" . getPassword( $memberID ) . "', '$memberID');");

For profile music. Save the changes. Comment out any others.

Commenting out is just adding:
//

Before the code.

By commenting out rather than removing it totally you can simply remove the commenting(//) if you wish to re-enable at a later time.
njuelbli
Hello

This was useful - but how to add ex guestbook and blog

Nils
 
 
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.
PET:0.04761004447937