Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2015
Posts: 96
Likes: 1
Journeyman
Journeyman
Joined: Mar 2015
Posts: 96
Likes: 1
Hey guys,

Any pointers to make it possible to change styles with an html link or script instead of selecting one from an option drop-down menu?

I'd like to create a button for users to click if they want a high-contrast color template (style). Switching between high or low contrast...

I see that the option to change styles is located at the bottom of the portal when enabled, so a custom button would be preferable, at least for this particular feature...

Matt


[Linked Image from imagizer.imageshack.com]
[Linked Image from aliendisc.net]
[Linked Image from aliendisc.net]
Joined: Apr 2004
Posts: 2,032
Likes: 176
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 2,032
Likes: 176
Selecting a style is also available to users within their Preference Editor.
1) Profile Dropdown Menu (Member Name/Top-Right)
2) Click Preferences
3) Select the Preferred Forum Style (aka Skin/Theme)
Save Changes.

I'm sure that if you only had two styles, you could create a link to hard-code toggle between style named "DEFAULT" and "NOT-DEFAULT," so that you'd have a "dumb toggle."

This would be something you'd have to custom program yourself, since there are plenty of sites that allow users the choice between more than just 1/ DEFAULT and 2/ NOT-DEFAULT.

You could even relocate the drop-down to another location on your pages, so that its right up-front for the user to click and toggle between. Then you can populate it with all the styles you want -- or just two. But that would add clutter to the most important parts of your pages. Really how often do users toggle between multiple styles on each visit session?

But the very simple alternative would be to just offer up the end user a browser-extension.
I recommend DARK READER: https://darkreader.org/help/en/

Dark Reader for Chrome
https://chrome.google.com/webstore/detail/dark-reader/eimadpbcbfnmbkopoojfekhnkhdbieeh

Dark Reader for Firefox
https://addons.mozilla.org/en-US/firefox/addon/darkreader/


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.1 // wip: UBB.threads 8.1.0
isaac @ id242.com // my forum @ CelicaHobby.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
0 members (), 381 guests, and 101 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)