Hi
I try to make my site a bit more user friendly cos many people get irritated with the menu.
All I want to do is do hide the submenu within the topmenu, not the more link tab of course.
So that at the top menu like at people, photo, video and so on is no submenu coming up. If a member will click on people, viseo, photo and so on at the each of those pages the lower menu should be there for my members to see.
What ever I try to do to remove the items within the submenu will also remove the items in the lower menu. I have attached a photo of what I mean. This lower menu I want to keep.
I been searching but have found no proper solution.
Is there anything I can do?
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
if you take out the submenu you'll also take out the status msg.. part when you view a profile and when you go to photos,videos, etc on top you'll s 3 links to the right new album my album. |
Thanks prolaznik I didn't even thought about that.
So there is no way to take out the submenu without affecting the other parts.
That's a real pitty and a pain cos it should be possible.
I had members, especially older one who left cos of the menu gives them a hard time.
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
maybe we are not on the same page here lol, sub menu is the one i talked about is that the one you want to remove?or is it when you hover over a top item like people and it expands below ?. |
yes when I hover and it expands below. I would like just the "more links" to expand. Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
i think i know what you mean /templates/base/scripts BxBaseMenu.php my menu is modified so i don't know the exact line
find this function
/* * Generate top menu elements */ function genTopItem($sText, $sLink, $sTarget, $sOnclick, $bActive, $iItemID, $isBold = false, $sPicture = '') { $sActiveStyle = ($bActive) ? ' id="tm_active"' : '';
if (!$bActive) { $sOnclick = $sOnclick ? ( ' onclick="' . $sOnclick . '"' ) : ''; $sTarget = $sTarget ? ( ' target="' . $sTarget . '"' ) : ''; }
$sLink = (strpos($sLink, 'http://') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink;
$sMoreIcon = getTemplateIcon('tm_sitem_down.gif');
$sSubMenu = $this->getAllSubMenus($iItemID);
$sBoldStyle = ($isBold) ? 'style="font-weight:bold;"' : '';
$sImgTabStyle = $sPictureRep = ''; if ($isBold && $sPicture != '') { $sPicturePath = getTemplateIcon($sPicture); $sPictureRep = '<img src="' . $sPicturePath . '" />';
$sText = ''; $sImgTabStyle = 'style="width:38px;"'; }
$sMainSubs = ($sSubMenu=='') ? '' : <<<EOF <!--[if lte IE 6]><table id="mmm"><tr><td><![endif]--> <ul class="sub main_elements"> {$sSubMenu} <li class="li_last_round"> </li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> EOF;
$this->sCode .= <<<EOF <td class="top" {$sActiveStyle} {$sImgTabStyle}> <a href="{$sLink}" {$sOnclick} {$sTarget} class="top_link"><span class="down" {$sBoldStyle}>{$sPictureRep}{$sText}</span> <!--[if gte IE 7]><!--></a><!--<![endif]--> <div style="position:relative;display:block;">{$sMainSubs}</div> </td> EOF; }
and just remove the one i marked in red. |
Why is it sooo easy out of a sudden :-)
Perfect :-)
Thank you SOOOOOOOO much.
Merry Christmas and a very happy new year!
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
Sorry can you guys explain to me what you just did please? I think i want the same function.
Can I not just go into the Admin Menu Builder and just remove the check mark for each block on the drop down Main Menu item to not display for Member or Visitor and it would do the same thing - right?
What I wish to have is when I place my cursor on one of the Main Menu Bar option there should be NO dropped downs.
Kindly advise.
|
Can I not just go into the Admin Menu Builder and just remove the check mark for each block on the drop down Main Menu item to not display for Member or Visitor and it would do the same thing - right?
We are talking about the drop down submenu within the top menu not to be shown to everyone. The top menu needs to be shown to members but not the submenu.If you hide them via Admin Menu Builder then the others links needed will not be visible as well :-). Look the menu.jpg attached to the main post.
What I wish to have is when I place my cursor on one of the Main Menu Bar option there should be NO dropped downs.
This is actually what we talk about at this topic :-)
Enjoy and have fun!
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
If you go to Admin>Builders>Navigation Menu then on this screen just Uncheck all the boxes Below the top row, the Top row being the Main Menu Items - so do not do anything with those.
The boxes below each one of those top ones have to be unchecked for displaying to visitors or members. Doing that will allow you to control what shows and what does not.
For instance in the People Menu, I have only 2 drop down options showing, Members and Online. All the rest are not showing, I have unchecked each one.
Making a change in the code is great like that, but then ALL of them will not not display. In some cases you may just want something to show in the future.
I hope I am on the right track here.
Can I not just go into the Admin Menu Builder and just remove the check mark for each block on the drop down Main Menu item to not display for Member or Visitor and it would do the same thing - right?
We are talking about the drop down submenu within the top menu not to be shown to everyone. The top menu needs to be shown to members but not the submenu.If you hide them via Admin Menu Builder then the others links needed will not be visible as well :-). Look the menu.jpg attached to the main post.
What I wish to have is when I place my cursor on one of the Main Menu Bar option there should be NO dropped downs.
This is actually what we talk about at this topic :-)
Enjoy and have fun!
|
OK, you guys are right, if you uncheck those boxes, sure there is no drop down, but the second bottom Sub Menu options Also dissapear.
So to remove Drop Down just from the Top Horizontal Menu - must change code as shown by prolaznik
Sorry and Thanks
|
How do you leave the code in place and comment it out? What do you do?
i think i know what you mean /templates/base/scripts BxBaseMenu.php my menu is modified so i don't know the exact line
find this function
/* * Generate top menu elements */ function genTopItem($sText, $sLink, $sTarget, $sOnclick, $bActive, $iItemID, $isBold = false, $sPicture = '') { $sActiveStyle = ($bActive) ? ' id="tm_active"' : '';
if (!$bActive) { $sOnclick = $sOnclick ? ( ' onclick="' . $sOnclick . '"' ) : ''; $sTarget = $sTarget ? ( ' target="' . $sTarget . '"' ) : ''; }
$sLink = (strpos($sLink, 'http://') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink;
$sMoreIcon = getTemplateIcon('tm_sitem_down.gif');
$sSubMenu = $this->getAllSubMenus($iItemID);
$sBoldStyle = ($isBold) ? 'style="font-weight:bold;"' : '';
$sImgTabStyle = $sPictureRep = ''; if ($isBold && $sPicture != '') { $sPicturePath = getTemplateIcon($sPicture); $sPictureRep = '<img src="' . $sPicturePath . '" />';
$sText = ''; $sImgTabStyle = 'style="width:38px;"'; }
$sMainSubs = ($sSubMenu=='') ? '' : <<<EOF <!--[if lte IE 6]><table id="mmm"><tr><td><![endif]--> <ul class="sub main_elements"> {$sSubMenu} <li class="li_last_round"> </li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> EOF;
$this->sCode .= <<<EOF <td class="top" {$sActiveStyle} {$sImgTabStyle}> <a href="{$sLink}" {$sOnclick} {$sTarget} class="top_link"><span class="down" {$sBoldStyle}>{$sPictureRep}{$sText}</span> <!--[if gte IE 7]><!--></a><!--<![endif]--> <div style="position:relative;display:block;">{$sMainSubs}</div> </td> EOF; }
and just remove the one i marked in red.
|
you make a backup of the orginal file (always make backups) and just take it out. No need for it :-)
How do you leave the code in place and comment it out? What do you do?
i think i know what you mean /templates/base/scripts BxBaseMenu.php my menu is modified so i don't know the exact line
find this function
/* * Generate top menu elements */ function genTopItem($sText, $sLink, $sTarget, $sOnclick, $bActive, $iItemID, $isBold = false, $sPicture = '') { $sActiveStyle = ($bActive) ? ' id="tm_active"' : '';
if (!$bActive) { $sOnclick = $sOnclick ? ( ' onclick="' . $sOnclick . '"' ) : ''; $sTarget = $sTarget ? ( ' target="' . $sTarget . '"' ) : ''; }
$sLink = (strpos($sLink, 'http://') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink;
$sMoreIcon = getTemplateIcon('tm_sitem_down.gif');
$sSubMenu = $this->getAllSubMenus($iItemID);
$sBoldStyle = ($isBold) ? 'style="font-weight:bold;"' : '';
$sImgTabStyle = $sPictureRep = ''; if ($isBold && $sPicture != '') { $sPicturePath = getTemplateIcon($sPicture); $sPictureRep = '<img src="' . $sPicturePath . '" />';
$sText = ''; $sImgTabStyle = 'style="width:38px;"'; }
$sMainSubs = ($sSubMenu=='') ? '' : <<<EOF <!--[if lte IE 6]><table id="mmm"><tr><td><![endif]--> <ul class="sub main_elements"> {$sSubMenu} <li class="li_last_round"> </li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> EOF;
$this->sCode .= <<<EOF <td class="top" {$sActiveStyle} {$sImgTabStyle}> <a href="{$sLink}" {$sOnclick} {$sTarget} class="top_link"><span class="down" {$sBoldStyle}>{$sPictureRep}{$sText}</span> <!--[if gte IE 7]><!--></a><!--<![endif]--> <div style="position:relative;display:block;">{$sMainSubs}</div> </td> EOF; }
and just remove the one i marked in red.
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
oops sorry :-)
to comment it out you simply do:
// $sSubMenu = $this->getAllSubMenus($iItemID); //
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |