Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2004-11-20 00:39:17

Boogenstein
Member
From: Wausau, Wisconsin, USA.
Registered: 2004-03-28
Posts: 56

Re: CSS Chooser

I use and love Tournesols plugin and know that he/she is working on a newer version. I was wondering if the capabilities shown in the new article on ALA would be possible in a plugin? I wish I had the experience/knowledge to attempt such a thing but don’t so thought I might mention it here.


“Keep a straight face and you’ll be laughing!”

Offline

#26 2004-11-29 08:55:34

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,190
Website

Re: CSS Chooser

That new ALA styleswitcher works very well out of the box on my test install of Textpattern. A link to a stylesheet, a link to the js file and you’re done.

According to the comments on ALA, a PHP driven version is in the making. Maybe worthwhile to keep an eye on this, before building a plugin ? It would be nice, a good php driven styleswitcher plugin for Textpattern.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#27 2004-12-06 15:50:31

Halcrow
New Member
Registered: 2004-11-30
Posts: 2

Re: CSS Chooser

The “fla_altstyle_link” plugin won’t work for me. I’ve installed the plugin, activated it, created alternative stylesheets for my site and pointed the plugin towards them but when I click on the link to activate the alternate stylesheet the default remains. Can anyone help?

Offline

#28 2004-12-15 13:42:37

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: CSS Chooser

Did anyone solve the & validation problem?

Last edited by Martagnan (2004-12-15 13:42:51)

Offline

#29 2004-12-15 13:58:50

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: CSS Chooser

Not yet. It produces a shocking amount of validation errors from just one unencoded ampersand. Mind you, I’m not too bothered by that as its something out of my control


Cheers,
Jon VC#9

Offline

#30 2004-12-15 14:03:47

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: CSS Chooser

Jon,
Your site validates. Are you not using the plugin?

Offline

#31 2004-12-15 14:09:06

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: CSS Chooser

I am, but check any of the about pages – they all use a category in the URL. With the last rejiggle I simplified it all , and put things onto one section page where I could, but not the about section.


Cheers,
Jon VC#9

Offline

#32 2004-12-15 14:18:15

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: CSS Chooser

Ok thanks Jon!
What’s good for the Goose… is thicker than water…. or something?

Cheers

Offline

#33 2005-01-24 21:55:44

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: CSS Chooser

Can someone please tell me if I am right in thinking that this line in the plugin:

setcookie(“txp_stylesheet”, $stylesheet, time()+3600*24*31, “/”, $_SERVER[‘SERVER_NAME’], “0”);

means that if a visitor switches to an alternative style and makes another visit within 31 days, he will still see the alternative style? And if he doesn’t visit again until after more than 31 days, he’ll see the default style again?

If so, can I safely remove for instance the *31 part to make that 24 hours?

Thanks.

Offline

#34 2005-01-30 02:00:42

tee
New Member
From: Norway
Registered: 2004-09-19
Posts: 9

Re: CSS Chooser

This plugin almost works for me.

I am able to change stylesheets via the plugin-links, but when I navigate to another page it jumps back to the default-stylesheet again.

Example here:
http://torry.nu

Change stylesheet with the 2 links at the bottom (“v2b”, “v2a”).

BTW: I know the site has several bugs.

A working plugin that supports cookies and sessions is on my wishlist.


Proud VCII

Offline

#35 2005-01-30 08:11:16

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: CSS Chooser

tee: do you have cookies enabled?

Offline

#36 2005-01-30 16:54:04

tee
New Member
From: Norway
Registered: 2004-09-19
Posts: 9

Re: CSS Chooser

paularms: yes… did it work at your place then? (torry.nu)


Proud VCII

Offline

Board footer

Powered by FluxBB