Well, I just got a website running..
and uhm, I have several templates I like to use..
What I am trying to do is this: I upload few website templates, and display a dropdown menu where users can pick which template to choose from. (like vBulletin forum style picker)
I can do the above, BUT see, the above is very simple...all you got to do is link the template folder...but what I need is if there was a code that saves the user selection template, and saves them to there cookies, so whenever they visit my website, the one they chosed template will be there default one unless they change it, or delete there cookies
It's like the vBulletin style selector, but instead of saving the style default to there user account the the vBulletin site, I want it to save it on the person's cookie..
Well, I just got a website running..
and uhm, I have several templates I like to use..
What I am trying to do is this: I upload few website templates, and display a dropdown menu where users can pick which template to choose from. (like vBulletin forum style picker)
I can do the above, BUT see, the above is very simple...all you got to do is link the template folder...but what I need is if there was a code that saves the user selection template, and saves them to there cookies, so whenever they visit my website, the one they chosed template will be there default one unless they change it, or delete there cookies
It's like the vBulletin style selector, but instead of saving the style default to there user account the the vBulletin site, I want it to save it on the person's cookie..
If your styles and templates are all defined by CSS, as they should be, then this a perfect job for JavaScript. I've been banned by Webdeveloper.com and forbidden to help people with JavaScript so hie yourself to that forum. Somebody will come along soon to help you.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Ok, um, where do I put that, and how do I define it?
Can u please be more specific?
I'm no expert....lol
Since you posted in the PHP section, I gave you PHP.
The first line will create the cookie, the second will display it (although I'd expect that using the value to set the style sheet would be more useful).
Since you posted in the PHP section, I gave you PHP.
The first line will create the cookie, the second will display it (although I'd expect that using the value to set the style sheet would be more useful).
Bookmarks