Theme Selection by Hyperlink
Hi community,
i would like to do an intro page (like index.html) before visitors come to see the site. On this Page i'd like them to make a choice between a "fantasy" and a "science fiction" look of my page, so new visitors are not repelled by the less stylish working theme the team uses orby a theme contrary to what they expect.
Manipulating the style selector box did not work, and I would not like to have a huge headline "ignore this page, click..."
I tried to link from index.html to mysite/tiki-switch_theme.php?theme=xxx.css which seems to work, but causes a reload of the current page (in this case inde.html).
In IRC chat, it was suggested to add
in lib/setup/theme.php add in line 20 elseif (isset($_REQUEST['style']) {$prefs['style'] = $_REQUEST['style'];}
which worked.... kind of. I can link to any page now with &style=xxx.css but: as soon as a visitor does click any link, the default theme is loaded.
.......
Any other sugestions? I am already thinking of insane things like linking to a frameset, one part being a 1px frame with a auto-refresh to switch-theme target _top, so the page re-loaded would be... nah. would not work either.
HELP!