Previous Thread
Next Thread
Print Thread
Hop To
Different Method of Changing Styles #262410 02/26/2019 3:06 AM
Joined: Mar 2015
Posts: 88
M4TT Offline OP
OP Offline
Joined: Mar 2015
Posts: 88
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...


[Linked Image from]
[Linked Image from]
[Linked Image from]
Re: Different Method of Changing Styles [Re: M4TT] #262411 02/26/2019 3:22 AM
Joined: Apr 2004
Posts: 1,503
isaac Offline
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,503
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:

Dark Reader for Chrome

Dark Reader for Firefox

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ // my forum @

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
visual accessibility issues.v7.7.3
by Ruben - 08/21/2019 1:50 PM
Holy grail to fix compatibility bewteen browsers
by Ruben - 08/20/2019 4:25 PM
File Manager and Image Uploads
by Ty Griffin - 08/19/2019 4:48 PM
Minimum Post Character Count
by M4TT - 08/19/2019 1:58 PM
[FIXED for 7.7.4] Strange Merge Issue
by Baldeagle - 08/16/2019 3:37 PM
Who's Online Now
0 registered members (), 60 guests, and 228 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Photos
Amusing Terain Scenics
Sky places
Work spaces
Powered by UBB.threads™ PHP Forum Software 7.7.3