Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 09 Sep 2020, 11:54
Kwikms Kwikms is offline
 
Join Date: Jul 2004
Showthread: userinfo above on mobile, to the left on desktop

Anyone got an idea how to switch the userinfos on the showthread page from left to above depending if I am on a mobile device or on a desktop? (vb 3.8). On mobile it should be above and on desktop it should be on the left side.

Its a setting in the style and language vb setting, but not a style related setting.

I am using vb 3.8 and only one style.
Reply With Quote
  #2  
Old 13 Sep 2020, 16:40
Nas.er Nas.er is offline
 
Join Date: Mar 2016
Real name: Naser
i do use style fetch plugin. i do make a copy of style on desktop will show only left side (postbit_legacy) and for mobile (postbit) on top > i replaced both the same code postbit_legacy and postbit for top on mobile. the plugin will detected if user using desktop or mobile> without change any style and language vb setting
Reply With Quote
  #3  
Old 13 Sep 2020, 18:18
Kwikms Kwikms is offline
 
Join Date: Jul 2004
Thanks, what is the name of the style fetch plugin?
Reply With Quote
  #4  
Old 13 Sep 2020, 20:49
Nas.er Nas.er is offline
 
Join Date: Mar 2016
Real name: Naser
go to Add New Plugin
>Hook Location: style_fetch
>Title: *any title
>Execution Order: 5
>Plugin PHP Code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Plugin is Active> yes

the first 3 lines edit your desktop and mobile browser ID>>>> mine for mobile 115 and desktop is 60

$mobile_style_advanced=115; //iPhone?
$mobile_style=115; //Any mobile phone/device
$default_style=60; //Your default or preferred desktop style

let me know if that works for you
Reply With Quote
  #5  
Old 14 Sep 2020, 13:19
Kwikms Kwikms is offline
 
Join Date: Jul 2004
Perfect, thanks!!!!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:06.

Layout Options | Width: Wide Color: