View Full Version : Highlighting the current secction in the menu header
February 21st, 2008, 09:15 AM
How I can do a menu header like:
I would like highlight the selected option
thanks in advance
February 21st, 2008, 10:00 AM
Hello I would suggest you view their html source of the page to see how they create that header. That will give you alot of hints on how to code up a header like that.
February 21st, 2008, 11:38 AM
Before investigate the code of that page a last question (maybe these is a bit not PP related).
I already did a flash header with a main menu (this work perfect with VB and PP integration), but now I only need to pass a parameter to get the current page (Forum or Gallery). You know what paramenter could be?
February 21st, 2008, 12:26 PM
Not sure what you mean by passing a parameter to get to the current page. If you use links just place the proper url for links that how they normally work.
February 21st, 2008, 12:57 PM
I think in some where must exist a variable to know if I'm in a Forum or a Gallery page. Then, I can pass this variable to my SWF header. Simple like "myheader.swf?section=".$parameter.
I only need a reference to know if the user are in the forum or the gallery.
February 21st, 2008, 01:33 PM
well there are no variables unless you create something but I cant tell you what that is.
February 21st, 2008, 02:27 PM
I found and put this in the forum header:
And will work, the only thing is that when I'm in the gallery mode I get:
And in the forum mode:
I can deal with this for now because I only need a reference between each one to highlight the menu option inside the flash. But would be more clean if I get "forum" and "gallery".
February 21st, 2008, 02:38 PM
well because your not giving it the true variable ;)
Maybe this but not sure
February 21st, 2008, 05:02 PM
Thanks Chuck, I found the solution in this post, exactly what I need
February 21st, 2008, 05:15 PM
No problem glad you found it
February 21st, 2008, 07:14 PM
Sorry for the insistence, but I notice that in the internals pages of the gallery the condition doesn't work (for example http://www.mydomain.com/gallery/showgallery.php?cat=504), maybe need compare another parameter.
*** SOLVED ***
I found the another parameters, I don't know if I missed one
<if condition="THIS_SCRIPT == 'adv_index' OR THIS_SCRIPT == 'ppindex' OR THIS_SCRIPT == 'showgallery' OR THIS_SCRIPT == 'showphoto' OR THIS_SCRIPT == 'showmembers' OR THIS_SCRIPT == 'search' OR THIS_SCRIPT == 'uploadphoto' OR THIS_SCRIPT == 'member'">
February 22nd, 2008, 06:26 AM
Thats not a conditional that works with any of our products. Thats vb only I believe.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.