Previous Thread
Next Thread
Print Thread
Hop To
Different Method of Changing Styles #262410 02/26/2019 2:06 AM
Joined: Mar 2015
Posts: 91
M4TT Offline OP
Journeyman
OP Offline
Journeyman
Joined: Mar 2015
Posts: 91
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]
Re: Different Method of Changing Styles [Re: M4TT] #262411 02/26/2019 2:22 AM
Joined: Apr 2004
Posts: 1,571
Likes: 6
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,571
Likes: 6
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 // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com

Link Copied to Clipboard
Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Subscriptions Question
by Ruben - 01/14/2020 12:11 PM
Page won't load after 7.7.3 Update
by Jim0421 - 01/08/2020 11:11 AM
Ubb 7.7.3 winkey emoji shortcut issue
by Ruben - 01/07/2020 4:04 PM
testing winkey emoji shortcut
by Ruben - 01/06/2020 2:36 PM
Very strange problem
by Baldeagle - 01/05/2020 1:22 PM
Who's Online Now
1 members (Gizmo), 80 guests, and 255 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200106)