DISABLE MOBILE SITE

October 08 Joomla Templates
GK User
Wed Dec 28, 2011 3:29 pm
I am trying to use a 3rd party component/plugin to run my site as mobile. (mobile joomla) to be exact as it allows me to use subdomains

I am trying but when I acces the main site its just blank, how can I disable the template mobile part so it uses the component. I have tried everything changing it to "non selected" "use default" every single option and always blank page on mobile
User avatar
Fresh Boarder

GK User
Wed Dec 28, 2011 4:08 pm
Hi,

Do you mean that you want to ignore device checking feature of the template?

If so, you can try this:

- Open file: \templates\gk_twn2\lib\gk.framework.php

- Find this code to remove:
Code: Select all
if ($this->browser->get('mobile')) {
               $this->getLayout('mobile');
           } else {    
User avatar
Platinum Boarder

GK User
Mon Jan 23, 2012 2:00 am
is there a way to put this script in CCS override box?
thanks
Levent
User avatar
Senior Boarder

GK User
Mon Jan 23, 2012 5:27 pm
Hi Levent,

This is a fix of php code so it can not be put in the box like a css code.
User avatar
Platinum Boarder

GK User
Mon Jan 23, 2012 6:19 pm
Actually, I found the answer:
there are options in template manager, in basic settings. You have to choose default for all layout options (iphone, android, etc.)./ Then mobile templates are disabled.

levent
User avatar
Senior Boarder

GK User
Thu Jan 26, 2012 11:49 am
Yes you're right Levent, you can use that way as well.
User avatar
Platinum Boarder

GK User
Mon Feb 27, 2012 4:38 pm
I have done this but I get error 500 when I disable that part. I am using the latest joomla 2.5 and with the latest update of this template. is there a new way to do it? I want to use mobile joomla 1.0

Don Lee wrote:Hi,

Do you mean that you want to ignore device checking feature of the template?

If so, you can try this:

- Open file: \templates\gk_twn2\lib\gk.framework.php

- Find this code to remove:
Code: Select all
if ($this->browser->get('mobile')) {
               $this->getLayout('mobile');
           } else {    
User avatar
Fresh Boarder

GK User
Tue Feb 28, 2012 11:10 am
Hi renzosm,

Can you send me a PM with backend and FTP access info then I can check further for you?

Thanks,
User avatar
Platinum Boarder

GK User
Tue Mar 06, 2012 5:45 pm
Pls. let me know, got the same error in Party Freak...

if ($this->browser->get('mobile')) {
$this->getLayout('mobile');
} else {

deleting cuases error...

Kay
User avatar
Junior Boarder

GK User
Wed Mar 07, 2012 2:32 pm
Sorry, I did give you a wrong code to remove. Please try this instead:

- Find:
Code: Select all
if ($this->browser->get('mobile')) {
               $this->getLayout('mobile');
           } else {    
              if ($this->browser->get('browser') == 'facebook') { // facebook mode
                   $this->getLayout('facebook');
               } else { // normal mode
                   $this->getLayout('normal');
               }
           }

Change to:
Code: Select all
   
              if ($this->browser->get('browser') == 'facebook') { // facebook mode
                   $this->getLayout('facebook');
               } else { // normal mode
                   $this->getLayout('normal');
               }
           
User avatar
Platinum Boarder

GK User
Wed Mar 14, 2012 3:06 pm
Dear Don, I cant find that part in the gk.framework.php, remember I am using the latest Joomla edition and also the latest Template updates

where it?


Don Lee wrote:Sorry, I did give you a wrong code to remove. Please try this instead:

- Find:
Code: Select all
if ($this->browser->get('mobile')) {
               $this->getLayout('mobile');
           } else {    
              if ($this->browser->get('browser') == 'facebook') { // facebook mode
                   $this->getLayout('facebook');
               } else { // normal mode
                   $this->getLayout('normal');
               }
           }

Change to:
Code: Select all
   
              if ($this->browser->get('browser') == 'facebook') { // facebook mode
                   $this->getLayout('facebook');
               } else { // normal mode
                   $this->getLayout('normal');
               }
           
User avatar
Fresh Boarder

GK User
Thu Mar 15, 2012 11:04 am
Can you please send me a PM to provide with FTP access info then I can check for you?

Thanks,
User avatar
Platinum Boarder


cron