[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 03-01-2007, 09:48 AM   #1 (permalink)
New Member
 
Join Date: Feb 2007
Posts: 24
0.00 NP$ (Donate)

tonypony is an unknown quantity at this point


Wanted script to divert .mobi browsers

I have a normal.com and want to divert any browsers to the equivalent normal.mobi

Any suggestions for a script to detect mobiles & PDAs ?
tonypony is offline  
Old 03-01-2007, 11:23 AM   #2 (permalink)
tm
Senior Member
 
tm's Avatar
 
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,409
374.65 NP$ (Donate)

tm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of light


http://hotscripts.com/jump.php?listi...11&jump_type=0

Basically just checks through all the normal browsers used on PCs, and then if it's not any of them it'll redirect.

Hope it's useful, you might need to work a little bit on the opera bit, as there's a mobile browser for opera (although I'm unsure on its http headers).

rep appreciated.
__________________
You design in photoshop, I code into valid XHTML/CSS.
Professional PSD, PNG or HTML to tableless XHTML/CSS designs.
For more info, send me a PM.
tm is offline  
Old 03-01-2007, 01:11 PM   #3 (permalink)
New Member
 
Join Date: Feb 2007
Posts: 24
0.00 NP$ (Donate)

tonypony is an unknown quantity at this point


Thank you

Thanks a bunch,

I'll try it out now.

Now ... As I'm new here ... How do I give you a rep ?

Or is a rep just a reply ?
tonypony is offline  
Old 03-01-2007, 01:13 PM   #4 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,546
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of

Adoption Breast Cancer Breast Cancer Cancer Survivorship
tonypony, If you want to give someone rep then click on the grey scales icon below their username () and follow the instructions

Matt
__________________
My NamePros Tools
(firefox plugin, google gadget etc)
Matthew. is offline  
Old 03-01-2007, 02:22 PM   #5 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
 
Join Date: Aug 2004
Posts: 3,794
47.60 NP$ (Donate)

stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of


Quote:
Originally Posted by tm
http://hotscripts.com/jump.php?listi...11&jump_type=0

Basically just checks through all the normal browsers used on PCs, and then if it's not any of them it'll redirect.

Hope it's useful, you might need to work a little bit on the opera bit, as there's a mobile browser for opera (although I'm unsure on its http headers).

rep appreciated.
Generally a poor method. Think of the Spiders coming to your site only to be redirected to the mobi

Try this

-Steve
__________________
Follow Me on Twitter:
stscac is offline  
Old 03-01-2007, 03:10 PM   #6 (permalink)
tm
Senior Member
 
tm's Avatar
 
Join Date: Nov 2005
Location: on a oil rig just off Ireland
Posts: 1,409
374.65 NP$ (Donate)

tm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of lighttm is a glorious beacon of light


Quote:
Originally Posted by stscac
Generally a poor method. Think of the Spiders coming to your site only to be redirected to the mobi

Try this

-Steve
Yes, that's a fair point. I can't download that class though, wants me to login or subscribe :@.

/edit nevermind, it's free. Swear it was paid last time.
__________________
You design in photoshop, I code into valid XHTML/CSS.
Professional PSD, PNG or HTML to tableless XHTML/CSS designs.
For more info, send me a PM.

Last edited by tm; 03-01-2007 at 03:14 PM.
tm is offline  
Old 03-01-2007, 03:51 PM   #7 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
 
Join Date: Aug 2004
Posts: 3,794
47.60 NP$ (Donate)

stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of


Quote:
Originally Posted by tm
/edit nevermind, it's free. Swear it was paid last time.
Nope. You just have to use a mirror.



-Steve
__________________
Follow Me on Twitter:
stscac is offline  
Old 03-02-2007, 05:38 AM   #8 (permalink)
NamePros Regular
 
Join Date: Aug 2006
Location: USA
Posts: 725
212.90 NP$ (Donate)

enlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to all


You may also want to check out WURFL and its libraries. Last I heard it was the recommended way to detect mobile browser and device capabilities.

There's a simple example of using it to redirect depending on whether it finds a mobile or non-mobile browser on pc.dev.mobi
enlytend is offline  
Old 03-02-2007, 08:46 AM   #9 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
 
Join Date: Aug 2004
Posts: 3,794
47.60 NP$ (Donate)

stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of


Quote:
Originally Posted by enlytend
You may also want to check out WURFL and its libraries. Last I heard it was the recommended way to detect mobile browser and device capabilities.

There's a simple example of using it to redirect depending on whether it finds a mobile or non-mobile browser on pc.dev.mobi
Definitely some good advice as well.



-Steve
__________________
Follow Me on Twitter:
stscac is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:47 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85