Notifications
Clear all

Css Style Switcher

4 Posts
3 Users
0 Reactions
3,074 Views
(@chris)
Posts: 77
Trusted Member
Topic starter
 

The Site: Emme's Due South Random Plots

Through my very little knowledge and some lovely help I'd created a php style switcher which I am happy with to the extreme, however the only downside is that I couldn't figure out how to make it remember which was the last theme you used if you left the site just goes back to the default. Any help or ideas would be great.


I charge into the light and need only yours to find my way. Archive of One: Sam Emme Tales

 
Posted : 04/10/2007 11:47 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Site settings. πŸ™‚
eta: Missed the complete point of the post ...

Use sessions? What's the code? o_O

setcookie("style", $_GET['set'], time()+(31*86400), '/');

Perhaps?


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 05/10/2007 4:14 am
(@carissa)
Posts: 791
Member Moderator
 

Yeah, you need to set a cookie with the users last used style.


 
Posted : 05/10/2007 11:15 am
(@chris)
Posts: 77
Trusted Member
Topic starter
 

Well here is the evolution of my style switcher on lj php community. which includes the code. I kind of understood but I missed something to get the last style used properly working. In my last post I didn't have two months working but I do now. You can see above my story index as Last Time you were here was some date or Thanks for using our site! if you came to the site on the same day.


I charge into the light and need only yours to find my way. Archive of One: Sam Emme Tales

 
Posted : 05/10/2007 2:31 pm
Share: