vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Multiple Page Conditional? (https://vborg.vbsupport.ru/showthread.php?t=216150)

AWMGolfer 06-14-2009 06:37 PM

Multiple Page Conditional?
 
I am working on learning how to do conditionals and have hit a road block and searches haven't really helped me out a lot. I have a sidebar and I have figured out how to make it only show on the index but I would like it to also show on the forumdisplay and the showthread and can't figure out how to get it to work with all three. Thanks in advance!!

tipoboy 06-14-2009 06:42 PM

what if conditional are you using for it to show on only the index page?

AWMGolfer 06-14-2009 06:53 PM

<if condition="THIS_SCRIPT == 'index'">

HMBeaty 06-14-2009 08:26 PM

Have you tried
HTML Code:

<if condition="THIS_SCRIPT == 'index,showthread,forumdisplay'">
Not 100% sure if that'll work but its worth a shot

EnIgMa1234 06-14-2009 08:35 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1829767)
Have you tried
HTML Code:

<if condition="THIS_SCRIPT == 'index,showthread,forumdisplay'">
Not 100% sure if that'll work but its worth a shot

Don't think that'd work. You'd need to do something like

PHP Code:

if (in_array(THIS_SCRIPT, array('index''showthread''forumdisplay')))
{




EagleNick 06-14-2009 08:53 PM

I have a similar need for such a setup and this is what I use (and it works perfectly fine):

Code:

<if condition="THIS_SCRIPT == 'index' OR 'forumdisplay' OR 'showthread'">

AWMGolfer 06-14-2009 09:09 PM

Thank you very much, worked like a charm!! I was so close in my other attempts..lol

MagicThemeParks 10-18-2009 02:32 AM

This helped me show my attraction poster scroller only on the forumhome as I cheated and used the under navbar ad location for the code ;)

Thanks! :up:


All times are GMT. The time now is 06:56 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.01090 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_html_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