Help! How to put icon + text in the navigation menu??

Anyone knows how to display BOTH the icon and the text in the navigation menu?

As of now, it's either or. (Either the text OR the icon. Not both. http://www.boonex.com/trac/dolphin/wiki/DolphinAdminNavigationMenu)

Quote · 28 Sep 2012

Found this in /templates/base/scripts/BxBaseMenu.php

        $sImgTabStyle = $sPictureRep = '';
        if ($isBold && $sPicture != '') {
            $sPicturePath = getTemplateIcon($sPicture);
            $sPictureRep = '<img src="' . $sPicturePath . '" />';

            $sText = '';
            $sImgTabStyle = 'style="width:38px;"';
        }

Any idea what changes to make to have both ICON + TEXT ?

Quote · 28 Sep 2012

Do this.

In templates/base/scripts/BxBaseMenu.php at line 487

replace this

$sText = '';

$sImgTabStyle = 'style="width:38px;"';

with this

$sImgTabStyle = 'style=""';

just removing width to fit the caption and remove the null variable also.

after that put this in the next line

 

$aMenuInfo = $this->aMenuInfo;

$sText = str_replace( "{memberNick}",  isset($aMenuInfo['memberNick']) ? $aMenuInfo['memberNick'] : '',  $sText );

$sText = str_replace( "{memberNick}",  isset($aMenuInfo['memberNick']) ? $aMenuInfo['memberNick'] : '',  $sText );

Done and now you can dance :P

so much to do....
Quote · 29 Sep 2012

you can remove this on line 479 to remove the bold text

$sBoldStyle = ($isBold) ? 'style="font-weight:bold;"' : '';

to this

$sBoldStyle = ($isBold) ? 'style=""' : '';

In case you don't like the bold text like me :D

so much to do....
Quote · 29 Sep 2012

Thanks Prashank!!!

Once again, you saved the day!!

Just a quick question, do I have to put this code twice? (Seems to be the same?)

$sText = str_replace( "{memberNick}",  isset($aMenuInfo['memberNick']) ? $aMenuInfo['memberNick'] : '',  $sText );

$sText = str_replace( "{memberNick}",  isset($aMenuInfo['memberNick']) ? $aMenuInfo['memberNick'] : '',  $sText );

Quote · 29 Sep 2012

To all members; just a suggestion, only my opinion, that if you like something Prashank25 has done for you, it is much appreciated if the "Like" on the reply is clicked on, top right of each response.

It's a great way to show trust of the person that has answered your questions here.

It's not asked for by others; most probably don't care. I builds member recognition here.

Have a great week end everyone!!!

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 29 Sep 2012

 oops :P
Yes, it should be only once 

Thanks Prashank!!!

Once again, you saved the day!!

Just a quick question, do I have to put this code twice? (Seems to be the same?)

$sText = str_replace( "{memberNick}",  isset($aMenuInfo['memberNick']) ? $aMenuInfo['memberNick'] : '',  $sText );

$sText = str_replace( "{memberNick}",  isset($aMenuInfo['memberNick']) ? $aMenuInfo['memberNick'] : '',  $sText );

 

so much to do....
Quote · 30 Sep 2012

 Thank you very much :D

To all members; just a suggestion, only my opinion, that if you like something Prashank25 has done for you, it is much appreciated if the "Like" on the reply is clicked on, top right of each response.

It's a great way to show trust of the person that has answered your questions here.

It's not asked for by others; most probably don't care. I builds member recognition here.

Have a great week end everyone!!!

 

so much to do....
Quote · 30 Sep 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.