The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I disable the mobile site on Punbb?

View previous topic View next topic Go down

Solved How can I disable the mobile site on Punbb?

Post by Van-Helsing on March 20th 2016, 12:58 am

How can I disable the mobile site on Punbb?

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I disable the mobile site on Punbb?

Post by Ange Tuteur on March 20th 2016, 1:12 am

Hi,

Add the following script in all the pages :
( Modules > JS codes management )
Code:
$(function() {
  if (_userdata.page_desktop) window.location.href = _userdata.page_desktop;
});
That should redirect you from the mobile version to the desktop version.

If that doesn't work please provide the URL of your forum. Wink

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I disable the mobile site on Punbb?

Post by Guest on March 20th 2016, 1:14 am

Thanks @Ange Tuteur . Got one for your phpBB3 friends Smile

Code:
$(function(){if (_userdata && _userdata.page_desktop) window.location.href = _userdata.page_desktop.replace(/&/,'&')});

Night all Hello I don't want that

Samantha.


Guest
Guest


Back to top Go down

Solved Re: How can I disable the mobile site on Punbb?

Post by Van-Helsing on March 20th 2016, 1:20 am

Thank you very much @Ange Tuteur it is working perfect it is displaying the mobile version while loading (for 1-2 secs) and then redirects to desktop version. Thank you very much too @RoXaNNeX, I will keep it for phpbb3 too maybe someone need it.

The problem is solved.
~1~

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I disable the mobile site on Punbb?

Post by SLGray on March 20th 2016, 2:56 am

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35634
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum