MyBB Community Forums

Full Version: check if the current page is Home Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

i want to know if is it possible to check if the current page is the Home Page.

for example i want to add code to header template to check this condition and if the condition is true then display a message like "yeah this is the home page"

by home page if you mean index of the forum then with template conditionals plugin you can use code like below
<if THIS_SCRIPT == "index.php" then>required content</if> 
yes, this one is OK!!