MyBB Community Forums

Full Version: Global template Page to be display according to Theme selection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I had created two custom templates in global templates.
e.g Showmovie and Showtrailer

I had created one PHP file in root as Movies.php

I have two themes on my board. One is the default MyBB theme (Theme ID 1) and second is BootBB (Theme ID 2).

So, my question : 
Is it possible that if a user is using default MyBB theme then https://www/abc.com/Movies.php display page related to Showmovie global template to that user?
If a user is using BootBB theme then https://www/abc.com/Movies.php display page related to Showtrailer global template to that user.


Please guide.
Thank you.
<If them ID=1 (IDs=1,2) then> Showmovies.php page <else> Showtrailer.php page </if>

Is such type variable possible?
PLEASE guide for proper variable code.
Thank you.
(2020-09-19, 01:56 AM)Dr_The_One Wrote: [ -> ]<If them ID=1 (IDs=1,2)  then> Showmovies.php page <else> Showtrailer.php page </if>

Is such type variable possible?
PLEASE guide for proper variable code.
Thank you.

there is a much easier way to formulate this.

Why not just create one page under one theme and the other page under the other theme.

Hence, when user is using one theme , they will see the intended page, if the user is under the other theme, they will only see the page under that theme, why make it so hard, what am I missing here?
Templates are already loaded on a per theme basis, so your question is confusing.

Just never load templates at global_start.