vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how to make somethng on navbar to appear only on forum home ? ... (https://vborg.vbsupport.ru/showthread.php?t=290566)

scorpss 11-12-2012 01:12 PM

how to make somethng on navbar to appear only on forum home ? ...
 
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:

Code:

<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 [DATE]1352734957[/DATE] at [TIME]1352734957[/TIME] ---------------

OH SAD !! doesn't work :( ,

look at my screen :

http://image.noelshack.com/fichiers/...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:
Code:

<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 !! :)


All times are GMT. The time now is 02:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01581 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete