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