Quote:
Originally Posted by JonZ
The bad news is, I haven't find a way to just change the theme based on cookies like the original QSC do for anonymous users, and I'm kinda stuck on this problem.
|
Use a template conditional, switching to the JS version if the viewer is a guest.
Quote:
Originally Posted by JonZ
The other problem, is the simplicity. I would like to not have an independent file (myprofile.php) to treat the transaction but in the html itself, just like the original QSC do.
|
You must write to the database to change the Style ID for the user, and this cannot be done in JS. (The data manager call writes to the database.) You may be able to piggyback on profile.php's action, but I haven't looked into that myself.