Description: This mod will add an easy access bar to your forums where users can choose a stylesheet and have it take effect instantly. Opposed to having to edit your profile everytime you need a new look!
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
[]Zackary said: Trippy! Does it get stored in the user's profile or will it default to the default when they come back? [/]
Thanks.
It's stored in a cookie created through javascript, so it isn't really in the profile -- but it does remember the users style preferences. I could have made it update the field in the database, but the page would have to refresh to run the update code... and i kinda like the instant thing. The user can still choose their style preference in their profile area too if they wish.
Sounds great, but the code that you said to replace in editdisplay.tmpl wasn't in my version.
I have modified my file to put in the CSS display preview modifification. However, the files you told me to find were in neither the original version nor the modified one after the CSS preview.
I would really like to use this one! Sounds great!
This looks like it might be a great hack. I do have a question though. In the DEMO you linked to there are 5 alternatives. What happens if you have 15 or 20 stylesheets that you are currently offering? Do all of them then get displayed? And wouldn't this create a huge array of links in that new table row?
Jeff
Artificial Intelligence is no match for natural stupidity!
It would, tho you could make a bit cleaner way to choose, much like zeldman does here: http://www.zeldman.com - tho you'd have a lot less hair-pulling if you were to trim that number down to 4-5 - that number will satisify 95% of your users, approx. the same number you satisfy with 15+ stylesheets
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.