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: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
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: UBBT 7.7.5 // Preview: UBBT 8.0.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
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)