Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Template change based on a Theme
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #21
RE: Template change based on a Theme
Sorry to resurrect an old thread, but I have been testing mobile on my board and I really like it. However, I have some heavily modified XThreads templates and they dont really translate too well to the mobile format. I have managed to use the conditional code below inside each template (with some success)  but it seems a long way round.

Code:
<if $mybb->user['style'] == $mybb->settings['gomobile_theme_id'] then>Mobile stuff<else>
Not Mobile stuff
</if>


I have tried putting this similar code in the Template Prefix box in Edit Forum

Code:
<if $mybb->user['style'] == $mybb->settings['gomobile_theme_id'] then>mobile_,<else>
prefix_,
</if>


But it isn't working - i.e. the layout does not swap over. I DO have forum themes forced in these areas, so that may be connected. My plan of course was to make one template set for mobile viewing and that would be it. Can anyone suggest a way to do this?



[Image: leelink.gif]
MYBB1.6 & XThreads
07-03-2011 11:39 AM
Visit this user's website 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 - leefish - 07-03-2011 11:39 AM

 Standard Tools
Forum Jump: