vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What's a template conditional please? (https://vborg.vbsupport.ru/showthread.php?t=116729)

TeaTree 05-26-2006 01:35 PM

What's a template conditional please?
 
Hi,

Basically I am needing to know what a template conditional is as for a hack I need to get something off of the page that the hack is on and the hack author said to use a template conditional

Many Thanks,

Sam

peterska2 05-26-2006 01:40 PM

which mod are you refering to and what are you wanting to achieve?

TeaTree 05-26-2006 01:44 PM

Hi,

First off, Thanks for your very quick response-Secondly, I am refering to this hack

Basically, on page 2 I am hoping to take off my forumhome announcement and the shoutbox but only on that page and not on the actual forumhome-

Thanks

peterska2 05-26-2006 01:55 PM

i am not familiar with exactly how that mod works so i will install it when i get home and get back to you.

TeaTree 05-26-2006 02:03 PM

Okay thanks:)

peterska2 05-26-2006 07:35 PM

Right I've had a look at it, and as far as I can see, the items on the forumhome will appear on all pages created by this modification, and this is non-editable as they all use the same script variable and templates.

TeaTree 05-26-2006 09:44 PM

Quote:

Originally Posted by peterska2
Right I've had a look at it, and as far as I can see, the items on the forumhome will appear on all pages created by this modification, and this is non-editable as they all use the same script variable and templates.

The owner seems to think that you can remove them via conditionals:s

peterska2 05-26-2006 09:50 PM

Quote:

Originally Posted by NeighHorse09
The owner seems to think that you can remove them via conditionals:s

To remove them and only show them on the main index you would need to use the conditional
Code:

<if condition="THIS_SCRIPT=='index'">code here</if>
but the subsequent pages such as page 2 are also ran by the index script, so it is not possible.

TeaTree 05-27-2006 07:54 AM

Hmm then Amykahr must be wrong:O

peterska2 05-27-2006 11:13 AM

It is possible that you could do it with some php conditionals via plugins,but it isn't something I have experimented with. As the shoutbox template is set directly in the php this should be possible, and by attaching the announcement template to that of the shoutbox, is should theoretically just put the announcement where the shoutbox is.

However, I'm not a php coder, so wouldn't know where to start with this.


All times are GMT. The time now is 02:14 AM.

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.02083 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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