Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 15th Oct 2012, 08:22 AM   #1
Active Warrior
 
Join Date: 2007
Location: , , Ireland.
Posts: 64
Thanks: 0
Thanked 6 Times in 6 Posts
Default
Mobile redirect script with user agent detection
Share on: 
fb share twitter share gplus share more share

Hi,

I have a couple of mobile redirect scripts already. However I can't find one which allows me to single out iPads.

Some clients and leads are asking to have their main desktop website still show on iPads by default. I can do this with a screen size detection script but that's not really the best way to go.

Does anyone know of a mobile redirect script that will allow me to do this?

Regards,

Dave
DavidMeade is offline  
Unread 15th Oct 2012, 08:46 AM   #2
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: Mobile redirect script with user agent detection
Share on: 
fb share twitter share gplus share more share

Ours does that but its for Wordpress...

However if your site is php based you could do something like this on the desktop version:

Code:
for some reason it wont post so will add it as an attachment

ipad-redirect.txt

obviously remove the "code" tags
Basically what this would does is detect if the visitor is viewing the site on an iPad.

If they are it will skip your redirect script if they are not it will run the redirect script based on its own parameters.

Using something like this will enable you to combine some of the other scripts you have used already.

Hope that helps

Cheers

Jay

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
Unread 15th Oct 2012, 02:42 PM   #3
Active Warrior
 
Join Date: 2007
Location: , , Ireland.
Posts: 64
Thanks: 0
Thanked 6 Times in 6 Posts
Default
Re: Mobile redirect script with user agent detection
Share on: 
fb share twitter share gplus share more share

Hey Jay,

thanks for that. I'll test it shortly.

It's basically just saying if it's an ipad do nothing. Everything else it will process the redirect script which will figure out if it's a pc or mobile phone?

Not all of my clients have wordpress so this will be useful for them. Hopefully the product I currently use will have this option in future updates. If not then I will have to check out your wordpress plugin

Thanks again.

Dave
DavidMeade is offline  
Unread 15th Oct 2012, 03:29 PM   #4
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: Mobile redirect script with user agent detection
Share on: 
fb share twitter share gplus share more share

Originally Posted by DavidMeade View Post

Hey Jay,

thanks for that. I'll test it shortly.

It's basically just saying if it's an ipad do nothing. Everything else it will process the redirect script which will figure out if it's a pc or mobile phone?

Not all of my clients have wordpress so this will be useful for them. Hopefully the product I currently use will have this option in future updates. If not then I will have to check out your wordpress plugin

Thanks again.

Dave
you hit it nail on the nail - its using that conditional to see if its a ipad first and does absolutely nothing if it is - other wise as you mention the script runs and functions as it would do nomally... you can do something similar with javascript too - i just prefer php

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
Unread 15th Oct 2012, 07:37 PM   #5
Active Warrior
War Room Member
 
Minista's Avatar
 
Join Date: 2011
Location: Montreal (Quebec) Canada
Posts: 65
Thanks: 0
Thanked 17 Times in 13 Posts
Default
Re: Mobile redirect script with user agent detection
Share on: 
fb share twitter share gplus share more share

HI! You can use this script. Tablet will show standard Website by defaul. The a javascript and php version of this script.

http:// blog.mobileesp.com/ ?page_id=20

We use this script in our commercial mobile Website software (Webelement) and it works perfectly.

Google Maps Contact Extractor, a google maps scraper software (Scrape google places data)
Yellow Pages Scraper software an easy to use Yellow pages scraper software
Yelp Data Scraper software, extract data from yelp website.
Management-Ware Extract Anywhere, Website data extractor software, create your scraper to extract data from almost any website. Door to door CRM software.
Minista is offline  
Unread 15th Oct 2012, 08:23 PM   #6
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: Mobile redirect script with user agent detection
Share on: 
fb share twitter share gplus share more share

Originally Posted by Minista View Post

HI! You can use this script. Tablet will show standard Website by defaul. The a javascript and php version of this script.

http:// blog.mobileesp.com/ ?page_id=20

We use this script in our commercial mobile Website software (Webelement) and it works perfectly.
does it allow returning visitors to come back to the main site and not get redirected and stuck in a loop? there's a lot of scripts out there that don't...

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
Unread 16th Oct 2012, 03:59 AM   #7
Active Warrior
 
Join Date: 2010
Location: Stockholm, Sweden
Posts: 90
Thanks: 57
Thanked 13 Times in 13 Posts
Default
Re: Mobile redirect script with user agent detection
Share on: 
fb share twitter share gplus share more share

Also interested if it lets your visitor go to the main website and not getting auto-red to the mobile version again?

If not.... Then I would really appreciate if someone knew of a script (not plugin) that does that.

Thanks in advance!

Cheers
Jute is offline  
Unread 22nd Dec 2012, 01:57 PM   #8
Advanced Warrior
 
Join Date: 2008
Location: Ellicott City, MD
Posts: 980
Thanks: 36
Thanked 97 Times in 94 Posts
Default
Re: Mobile redirect script with user agent detection
Share on: 
fb share twitter share gplus share more share

anyone can share mobile redirect script here? I am using redirect javascript with screen width <=800..

jspmedia is offline  
Closed Thread


Bookmarks

Tags
agent, detection, mobile, redirect, script, user


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:58 PM.