Previous Thread
Next Thread
Print Thread
Hop To
#259289 02/23/2017 8:20 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
On my tablet (pixel c) the sides are on by default (desktop mode)
I click the link at the bottom to turn the sides off, but as soon as I click something else, the sides are on again.

How do I keep them off?


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Bad Frog #259292 02/23/2017 9:14 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
the "show/hide columns on this page" link at the bottom of the page is exactly that. "this page."
To have it displayed for every page, go to:
My Stuff > Preferences

Toggle:
Turn off the left column: Yes
Turn off the right column: Yes

You'll see these settings if you have them enabled within your Control Panel
Control Panel » Portal Settings
Allow Users To Turn Off The Left Column
Allow Users To Turn Off The Right Column


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
Bad Frog #259293 02/23/2017 9:21 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1


Would like it to stay hidden when I click the link at the bottom of the page for the duration of my session, or till I click it again.

Having to change my preferences every time is too many steps, as I am frequently switching between devices.



"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Bad Frog #259294 02/23/2017 9:30 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
sorry. its not a "Switch To Desktop Mode" link.

Its there to help visitors on thin screens access whatever information a forum owner has put in to their side columns.

If this helps, you can think of that button as Android's "Hamburger Menu" for sliding out the columns. Except that this first version of "UBB.threads Mobile" is the very first release that offers a mobile (responsive) interface. So right now, look at this feature the same way you'd look at a version 1.0 feature. Because thats what it is smile


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
Bad Frog #259295 02/23/2017 9:34 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
How many pixels wide is it before they get turned off for mobile phones?


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Bad Frog #259296 02/23/2017 9:45 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
According to common.css, its 759px where the columns recieve some adjustment. Then at lesser resolutions, other elements change.

Have a look through here:
http://mydevice.io/devices/

and here
http://www.websitedimensions.com/
Be aware though, responsive webdesign has changed a whole heck of a lot in just 2016 alone. Also, the end of 2015 is when people started noticing Phablets as being a thing. Even though the Galaxy Tab had already been around for a few years, the resolution on them sucked. The Nexus6 was Google's first Phablet. Your PixelC was released almost one year after Shamu and Flounder... man, I really do hate the Flounder (had a 32GB version. Died after 4 months. Bad nand....all 2GB of it)

Last edited by id242; 02/23/2017 9:55 PM. Reason: added some links

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
Bad Frog #259297 02/23/2017 10:33 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
i changed it to 901. - now when I view on my tablet, the sides are hidden by default. (it's 900x1280)

I have had a 1st gen and 2nd gen nexus 7, and recently had an insurance claim and since they (google) don't make the nexus or a 7" tablet at all any more they agreed to purchase the 10" pixel C... I love this thing.


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Bad Frog #259298 02/23/2017 10:37 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
Code
/* Custom */
@media all and (max-width:899px) {
.left_col{display:none;}
.body_col{padding:0;width:100%!important;}
}
Just add this to the bottom of your style in the "Extra" section (we would advise against modifying common.css), it will hide the left column

If you want it to hide both columns just:
Code
/* Custom */
@media all and (max-width:899px) {
.left_col{display:none;}
.right_col{display:none;}
.body_col{padding:0;width:100%!important;}
}

Keep in mind though that users with a browser width of 900px or less will get this behavior, desktop laptop or (god forbid) phone.

Last edited by Gizmo; 02/23/2017 10:51 PM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Bad Frog #259299 02/23/2017 10:51 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
how is that different than changing this?


Code
/* columns */
@media all and (max-width:901px) {
.left_col{display:none;}
.body_col{padding:0;width:100%!important;}
.right_col{display:none;}
}


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Bad Frog #259300 02/23/2017 10:52 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
refresh to read Gizmo's updated post from :51

rather than making customization to the stock code, edit your style to add the changes to "Extra Properties" within the style editor.
Attachments
20170223_18-54-38.PNG

Last edited by id242; 02/23/2017 10:55 PM.

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
Bad Frog #259301 02/23/2017 10:54 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
Well, changing data in common.css is going to be broken if you neglect to re-apply the modification on a future version; if you put it in your style it won't be affected by the common.css file being replaced.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Bad Frog #259302 02/23/2017 10:58 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
ok, that worked.. but why 899 and not 901? if my screen width is 900, wouldn't having it at 899 in the settings not activate that piece of script?


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Gizmo #259303 02/23/2017 11:02 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
Code
max-width:899px
It is 899 so that it turns off width is less than 900px


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #259304 02/23/2017 11:32 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
Originally Posted by Gizmo
Code
max-width:899px
It is 899 so that it turns off width is less than 900px

but my width is 900, so wouldn't I want it at 901?


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Bad Frog #259305 02/23/2017 11:37 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
Turns off below 900px would be 899 and below.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Bad Frog #259306 02/23/2017 11:54 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
if you copied your current style to a new one, and called it, "StyleName - Hidden Columns" (or whatever).
then edited the new style to have the desired css at the bottom of the EXTRAS section, you could easily just switch your forum layout by changing your style smile

Just add these to that new/copied style's EXTRAS section:

.left_col{display:none;}
.right_col{display:none;}

But then again, a user could just go in to their My Stuff > Preference page and turn the columns off. That would be the best way. But it requires about three to five more clicks. One way is the obvious way, and the other way is a quick/fast way to toggle their display on all forum pages, including the portal.

Its all a matter of how you want to customize your forums. And UBB.threads lets you make your forums...yours laugh


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
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
3 members (Ruben, Nightcrawler, ahmed047), 837 guests, and 135 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 20240505)