Not Solved [How To?] Global template Page to be display according to Theme selection
#1
Not Solved
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.
Reply
#2
Not Solved
<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.
Reply
#3
Not Solved
(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?
Hey man, what's up?
Reply
#4
Not Solved
Templates are already loaded on a per theme basis, so your question is confusing.

Just never load templates at global_start.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)