Removing Items from -Action- Block

Hello all,

I was wondering if anyone knew of any way to remove certain items from the "Action" block (the area where the Befriend, Fave, Report, and other member functionalities are listed). I don't necessarily want to disable the functionality within my Dolphin installation, since I might re-enable some of the functions in the future. For the time being, however, my site has no need of Fave, Greeting, Profile Videos, Profile Music, Share, Report, and Block. If anyone has any tips on removing items from this list, I'd greatly appreciate it.

Also, if there is a way to re-order the items that appear in the block, that would be useful as well.

Thanks!
djd

Quote · 24 Aug 2009

Let's see here, you'd like to know where to edit the actions menu.  Probably  a good place to look is in templates/base/scripts/BxBaseProfileView.php

 

Maybe look for code like this:

 

/* * * * Ray IM Integration [END]* * * */
  
  $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);", '', '', "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' );" );
    if(is_friends((int)$_COOKIE['memberID'], $profileID))
  $ret .= $oTemplMenu -> getActionsMenuItem( 'action_friends.gif', _t('_Befriend remove'),"javascript:void(0);", '', '', "window.open( 'list_pop.php?action=delfriend&amp;ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" );
 else
    $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;
    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>';
    $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', $this->getLinkStat('prVideo', _t('_ProfileVideos'), $profileID), "javascript:void(0);", '', '', "openRayWidget( 'video', 'player', '$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_share.gif', _t('_Share'),   "javascript:void(0);", '', '', "return launchTellFriendProfile($profileID);" );
    $ret .= $oTemplMenu -> getActionsMenuItem( 'action_report.gif', _t('_Report'),   "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=spam&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_block.gif', _t('_Block'),    "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=block&amp;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 );
  }
 }


Now let's take a look at what you would like to do:

 

1.  Disable Fave, Greetings, Profile Videos, Profile Music, Share, Report and Block.  I would recommend leaving in Share (it helps them invite new people to your site), Report (Members can proactively help police your site for spammers and such) and Block as it enables people to be able to get rid of stalkers.  But the choice is yours. 

 

2.  You wish to change the order of things, move them up and down, maybe from column to column and so on.  Okay, we will handle that second, due to the fact that if we remove all the items your asking for, we'll need to rearrange these columns or you'll have one really long and one really short.  


 

So, to complete Step 1.  Please replace the above code with this:

 

 

 

/* * * * Ray IM Integration [END]* * * */
  
  $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);", '', '', "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' );" );
    //if(is_friends((int)$_COOKIE['memberID'], $profileID))
  //$ret .= $oTemplMenu -> getActionsMenuItem( 'action_friends.gif', _t('_Befriend remove'),"javascript:void(0);", '', '', "window.open( 'list_pop.php?action=delfriend&amp;ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" );
 //else
  //  $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;
    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>';
    $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', $this->getLinkStat('prVideo', _t('_ProfileVideos'), $profileID), "javascript:void(0);", '', '', "openRayWidget( 'video', 'player', '$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_share.gif', _t('_Share'),   "javascript:void(0);", '', '', "return launchTellFriendProfile($profileID);" );
    //$ret .= $oTemplMenu -> getActionsMenuItem( 'action_report.gif', _t('_Report'),   "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=spam&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_block.gif', _t('_Block'),    "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=block&amp;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, I have just shut down every item you listed by simply commenting out those lines/strings of code.  Save the file and refresh your screen looking a profile, preferably one that is logged in and you will see a much different actions menu.

 

Next up, tell me what order you would like them arranged in and I'll show you how to do that part also. 

 

 

 

Quote · 24 Aug 2009

Here you come again to my rescue. I'll take your advice and keep the certain items you suggested. However, it seems that this didn't work. Maybe it takes a bit to go into effect?

EDIT: I noticed that there is a line missing in your red text above. Maybe this has something to do with it?

/* * * * Ray IM Integration [END]* * * */

$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" );
if (defined('ECARDS_INSTALLED'))

Quote · 25 Aug 2009

It is the way it's done.

 

You can do this one at a time if you like and test them that way.  You might have to clear your browser cache, but I never had when doing this to a site before.

 

Let's take out Block first:

 

in templates/base/scripts/BxBaseProfileView.php

 

Locate:

 

$ret .= $oTemplMenu -> getActionsMenuItem( 'action_fave.gif', _t('_Fave'),     "javascript:void(0);", '', '', "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' );" );

 

 

Now, just comment it out like this:

 

//$ret .= $oTemplMenu -> getActionsMenuItem( 'action_fave.gif', _t('_Fave'),     "javascript:void(0);", '', '', "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' );" );

 

That will take care of it.  Note, all those lines are all 1 line of code (it'd keep going to the right if this screen was wide enough.  Now refresh the page and you will see Fav's drop off the list of Actions.  As far as the missing section of code goes, my site does not have it, I looked.  Then I checked a the files on the default dolphin package and it is in that.  It's simply been removed from mine as I will never use that feature, forgot I had done that.  I apologize, but it's being there or not should have no effect on this tweak working to remove items from the Actions menu.

Quote · 25 Aug 2009

Heh, I'm a retard. For some reason (and this has been a slow realization), when I try to edit a file for my add-on domain, the file manager always switches to my main domain's files, and then I have to go back out and try again. It worked. :-)

I also (mostly) figured out how to reorder ... but I ran into a problem...


All profile columns are now UNDER the Actions block, as if there were a missing </table> tag. It only occurs when I am logged in and viewing someone else's profile. My profile is fine at all times, and all profiles are fine while logged out. I'm missing something, that's for sure ...

Quote · 25 Aug 2009

I solved the above issue. It seems I was commenting out the code related to GetE-Mail without commenting out the if statement that preceded it.

However, something is still not right. Something's changed, because "Befriend Remove" doesn't work. When I click it, I get a pop-up saying "__page_main_code__", and I'm still friends with the member.

Any ideas?

Quote · 25 Aug 2009

For your tables you are missing something.

 

Look in the post that I made showing the original code and you will see this about 1/2 way through it:

 

$ret .= '</div>';
    $ret .= '<div class="menu_item_block_right">';

 

Anything about it will go into the left column, anything below it will go into the right column.  You currently have it all above or below it.  Just cut and paste the items.

 

To figure out what you did to disable the unfriend, I'd have to see your code.

 

 

Quote · 25 Aug 2009

I opened a fresh version of the PHP code and started commenting things out one by one until I found out what was wrong. It was caused by an unneeded if-statement, I guess...

As for the Unfriend issue, I'd paste the code now, but it seems my host is kaput for a bit. Will get back to you on this one.

 

 

Thanks!

Quote · 25 Aug 2009

Below is my code related to friending/unfriending:

(I had to remove the _ in ('Friend') and ('Unfriend') because they were actually being displayed in the profiles. Would this cause the issue with unfriending? It didn't affect friending in any way. Would renaming the caption from '_Befriend' to 'Friend' and '_Befriend Remove' to 'Unfriend' do this??)

Thanks!

*****



/* * * * Ray IM Integration [END]* * * */

$ret = '<div class="menuBlock">';
$ret .= '<div class="menu_item_block">';
$ret .= '<div class="menu_item_block_left">';
if(is_friends((int)$_COOKIE['memberID'], $profileID))
$ret .= $oTemplMenu -> getActionsMenuItem( 'action_friends.gif', _t('Unfriend'),"javascript:void(0);", '', '', "window.open( 'list_pop.php?action=delfriend&amp;ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" );
else
$ret .= $oTemplMenu -> getActionsMenuItem( 'action_friends.gif', _t('Friend'),"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_send.gif', _t('_SendLetter'),     "compose.php?ID=$profileID" );
//$ret .= $oTemplMenu -> getActionsMenuItem( 'action_fave.gif', _t('_Fave'),     "javascript:void(0);", '', '', "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_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;
// 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>';
$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', $this->getLinkStat('prVideo', _t('_ProfileVideos'), $profileID), "javascript:void(0);", '', '', "openRayWidget( 'video', 'player', '$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_share.gif', _t('_Share'),   "javascript:void(0);", '', '', "return launchTellFriendProfile($profileID);" );
$ret .= $oTemplMenu -> getActionsMenuItem( 'action_report.gif', _t('_Report'),   "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=spam&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_block.gif', _t('_Block'),    "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=block&amp;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 );
}
}

Quote · 25 Aug 2009

I have no clue what's wrong with the code above. I searched for "page_main_code" in Language Settings, but got no results. Any idea what I did here?

Quote · 27 Aug 2009

 

I have no clue what's wrong with the code above. I searched for "page_main_code" in Language Settings, but got no results. Any idea what I did here?

 I pasted the old code back into this file, to start afresh. Even with the old code untouched, I still get this issue.

Quote · 28 Aug 2009

_page_main_code__ is located in the correspond templates/tmpl_{tmpl}/page_#.html (where # stands for a number) file that is referenced from the pagename.php file.

 

Which page are you working on here (ie:  What is the URL of the page your trying to work with)

 

 

Quote · 29 Aug 2009

The -Action- Block appears on everyone's profile, so I'm not sure what to tell you for the page. It's just "domain/username" and changes whenever I view someone else's profile.

EDIT:: I just tested the unfriend function on my other domain and it's not working there either... What did I do wrong? :-(

Quote · 29 Aug 2009

 

The -Action- Block appears on everyone's profile, so I'm not sure what to tell you for the page. It's just "domain/username" and changes whenever I view someone else's profile.

EDIT:: I just tested the unfriend function on my other domain and it's not working there either... What did I do wrong? :-(

 Curious, did you remove Befriend (Add Friend)?  If you did, then this is probably going to cause an error because the Befriend/Remove Friend is a switch type item and if you can't Add them as a friend then you can't remove them either.  In this case, you have removed 1/2 the switch and left 1/2 the switch in place.  Sorry, just took a closer look at what you were trying to do.

Quote · 30 Aug 2009

I don't recall removing anything of that sort. Below is the only chunk of code to which I did any modification, and even those changes were simply commenting out the unwanted -Action- Block items. The part in red relates to friend/unfriend.

/* * * * Ray IM Integration [END]* * * */

$ret = '<div class="menuBlock">';
$ret .= '<div class="menu_item_block">';
$ret .= '<div class="menu_item_block_left">';
if(is_friends((int)$_COOKIE['memberID'], $profileID))
$ret .= $oTemplMenu -> getActionsMenuItem( 'action_friends.gif', _t('Unfriend'),"javascript:void(0);", '', '', "window.open( 'list_pop.php?action=delfriend&amp;ID=$profileID', '', 'width={$this -> oTemplConfig -> popUpWindowWidth},height={$this -> oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );" );
else
$ret .= $oTemplMenu -> getActionsMenuItem( 'action_friends.gif', _t('Friend'),"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_send.gif', _t('_SendLetter'),     "compose.php?ID=$profileID" );
//$ret .= $oTemplMenu -> getActionsMenuItem( 'action_fave.gif', _t('_Fave'),     "javascript:void(0);", '', '', "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_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;
// 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>';
$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', $this->getLinkStat('prVideo', _t('_ProfileVideos'), $profileID), "javascript:void(0);", '', '', "openRayWidget( 'video', 'player', '$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_share.gif', _t('_Share'),   "javascript:void(0);", '', '', "return launchTellFriendProfile($profileID);" );
$ret .= $oTemplMenu -> getActionsMenuItem( 'action_report.gif', _t('_Report'),   "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=spam&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_block.gif', _t('_Block'),    "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=block&amp;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 );
}
}

Quote · 30 Aug 2009

Is this something that I need to solve by deleting the Dolphin install and starting all over again? I really hope not. :-(

Quote · 1 Sep 2009

So sorry to be a pain, but I've still not figured this out. This is a pretty big issue and I've no clue how to fix it. Granted, I hope it never has to be used, but still, I have to fix it just in case...

Quote · 23 Sep 2009

hello can do with dolphin 7 ? Smile

Quote · 7 Dec 2009

Hi there.

I want to remove profile videos and profile music from the actions block. After following instructions below I manage to remove them but it messes up the page and I get the following accross the top of the page

Warning: Cannot modify header information - headers already sent by (output started at /home/today1/public_html/templates/base/scripts/BxBaseProfileView.php:1541) in /home/today1/public_html/inc/design.inc.php on line 521


And by removing the commented section is does not fix it unless i replace the file and restore the original (lucky I backed it up first)

I changed the following lines:

ORIGINAL


$ret .= $oTemplMenu -> getActionsMenuItem( 'action_videos.gif', $this->getLinkStat('prVideo', _t('_ProfileVideos'), $profileID), ";", '', '', "openRayWidget( 'video', 'player', '$profileID' );" );

//                $ret .= $oTemplMenu -> getActionsMenuItem( 'action_videos.gif', _t('_ProfileVideos'),   ";", '', '', "openRayWidget( 'video', 'player', '$profileID' );" );

$ret .= $oTemplMenu -> getActionsMenuItem( 'action_music.gif', $this->getLinkStat('prMusic', _t('_ProfileMusic'), $profileID), ";", '', '', "openRayWidget( 'mp3', 'player', '$profileID', '" . getPassword( $memberID ) . "', '$memberID');");

CHANGED TO:


// $ret .= $oTemplMenu -> getActionsMenuItem( 'action_videos.gif', $this->getLinkStat('prVideo', _t('_ProfileVideos'), $profileID), ";", '', '', "openRayWidget( 'video', 'player', '$profileID' );" );

//                $ret .= $oTemplMenu -> getActionsMenuItem( 'action_videos.gif', _t('_ProfileVideos'),   ";", '', '', "openRayWidget( 'video', 'player', '$profileID' );" );

// $ret .= $oTemplMenu -> getActionsMenuItem( 'action_music.gif', $this->getLinkStat('prMusic', _t('_ProfileMusic'), $profileID), ";", '', '', "openRayWidget( 'mp3', 'player', '$profileID', '" . getPassword( $memberID ) . "', '$memberID');");

Am I missing something?

(I'm using Dolphin 6.1.6)

Thank

Quote · 20 Apr 2010

As asked above. How can this be done in D7?

Appreciate any help.

:)

Quote · 3 Oct 2011

Anyone? I had a crack using the methods mentioned for previous Dolphins, but no luck.

Quote · 4 Oct 2011

http://www.boonex.com/m/actions-manager

Quote · 4 Oct 2011
Well there you go. Thanks for the heads up. :)
Quote · 4 Oct 2011

 

http://www.boonex.com/m/actions-manager

 Mod looks good but it deletes instead of just commenting the actions out.  If you want to eventually add a feature back you will have to add the code back in/  At least that is what I am getting out of it. =)

What's next to fix D8 issues? D9? (=
Quote · 4 May 2012

Wow totally over looked the other module which will let you HIDE them now.  Link below =)

http://www.boonex.com/m/actions-manager-premium

What's next to fix D8 issues? D9? (=
Quote · 4 May 2012
 
 
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.