Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2004-09-25 20:42:25

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

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

#17 2004-10-12 14:59:09

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: CSS Chooser

> Unknown-Error wrote:
> If anyone’s interested, I’ll put up a link.

Sure, go on.

Offline

#18 2004-11-01 00:07:36

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

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

#19 2004-11-01 13:01:53

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: CSS Chooser

Jon,
would that piece in your .htaccess file help?

<code>
<IfModule mod_php4.c>
php_value arg_separator.output “&amp;amp;”
php_value arg_separator.input “&amp;”
</IfModule>
</code>

Last edited by ChrisJ (2004-11-01 13:02:32)

Offline

#20 2004-11-01 14:14:26

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

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 .= “&amp;”;
</pre>

It doesn’t output the semi-colon.

Last edited by jonhicks (2004-11-03 15:19:46)


Cheers,
Jon VC#9

Offline

#21 2004-11-03 15:20:25

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

Re: CSS Chooser

Dang! can’t get & amp ; to show up in that last example


Cheers,
Jon VC#9

Offline

#22 2004-11-03 22:49:16

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

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;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

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

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,666
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
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

#27 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 &amp; validation problem?

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

Offline

#28 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

#29 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

Board footer

Powered by FluxBB