MyBB Community Forums

Full Version: Template Page Conditionals?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the variable for a page and it's conditionals?

For example, I want something like:
<if $pageVariable == "Calendar" then>
We're on Calendar page
</if>
php files of MyBB have file names defined like define('THIS_SCRIPT', 'calendar.php');

with template conditionals plugin the code can be like below
<if THIS_SCRIPT == 'calendar.php' then>
We're on Calendar page
</if> 
Thanks but is there any other way without using a plugin?
In the code that you have in your first post, that requires a plugin..

You could edit the files yourself or you could just create your own plugin.

What is the purpose?