The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional for 'Is In Template Group'?
Hi,
I am trying to display a widget only when the visitor is within a standard forum page (eg. showthread, forumdisplay, etc.), but not on my custom pages (eg. xx.com/custom-page.php). All our custom templates are in the 'Custom Templates' group. Is there a way to detect within a template if THIS_SCRIPT is in a template group? Alternatively is there a conditional to check if the template is a custom template? Thanks in advance, R. |
#2
|
|||
|
|||
Could you define() a value in your custom page then check for that?
|
#3
|
|||
|
|||
Hey kh99, I thought of doing that, but it would mean I'd have to define that value on every page custom template, which is a bit cumbersome.
I was hoping to wrote a conditional against a standard VBulletin value. Thanks for the suggestion though! |
#4
|
|||
|
|||
I guess probably I don't entirely understand the way you have things set up, but it seems like you would only have to define it at the top of every .php file you have generating a custom page.
ETA: nvm, you probably know what you're doing. Maybe someone else knows... |
#5
|
|||
|
|||
No worries, thanks for the help anyways.
We're trying to avoid editing into the .php files directly so we can make the templates as portable between our development and live environment. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|