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)
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) |
Found this in /templates/base/scripts/BxBaseMenu.php $sImgTabStyle = $sPictureRep = ''; Any idea what changes to make to have both ICON + TEXT ? |
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.... |
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.... |
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 ); |
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! |
oops :P 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.... |
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.... |