Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: CSS Chooser
> Tournesol wrote:
> No, at this time it only plays with txp’s CSS system.
But you’ll have some new options and functions very soon… stay tuned…
;)
Cool! Look forward to it!
Cheers,
Jon VC#9
Offline
Re: CSS Chooser
> Unknown-Error wrote:
> If anyone’s interested, I’ll put up a link.
Sure, go on.
Offline
Re: CSS Chooser
OK, I’ve now implemented this on my site, but i have query regarding URLs. If the URL has a category specified in it (such as http://www.hicksdesign.co.uk/about/?c=colophon) the site style link is added with an ampersand. This won’t validate. Changing the $url variable in the plug in to <code><pre> & amp ; </pre></code> sort of works, but is there a better way around this?
Last edited by jonhicks (2004-11-01 00:08:49)
Cheers,
Jon VC#9
Offline
Re: CSS Chooser
Jon,
would that piece in your .htaccess file help?
<code>
<IfModule mod_php4.c>
php_value arg_separator.output “&amp;”
php_value arg_separator.input “&”
</IfModule>
</code>
Last edited by ChrisJ (2004-11-01 13:02:32)
Offline
Re: CSS Chooser
ChrisJ,
doesn’t seem to do the trick. Presumably that wouldn’t actually change the html that the plugin outputs? This is the troublesome in the plugin code:
<pre>
$url .= “&”;
</pre>
If thats changed to
<pre>
$url .= “&”;
</pre>
It doesn’t output the semi-colon.
Last edited by jonhicks (2004-11-03 15:19:46)
Cheers,
Jon VC#9
Offline
Re: CSS Chooser
Dang! can’t get & amp ; to show up in that last example
Cheers,
Jon VC#9
Offline
Re: CSS Chooser
> jonhicks wrote:
> Dang! can’t get & amp ; to show up in that last example
& + amp; twice (& amp; amp; – without spaces) should give &amp;
Last edited by ChrisJ (2004-11-03 22:50:23)
Offline
#23 2004-11-18 14:34:15
- stevechamp
- Member
- Registered: 2004-08-13
- Posts: 12
Re: CSS Chooser
Has anyone else has problems using mod rewrite rules (http://www.funkaoshi.com/debug/clean-urls-in-textpattern) for clean urls, and also using this plugin.
For me it works when www.domain.com/?css=default but not
www.domain.com/about?css=default
any clues
Last edited by stevechamp (2004-11-18 14:34:47)
Offline
#24 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
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
phiw13 on Codeberg
Offline
#26 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
Re: CSS Chooser
Did anyone solve the & validation problem?
Last edited by Martagnan (2004-12-15 13:42:51)
Offline
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
Re: CSS Chooser
Jon,
Your site validates. Are you not using the plugin?
Offline