For IPad template

  • BoRaptis
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 7 months ago #8030 by BoRaptis
For IPad template was created by BoRaptis
Hi

Bought your template and like it à lot, Only one thing how can I prevent iphone templates when users use iPad. When I go to My site using iPad the iphone template show up and it looks really nasty.

How can I configure default mobility template for iPad users if it is possible?

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
13 years 7 months ago #8052 by milos
Replied by milos on topic Re: For IPad template
Sorry for delay. I don't have iPad so I can't test it.

Please edit file /templates/hot_mobility/index.php. After line (around line 14):
Code:
$current_browser = 1;
add these 2 lines:
Code:
$isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad'); if($isiPad) { $current_browser = 0; }

Test it on your iPad and please let me know if that worked? You should see template in normal state (as on desktop computers) on your iPad.

Please Log in to join the conversation.

  • BoRaptis
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 7 months ago #8068 by BoRaptis
Replied by BoRaptis on topic Re: For IPad template
:woohoo:
Thanks a lot it worked.

Bo.R

Please Log in to join the conversation.

  • BoRaptis
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 7 months ago - 13 years 7 months ago #8071 by BoRaptis
Replied by BoRaptis on topic Re: For IPad template
:)
Last edit: 13 years 7 months ago by BoRaptis.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
13 years 7 months ago #8072 by milos
Replied by milos on topic Re: For IPad template
Can you please confirm if it works on both iPhone and ipad after your change?

Please Log in to join the conversation.

  • BoRaptis
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 7 months ago #8073 by BoRaptis
Replied by BoRaptis on topic Re: For IPad template
first it did not worked, then removed all code replaced back the old code and did as you wrote above one more time and now it seems to work.

Its working in both iPhone and iPad. Meaning one view for iPad and another in iPhone.

Thanks a lot!

Please Log in to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum