I have created a theme switcher.
Obviously it uses different css files, so lets say :
default is custom.css
We can trigger alternative themes, but need to append the new css file to the current page. Thats all done BUT !
They are named:
apple.css grape.css pear.css
My question is: will vanilla tolerate custom.css being replaced by apple.css in the dom. The switcher works perfectly and has cookies built in, so users can switch willy nilly across themes.
But wondering if its a goer with Vanilla.
If it is, I will deploy on a live test forum, this is for an upcoming commercial theme.
422 Real Estate Australia , now open Check it out
Answers
So on further investigation, seemingly. Unless the custom theme file custom.css is so named, it cannot be called anything else.
So will try PLAN B
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •if this works - do I get a copy of your themeswitcher :)
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •If you want I can send you demo zip on plain html demonstration. If you can get it working, your more than welcome.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Dd you get link i sent?
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •yep, I'll see what I can do.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Cheers :)
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •an idea...
use a very lightly loaded custom.css in your theme (just the stuff that would be common across the users), then load the by-user theming css file via plugin.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I think thats what peregrine is gonna try and do.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •cool. should be an interesting project. i think the UI for the users to select the theme will be the hardest part. other than that loading some css based on some info you store in the user table should be a breeze.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •The ui is all done and works.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@422
You should have received it. I just sent you a zip to work as a plugin. Good luck and happy premium sales.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
2 • Off Topic Insightful 2Awesome LOL •Cheers will check it out asap.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Hi!
@422, Is this addon available for download?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Sheila
I use a code snippet I got from Dynamic Drive to switch stylesheets on my forum which stores cookies to remember user choice.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks! Will test that. Thou the need to switch theme is for making a new theme for my board with out stressing users while it happens, so I might need more that just a ability to switch the css.
Naturally I could clone my board to new fresh installation but..
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Sheila
I have a local copy of my forum, but I also cloned my Vanilla folder on my webserver, which I use to test changes.
It still links to your original DB - just clear the ini files from the cache folder.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Ooh, thanks!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •