View Full Version : Sorting out mobile
pjkcards
07-25-2014, 02:17 PM
I was browsing http://forums.androidcentral.com/ today on my mobile phone and was very impressed by how well it worked on mobile. When I go to it, it looks very nice, and formats well with mobile. However, at the bottom of the site, I can click "View Full Site" and the desktop version shows up.
How can I setup like this (I'm running vB 4.2.1, but androidcentral is running vB 5 I think)? How does it force the mobile phone useragent to go to the mobile site, yet still lets a mobile device view the full desktop site upon clicking "View Full Site"?
Many thanks.
It looks like this (http://themeforest.net/item/metro-mobile-a-mobile-theme-for-vbulletin-42/4013274) theme. View full site is just a normal link and it's just a matter of checking the useragent to identify a mobile user.
pjkcards
07-27-2014, 06:54 AM
It looks like this (http://themeforest.net/item/metro-mobile-a-mobile-theme-for-vbulletin-42/4013274) theme. View full site is just a normal link and it's just a matter of checking the useragent to identify a mobile user.
If you're using useragent though, when a mobile user clicks "View Full Site", wouldn't it recognize your useragent and just forward you to the mobile site again? How do you overcome this?
Thanks.
That's a matter of setting a cookie or session variable. If your custom variable is set, do not redirect, else redirect unless the user changed styles.
pjkcards
07-27-2014, 12:14 PM
How do I do that?
pjkcards
09-28-2014, 06:15 AM
Can anyone help me with this? Thanks.
AdminCP -> Settings -> Options -> Style & Language Options
Default Style for Old Mobile Browsers
Select the default mobile style for old mobile browsers. This style will be used if user is browsing your forum with an older mobile browser. Set to 'None' to use desktop browser style.
Default Style for Modern Mobile Browsers
Select the default mobile style for modern mobile browsers. This style will be used if user is browsing your forum with a modern mobile browser. Set to 'None' to use desktop browser style.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.