PDA

View Full Version : how to make somethng on navbar to appear only on forum home ? ...


scorpss
11-12-2012, 01:12 PM
hello all ,

i really need your help ! i add'ed something on navbar template , all work good (the displaying on navbar) but the probleme is that it appear on all forum pages , i want it only on forum home .

someone can help me ? is it a code to add and make it display only on forum home ? i really dont want it to appear on all pages

thanks alot

kh99
11-12-2012, 02:10 PM
This shoudl work:

<vb:if condition="THIS_SCRIPT == 'index'">
// this shows only on forumhome
</vb:if>

scorpss
11-12-2012, 02:34 PM
will try , i must add it on additional.css ?

thank you

--------------- Added 1352734957 at 1352734957 ---------------

OH SAD !! doesn't work :( ,

look at my screen :

http://image.noelshack.com/fichiers/2012/46/1352734885-sans-titre.png

the Shoutbox appear in all pages :( , i want it only on forum home !

snakes1100
11-12-2012, 02:44 PM
No, you wrap the vb:if code around the code you added to the navbar template.

scorpss
11-12-2012, 02:51 PM
SAD , i juste tried , i added it on the navbar template , the shout box still apear on all pages :(

this is the code of the shoutbox who i added it on the navbar template (at the bottom)

{vb:raw show.vbshout_instance1}

someone have an idea please ? :(

kh99
11-12-2012, 02:55 PM
So you should have tried this:
<vb:if condition="THIS_SCRIPT == 'index'">
{vb:raw show.vbshout_instance1}
</vb:if>


That really shouldn't show up on any page other than forumhome.

scorpss
11-12-2012, 03:02 PM
ohh , thank you alot and alot !!! :) , it work !! :)