Disable the Mobile Version (New Script)
3 posters
Page 1 of 1
Disable the Mobile Version (New Script)
EDIT : Thanks to Forumactif you no longer need a script to disable the mobile version -- it can be disabled via the admin panel. See the link below for more information.
https://help.forumotion.com/t156600p30-disable-mobile-version-problem#1081976
You may also view the old method below if you're curious, however, I highly suggest using the option in the admin panel instead !
https://help.forumotion.com/t156600p30-disable-mobile-version-problem#1081976
You may also view the old method below if you're curious, however, I highly suggest using the option in the admin panel instead !
- Click to view old method:
Information
Forumactif's recent update may have rendered your old script for disabling the mobile version useless. If this is the case, and you're experiencing endless redirections, it's highly recommended that you remove the old script via the founder tools which will allow you a direct connection to the admin panel.
Seeing as the old script no longer works, I wrote up a new one that will work with the current changes. If you still wish to disable the mobile version, follow the steps below.Installation
Go to Admin Panel > Modules > JavaScript codes management and create a new script with the following settings.
Title : Disable Mobile Version
Placement : In all the pages
Code :- Code:
document.addEventListener('DOMContentLoaded', function () {
if (_userdata.tpl_mobile && my_getcookie('_mobile_version') != '0') {
my_setcookie('_mobile_version', '0', true);
window.location.reload();
}
});
Save the script and the modification will be installed !Summary
If all goes as planned, whenever you visit the mobile version of your forum, you should be redirected to the desktop version automagically.
Note : This new script uses cookies, so you may experience the redirection again if you clear your browser's cookies.
If any issues with this script, feel free to let us know below.
Last edited by Ange Tuteur on October 10th 2018, 4:22 pm; edited 1 time in total
Re: Disable the Mobile Version (New Script)
Thank you for the update, Katty! You always surprise me with these script
Re: Disable the Mobile Version (New Script)
Dear @Ange Tuteur there is no need for your code now our team have made the settings on the ACP for the founder to change the settings as they wish
please read https://help.forumotion.com/t156600p30-disable-mobile-version-problem#1081976
please read https://help.forumotion.com/t156600p30-disable-mobile-version-problem#1081976
Re: Disable the Mobile Version (New Script)
@APE Well that's good to see. I'll update the first post with this information.
Re: Disable the Mobile Version (New Script)
You are so welcome have a great day buddy ....PS i miss you buddy
Similar topics
» Disable the mobile version.
» Can't disable mobile version
» Disable Mobile Version
» How to Disable the Mobile Version
» Disable mobile version problem
» Can't disable mobile version
» Disable Mobile Version
» How to Disable the Mobile Version
» Disable mobile version problem
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum