Removing media pages buttons

Hello everyone. It's my first post here :)

I was fine with finding everything, until now. I'm trying to remove those sub menu buttons:

as they are badly placed and are forcing content further down which is not good at all.

Messing with CSS didn't help. I reckon it must be somewhere in a php file but have no clue how to locate it.

They are visible on media pages after log in.

Thanks in advance. After spending half a day trying to get rid of this you are my last chance.

Quote · 22 Apr 2010

Open up BxBaseMenu.php in the templates/base/scripts/ folder.

Look for:

/*
* Generate actions in submenu place at right.
*/
function setCustomSubActions(&$aKeys, $sActionsType, $bSubMenuMode = true) {

if (!$sActionsType) {
$this->sCustomActi alt= '';
return;
}

// prepare all needed keys
$aKeys['url']              = $this->sSiteUrl;
$aKeys['window_width']     = $this->oTemplConfig->popUpWindowWidth;
$aKeys['window_height']    = $this->oTemplConfig->popUpWindowHeight;
$aKeys['anonym_mode']    = $this->oTemplConfig->bAnonymousMode;

// $aKeys['member_id']        = $iMemberID;
// $aKeys['member_pass']    = getPassword($iMemberID);

//$GLOBALS['oFunctions']->iDhtmlPopupMenu = 1;
$sActi alt= $GLOBALS['oFunctions']->genObjectsActions($aKeys, $sActionsType, $bSubMenuMode);
//$this->sCustomActi alt= '<div class="menu_user_actions">' . $sActions . '</div>';
}


Comment out the last line. That will clear the media buttons.

That will get rid of the media buttons. Remember to clear your cache.

Quote · 22 Apr 2010

is possible to change

Add album - My albums

Videos homen

by - (to be horizontal)

Videos homen - Add album - My albums

Thanks

Bosun / Moderator -- My Products : http://www.boonex.com/market/posts/danielmarseille
Quote · 22 Apr 2010

Do you want to remove them site-wide or just on certain pages?

If you want to remove them site-wide you can do what mybellavista suggest but if you want to remove buttons (or add them) to only certain pages do the following:

Start your phpmyadmin and go to table sys_objects_actions, sort by Type column.

Find type bx_videos_title (mine is row 81,82,83) and remove those three rows.  Now those action buttons will be gone on the Videos Title page, you can repeat the same for other pages (bx_sound_title, bx_photo_title, bx_polls_title, etc).

If you wanted to add more buttons to the title page action block you would place those urls here as well.

Quote · 22 Apr 2010

Sweet! :) You are great! Thank you mybellavista and mauricecano. I wanted to remove it from all pages so I used the first way.

And what a nice welcoming - three answers and all from Premium members! :)

danielmarseille I didn't want those buttons because I am trying to streamline the script as much as possible. I like Dolphin, but it is wasting way too much precious screen estate.

Thanks!

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.