Remove items from Action Block

I am trying to remove profile videos and profile music from the actions block. After following instructions I found on another topic I managed 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 reverting the commented section is does not fix it unless i restore the original file (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)

Thanks

Quote · 22 Apr 2010

What file did you modify?  I've done this many times very successfully in D6.1.6 so not sure why your pulling that error.

Quote · 22 Apr 2010

I modified templates/base/scripts/BxBaseProfileView.php

I followed the following instructions:

http://www.boonex.com/unity/forums/?action=goto&my_flags=1#topic/Removing-Items-from-Action-Block.htm

Quote · 22 Apr 2010

You have the right file and you have the correct lines of code.  Can you please put them back in place and provide me with a link so I can see what is happening to your site.  This has been done way to many times by to many of us for it to be messing up the layout unless there is something else going on that you don't realize.

 

You can PM me the link if you like.

Quote · 22 Apr 2010

thanks.

i've sent the link to you

Quote · 22 Apr 2010

Okay, this is legitimately screwed up with this change.

 

Do me a favor please, look at your templates/base/scripts/BxBaseProfileView.php file (open it up with Notepad++) and tell me how many lines are in that file.  I'm really curious to know the answer to this because of your warning and the fact that you had to completely reload the file to get the site to revert back before.

 

 

Quote · 22 Apr 2010

there are 1539 lines

Quote · 22 Apr 2010

OK fixed it.

Not sure why or how.

I used the backup file and edited it using Notepad ++ and it worked. Strange but it worked. I was using Alleycode before to edit the files.

Thanks for your help

Quote · 22 Apr 2010

 

OK fixed it.

Not sure why or how.

I used the backup file and edited it using Notepad ++ and it worked. Strange but it worked. I was using Alleycode before to edit the files.

Thanks for your help

 

Glad to hear it's fixed.  I've found that Notepad++ works best for editing stuff, never used Alleycode so I can't say.  It wa the 1541 in your warning that was alerting me.  It's great to know the solution was correct, just an issue with your items that somehow caused it.  Maybe someone who knows Alleycode can chime in here.

 

**Also note that 1539 is about twice the size that file should be.

Quote · 22 Apr 2010
 
 
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.