![]() |
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. |
Could you define() a value in your custom page then check for that?
|
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! |
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... |
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. |
All times are GMT. The time now is 03:34 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|