Welcome, Guest
Username Password: Remember me

disable easy switching
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: disable easy switching

disable easy switching 13 years, 3 months ago #5035

  • rengatkids
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
hi. i'm proud with the developer.

i have some questions.
how to disable easy switching template testing.
like. ?device=xhtml

because i want user can not access the mobile site when using pc.

where code must i delete.

thanks before.
please your helping.

Re: disable easy switching 13 years, 3 months ago #5036

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
File: plugins/system/mobilebot/mobilebot.php
Function: getUserMarkup
Code to remove:
if(isset($_GET['device']))
$markup = $this->CheckMarkup($_GET['device']);
Last Edit: 13 years, 3 months ago by dryabov.

Re: disable easy switching 13 years, 3 months ago #5038

  • rengatkids
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
its work.,
thanks for your fast helping to me.

Re: disable easy switching 13 years, 3 months ago #5039

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
But it's not the best solution, because of some tablets may be determined as mobile devices, but users prefer to use desktop version instead of mobile one in this case, and "device=" parameter is the simplest way to give user a choice.
  • Page:
  • 1
Time to create page: 0.09 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.