1
Peekay
Make theme change persistent
  • 2010/7/16 22:09

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I read a tip that explained I could change the theme based on a link, e.g.

index.php?xoops_theme_select=mytheme


I have been trying to use this with some browser detection to make mobile devices use a particular theme. The theme changes correctly on the initial redirect and works on desktop browsers, but any subsequent page changes on the phone return to the 'default' theme set in admin prefs. The target theme is set as selectable in the prefs.

I'm guessing that perhaps there's some caching that's not available on the mobile device, so I wondered is there a way to make the theme choice persist from the initial query string?

Or is there a 'theme' variable that can be set in index.php and used as a global?

A thread is for life. Not just for Christmas.

2
isabel
Re: Make theme change persistent
  • 2010/7/21 8:41

  • isabel

  • Just popping in

  • Posts: 4

  • Since: 2010/7/19


you may modify and retest theme changes.
read FAQ.

Login

Who's Online

439 user(s) are online (302 user(s) are browsing Support Forums)


Members: 0


Guests: 439


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits