remove certain links on profile page

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

Quote · 23 Jul 2009

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. 

Quote · 23 Jul 2009

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?

Quote · 23 Jul 2009

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 = '<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'))

                    $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&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_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' );" );
    $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 .= $oTemplMenu -> getActionsMenuItem( 'action_gift.gif', _t('_Send Gift'),     "javascript:void(0);", '', '', "window.location='gifts.php?ID=$profileID'" ); 
    $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_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, 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.

 

 

 

Quote · 23 Jul 2009

Thank you very much!

Quote · 23 Jul 2009
 
 
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.