- Posts: 5
- Thank you received: 0
For IPad template
-
BoRaptis
Inactive member - Topic Author
- New Member
Less
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?
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
Less
More
- Posts: 6745
- Thank you received: 716
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):
add these 2 lines:
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 edit file /templates/hot_mobility/index.php. After line (around line 14):
Code:
$current_browser = 1;
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
Less
More
- Posts: 5
- Thank you received: 0
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
Thanks a lot it worked.
Bo.R
Please Log in to join the conversation.
-
BoRaptis
Inactive member - Topic Author
- New Member
Less
More
- Posts: 5
- Thank you received: 0
-
milos
Support Staff - Moderator
Less
More
- Posts: 6745
- Thank you received: 716
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
Less
More
- Posts: 5
- Thank you received: 0
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!
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.169 seconds