Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
CSS Chooser
Is there a plug in for choosing different CSS files?
I searched, but didn’t find anything.
Thinking about making one, or trying to make one, and didn’t want to bother if another already existed.
Offline
Re: CSS Chooser
Not a single one has been made yet, although I do think one would be cool… :)
Offline
Re: CSS Chooser
Well, then, maybe I should step up to the plate.
Offline
#4 2004-08-15 17:30:53
- mapu
- Member
- From: Munich, Germany
- Registered: 2004-03-16
- Posts: 141
Re: CSS Chooser
Yeah, do it, Kaiser and you’ll be our all hero ;-)
Offline
Re: CSS Chooser
Classes don’t start for another week, so I should have some time to hammer one out.
This would be offically the most PHP work I have ever done. Usually do things in C# and ASP.NET.
Offline
Re: CSS Chooser
It’s not a plug-in, and I haven’t tried it myself, but there is a tutorial for creating a PHP style switcher in Textpattern.
Last edited by reid (2004-08-15 18:47:36)
TextPattern user since 04/04/04
Offline
Re: CSS Chooser
Krzysztof’s guide is good. However, there’s one thing he left off the listapart technique, which is the cookie. Anyone interested in getting that back in there? I don’t know enough about this “PHP” thing everyone’s talking about to do it myself.
Offline
Re: CSS Chooser
I planned on using cookies, so that will be included. I will, while maybe not in the first release, include both cookies and session variables. That way you have the choice if you want to use cookies with your site or not.
Ran into a problem with the opendir() function, basically my hosting provider doesn’t support it, so I am looking for a viable alternative that will work.
(Edit: Think I have one.)
Last edited by Kaiser (2004-08-16 06:51:59)
Offline
Re: CSS Chooser
Hi
I just developped a plugin for textpattern which enables a cookie-based style switcher.
To install it, just add and activate the plugin located here :<a href=“http://www.flapsdesign.com/files/txp/fla_style_switcher.txt”>fla_style_switcher.txt</a>
A plugin is also available in order to easily place links to the alternate style versions : <a href=“http://www.flapsdesign.com/files/txp/fla_altstyle_link.txt”>fla_altstyle_link.txt</a>
Last edited by Tournesol (2004-08-17 08:39:37)
Offline
Re: CSS Chooser
Works like a charm. Thanks, Tournesol.
Offline
Re: CSS Chooser
Well, doesn’t that suck. Guess I don’t have to finish mine then.
Offline
#12 2004-08-17 19:20:29
- justanother
- Member
- Registered: 2004-07-17
- Posts: 18
Re: CSS Chooser
i just want to say: thx a lot – and quote Daragh: it works like a charm!
Offline