I'm going to try and make my site all cool and customizable like linear's, but I'd prefer to keep it server-side for now. Linear did his with javascript and php acording to his post on another forum. So anyway, is there a simple way to get this done? I'd love to go a step further and allow people to select an external stylesheet, and use something similar to linear's script to edit whichever style they chose. Basically I'd like to choose a completely different style sheet for the layout, and use the selector to choose the colour theme. I'd also like to let it change a few images as well, if possible, so the site still "matches".
I think I am going to add some sort of thing to be able to increase or decrease font size to a site I'm doing at the moment. The site is for my church and many of the people are elderly so may have poorer eyesight, so increasing the font size would be nice. I'll probably try to do it server side too, because I don't want to rely on javascript because there are always one or two people with it turned off. Haven't really read that site properly yet but it looks like it may be quite a big help.
The only problem with the csszengarden is that it uses address-bar specified stuff.. so I'm not sure how to make this a more permanent view for users. Ideally I'd like to have people sign in to my site and be able to customize it to their liking. Mainly because I will probably eventually make a nice page for people to use as their startpage. Bringing them news and calendar features, as well as web-based mail eventually. Sort of a small-scale msn.com, so when I build someone a PC or a web page or whatever, I can set my page to their startup page. Any ideas how to do this based on cookies for now? Or would that just basically be a mixture of their script and linear's? On Second thought, anyone know good books on web programming? I've got PHP 4.3.2, ASP, ColdFusion Server, MySQL, and ActivePerl running on IIS 5, are there any books with all of this in there?!
Well, you know the four ways to get a variable into a PHP script, yeah? So you don't wanna use GET or POST, and maybe you don't wanna use a SESSION, so what's left?
Okay, I finally did a bit of learning instead of begging, and this is what I've come up with: you can go to www.woventhorns.com/learning/index.php and it will load the default style, or you can type in www.woventhorns.com/learning/index.php?style=print to see the print style. I have only done this one page, and none of the links work. I may later on figure out how to use cookies along with this... maybe a post instead of a get, implemented by a cookie? Is this possible? or can post only come from forms? Either way, I'm actually learning php finally! And it wasn't as hard as I thought it would be!
Cookies are the way to go... Code: <% Response.Cookies("mycookie")("css") = 1 Response.Cookies("mycookie").Expires = DateAdd("m",6,Now()) If Request.Cookies("mycookie").Haskeys then usercss = Request.Cookies("mycookie")("css") Else usercss = 1 End if %> ...in ASP, natch
I'm looking more for PHP... I'm running IIS and have heard there are problems with setcookie() and IIS, but this could easily be solved by installing php as an ISAPI filter... unfortunately the only instructions I've found involved using php4isapi.dll in the sapi subfolder of my PHP folder... I just downloaded the latest version of php and installed it and it had no sapi subfolder, much less a php4isapi.dll Back to the drawing board...
Okay, I wasn't thinking, and I've changed to using ISAPI filters. I relied on the windows installer last time, so I uninstalled and went through a manual installation instead. I still can't get the cookie to work though. I think I need to mess with headers or something? help? oh yeah, the page in question is at http://www.woventhorns.com/learning/