Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
Re: CSS Chooser
yep working great.
Offline
#38 2005-01-31 02:34:30
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: CSS Chooser
Tee,
Your cookie code is using the wrong domain. The cookie is only valid for www.torry.nu, not torry.nu.
<pre>
HTTP request sent, awaiting response…
1 HTTP/1.1 200 OK
2 Date: Mon, 31 Jan 2005 02:38:08 GMT
3 Server: Apache/1.3.33 (Unix) PHP/4.3.10 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7c
4 X-Powered-By: PHP/4.3.10
5 Set-Cookie: txp_stylesheet=v2b; expires=Thu, 03-Mar-05 02:38:14 GMT; path=/; domain=www.torry.nu
6 Connection: close
7 Content-Type: text/html; charset=utf-8
</pre>
Last edited by zem (2005-01-31 02:35:05)
Alex
Offline
#39 2005-01-31 20:34:45
- tee
- New Member

- From: Norway
- Registered: 2004-09-19
- Posts: 9
Re: CSS Chooser
Ah, you are perfectly right zem. Thanks to you and paularms for replying, not to mention solving the issue.
Now, any suggestion to how I can use both domains with this plugin? In the admin panel I entered the “Web domain” without “www”. I don’t know why the cookie code has “www” in it. I think most users would like the option to use their short url.
Anyway, thanks again.
Proud VCII
Offline
Re: CSS Chooser
i quickly solved the validation bug
http://fw4ever.toxin.hu/fla_altstyle_linkFix.txt
and thx for the great plugin
Last edited by toxin (2005-06-03 06:10:12)
Offline
#41 2005-06-07 14:51:55
- davidm
- Member

- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: CSS Chooser
As anyone had problems with this plugin with RC3 ?
The <txp:fla_style_switcher /> is not parsed in the head call :
<link rel="stylesheet" href="<txp:fla_style_switcher /> " type="text/css" />
doesn’t work….
Plugin is activated properly, the switcher links are there but doesn’t work with rev392…
.: Retired :.
Offline
Re: CSS Chooser
try this ;)
‹txp:fla_style_switcher default=“YOURDEFAULTCSS” media=“screen” />
Last edited by toxin (2005-06-07 17:45:05)
Offline
Re: CSS Chooser
This ain’t working for me any more either, under rev 464. Tried toxin’s method too.
Offline
Re: CSS Chooser
I’m on 464 and it works great.
Offline
#45 2005-07-03 17:56:15
- Boogenstein
- Member

- From: Wausau, Wisconsin, USA.
- Registered: 2004-03-28
- Posts: 56
Re: CSS Chooser
I have been using it since Tournesol first posted about it. I have updated every couple of days and like paularms am presently on 464. It has always worked without a single hitch and I have not had to change anything since I installed it..
“Keep a straight face and you’ll be laughing!”
Offline