Like SystemiConnectFri 15 Oct 2021, 04:50
Auto Save MessagesLGforumFri 26 Feb 2021, 13:31
New tutorial questionTheCrowMon 15 Feb 2021, 08:12
Support iOS Emojis (and other platforms)LGforumSun 14 Feb 2021, 01:25
LGforum (2806)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
Mr.Easybb (1587)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
Bloodbath (745)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
Rukiafan (533)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
Dom (513)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
puppycheese (446)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
pedro (330)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
Neymar (301)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
Hitsu (281)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 
Flora (275)
Disable the Mobile Site Vote_lcapDisable the Mobile Site Voting_barDisable the Mobile Site Vote_rcap 


Disable the Mobile Site

LGforumLGforum
Status : Working to restore AWC!

Posts : 2806
Join date : 2011-10-05
Age : 30
Location : UK
Thu 09 May 2013, 14:07
A lot of people don't like the mobile site. To be honest, with the recent updates it does have potential, but a lot of people either don't have the knowledge or the time to fix it into a state they like. In which case, here's how to disable it.

Simply put this in any Javascript code for 'In All Pages'
Code:
[panda=js]$(function() {
  if(window._userdata && _userdata.page_desktop) window.location = _userdata.page_desktop;
});

Now your members won't see the mobile site. The first time they visit it, they'll experience a small redirect, but it won't look bad and they won't see it again.
Ch@lo ValdezCh@lo Valdez
Status : :)

Posts : 218
Join date : 2013-04-21
Age : 48
Location : Mexico City
Tue 28 May 2013, 02:49
Thanks Smile
lightningterrorlightningterror
Status : No status yet...

Posts : 102
Join date : 2012-11-02
Tue 28 May 2013, 11:35
Is it possible to make the users be redirected on a custom html page?
LGforumLGforum
Status : Working to restore AWC!

Posts : 2806
Join date : 2011-10-05
Age : 30
Location : UK
Tue 28 May 2013, 15:49
Just change this bit: [ic]window.location = _userdata.page_desktop; [/ic] to [ic]window.location = '/h1-your-html-page'; [/ic]
redindianredindian
Status : No status yet...

Posts : 15
Join date : 2011-11-28
Age : 48
Location : Malaysia
Tue 28 May 2013, 17:16
Thank you LG.
avatarDeeW.
Status : No status yet...

Posts : 5
Join date : 2014-03-15
Age : 24
Sat 22 Mar 2014, 14:00
Thanks! Smile
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Thu 18 Jun 2015, 15:06
Does this code still work?
Sponsored content