The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How can I disable the mobile site on Punbb?

3 posters

Go down

Solved How can I disable the mobile site on Punbb?

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

How can I disable the mobile site on Punbb?
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by Ange Tuteur 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) windowlocationhrefTEMPORARYDISABLE = _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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Guest 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.

avatar
Guest
Guest


Back to top Go down

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

Post by Van-Helsing 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
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

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

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

Topic solved and archived


How can I disable the mobile site on Punbb? Slgray10

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

Male Posts : 51608
Reputation : 3529
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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