vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is this possible? Please help! (https://vborg.vbsupport.ru/showthread.php?t=224355)

Switch3130 10-01-2009 05:26 PM

Is this possible? Please help!
 
Welcome, FaSho.
You last visited: Yesterday at 7:37pm
Private Messages: Unread 0, Total 7.

Is there a way to have this show up only in threads etc and not on the forum home page?

James Birkett 10-01-2009 05:36 PM

Try wrapping a conditional around it (find it first).
Code:

<if condition="THIS SCRIPT != FORUMHOME">
//code
</if>

I'm not 100% sure if that's right.. but you can try it.

Switch3130 10-01-2009 06:04 PM

Quote:

Originally Posted by Error Message
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_STRING in /home/wrestlec/public_html/includes/adminfunctions_template.php(3950) : eval()'d code on line 22

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

This is what came up after I surrounded the <if> code around the coding in the navbar template.

James Birkett 10-01-2009 06:09 PM

Malformed hmm.
PHP Code:

<if condition="THIS_SCRIPT != 'index'">
//code
</if> 

Try that, it's meant to be an underscore not a space and it's index not forumhome.

Switch3130 10-01-2009 06:11 PM

Edit: That worked. Thanks so much!

James Birkett 10-01-2009 06:14 PM

Maybe you wrapped it around the wrong statement? Post the code where you wrapped it please.

Switch3130 10-01-2009 06:18 PM

I edited my post after I saw you put index there instead of forumhome. It's working.

Thanks!

James Birkett 10-01-2009 06:19 PM

No problem :)


All times are GMT. The time now is 09:03 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.01453 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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