Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » CSS Chooser

#1 2004-08-14 05:40:41

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

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

#2 2004-08-14 05:45:09

valdok
Member
From: Chicago
Registered: 2004-03-14
Posts: 31
Website

Re: CSS Chooser

Not a single one has been made yet, although I do think one would be cool… :)

Offline

#3 2004-08-14 06:20:08

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

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

#5 2004-08-15 18:41:42

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

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

#6 2004-08-15 18:47:19

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

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

#7 2004-08-16 01:03:30

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

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

#8 2004-08-16 05:45:42

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

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

#9 2004-08-17 08:03:28

Tournesol
New Member
From: Paris, France
Registered: 2004-07-28
Posts: 5
Website

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

#10 2004-08-17 14:32:45

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

Re: CSS Chooser

Works like a charm. Thanks, Tournesol.

Offline

#11 2004-08-17 18:53:23

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

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

  1. Index
  2. » Archives
  3. » CSS Chooser

Board footer

Powered by FluxBB