Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Template change based on a Theme
ZiNgA BuRgA Online
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #22
RE: Template change based on a Theme
Firstly, you may need to force GoMobile to run before XThreads, because, by default, it's possible that XThreads executes its code first, then GoMobile jumps in and changes the theme.
Edit the priority of the global_start hook in GoMobile or XThreads, for example, you may open gomobile.php, find:

PHP Code:
$plugins->add_hook("global_start", "gomobile_forcetheme");

and replace with

PHP Code:
$plugins->add_hook("global_start", "gomobile_forcetheme", 9);

which forces GoMobile to load before XThreads.

As for forced themes, that's a bit difficult.  I haven't tried, but you may be able to get somewhere by fiddling around with $forum['overridestyle'] and $forum['style'] and checking for those.


My Blog
07-04-2011 10:53 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Template change based on a Theme - leefish - 02-27-2011, 07:24 PM
RE: Template change based on a Theme - ZiNgA BuRgA - 07-04-2011 10:53 AM

 Standard Tools
Forum Jump: