Hi,
is there a way to make the main menu color to be changed like on the myyearbook menu?
Hi, is there a way to make the main menu color to be changed like on the myyearbook menu? Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
no css pro here? :-) My gf really wants this :-) There must be a away, no? Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
Ok, somehow I found out something :-)
Those are the codes I use! In top_menu.css: div.sys_top_menu a span.menu1{color:red} and in _sub_header.html: <td class="top" ><a href="http://filipina-dating-community.com/join.php" class="top_link"><span class="down menu1" >Account</span> which of course generated another menu. I try <span class="down menu1" >Account</span> only and a few other ways but no success!
Thank you in advance :-) Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
Hello man. but maybe generate necessary top menu color via random? :) you can check templates\base\scripts\BxBaseMenu.php function genTopItem( as example near $sBoldStyle variable ;) |
Thank you :-) now I just need to figure what I add :-) Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
With Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
A little another instead $sBoldStyle = ($isBold) ? 'style="font-weight:bold;"' : 'style="COLOR: #ff0000;"'; make something like this:
function random_color(){ and after using it: $sRandColor = '#' . $this->random_color(); $sBoldStyle = ($isBold) ? 'style="font-weight:bold;color:'.$sRandColor.'"' : 'style="color:'.$sRandColor.'"'; (hope I not mess with quotes) :) |
You are an angel, its working now :-) Thank you very much!
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
font-weight:bold; mean bold text :) |
That's what I first thought :-) But then, http://filipina-dating-community.com/ it looks pretty un-bold :-) Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
where in the code do you post that code and also how do you change the header color
/* if (!$bActive) { $sLink = (strpos($sLink, 'http://') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink; $sMoreIc alt= getTemplateIcon('tm_sitem_down.gif'); $sSubMenu = $this->getAllSubMenus($iItemID); $sImgTabStyle = $sPictureRep = ''; $sText = ' '; $sMainSubs = ($sSubMenu=='') ? '' : <<<EOF $this->sCode .= <<<EOF
|
function random_color(){ Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
Change header color if I'm not mistaken :-) /templates/base/css/general.css div.sys_main_logo { Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
i got a white page
/* $sSubItems = ''; //generate $aItem['Link'] = $this->replaceMetas( $aItem['Link'] ); $bActive = ( $iItemID == $this->aMenuInfo['currentCustom'] ); $sSubItems .= $this->genSubItem( _t( $aItem['Caption'] ), $aItem['Link'], $aItem['Target'], $aItem['Onclick'], $bActive ); $this->sCode .= ($sSubItems=='') ? '<div class="subMenuContainerEmpty"></div>' : <<<EOF <added this > /*
function genTopItem($sText, $sLink, $sTarget, $sOnclick, $bActive, $iItemID, $isBold = false, $sPicture = '') { $sActiveStyle = ($bActive) ? ' id="tm_active"' : ''; if (!$bActive) { $sLink = (strpos($sLink, 'http://') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink; $sMoreIc alt= getTemplateIcon('tm_sitem_down.gif'); $sSubMenu = $this->getAllSubMenus($iItemID); $sRandColor = '#' . $this->random_color(); $sBoldStyle = ($isBold) ? 'style="font-weight:bold;color:'.$sRandColor.'"' : 'style="color:'.$sRandColor.'"'; $sImgTabStyle = $sPictureRep = '';
Stop here
$sText = ' '; $sMainSubs = ($sSubMenu=='') ? '' : <<<EOF $this->sCode .= <<<EOF foreach( $this->aTopMenu as $iItemID => $aItem ) { /* if ($this->aMenuInfo['currentCustom'] == 0 && $iFirstID > 0) $this->aMenuInfo['currentCustom'] = $iFirstID; $sCustomPic = $this->aTopMenu[$this->aMenuInfo['currentCustom']]['Picture']; $sMiddleImg = '<img src="'.$sSubCapIcon.'" />'; |
COULD SOMEONE PLEASE WALK ME THROUGH THIS CAUSE I WOULD ALSO LIKE THIS. THANKS:) |
Don't Shout, it's rude. COULD SOMEONE PLEASE WALK ME THROUGH THIS CAUSE I WOULD ALSO LIKE THIS. THANKS:) There are none so blind as those that will not see. |
I did follow Andrew's steps and I did it even though I'm not a programmer! Read, back up, try and you will succeed :-) Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
Hi,
I have try to give all the command as per suggestion of Andrewp for random color chnage of Main Menu.
But unable to get BOLD TEXT of menu.
I have given following line command.
$sBoldStyle = ($isBold) ? 'style="font-weight:bold;color:'.$sRandColor.'"' : 'style="color:'.$sRandColor.'"';
What is the command line for change Main Menu Text to Bold Text ?
Also what is the command line for change submenu text to bold text and where to change it ?
I have dolphin 7.0.4 version.
Thanks in advance |
This is the line: $sBoldStyle = ($isBold) but it is as bold as bold as it gets. I know strange cos it does not seem to be bold at all :-) but thats it :-) Hi,
I have try to give all the command as per suggestion of Andrewp for random color chnage of Main Menu.
But unable to get BOLD TEXT of menu.
I have given following line command.
$sBoldStyle = ($isBold) ? 'style="font-weight:bold;color:'.$sRandColor.'"' : 'style="color:'.$sRandColor.'"';
What is the command line for change Main Menu Text to Bold Text ?
Also what is the command line for change submenu text to bold text and where to change it ?
I have dolphin 7.0.4 version.
Thanks in advance
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
Dear Diddy, Where to add command line as per your suggetion ? $sBoldStyle = ($isBold)
I have given following line $sBoldStyle = ($isBold) ? 'style="font-weight:bold;color:'.$sRandColor.'"' : 'style="color:'.$sRandColor.'"';
Also try to add following line in above/after the above line.... $sBoldStyle = ($isBold)
But there is no effect. I dont have so much knowledge. my website is www.nundhatad.org Please help me.. Thanks in advance
|
@nundhated thats it, you will not get it more bold. Same on my site! Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |