Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 6, 2013, 10:15 PM   #1
fig
macrumors 6502a
 
Join Date: Jun 2012
Location: Houston, TX
Mobile detection/redirect suggestions

Hey folks, wondering if anyone has any good resources or scripts for mobile detection?

I've used a few in the past that have worked, and currently I'm finishing up a project that will have a one page mobile site and a full standard site. I'd like to have an option for the mobile user to view the full site after initially being directed to the mobile site, but I'm trying to figure out how to keep them from being redirected back to the homepage (ideally without building a redundant set of pages for them to be directed to).

Any ideas? Thanks, appreciate it.
__________________
figdigital | @figdigital | dribbble
fig is offline   0 Reply With Quote
Old Jun 7, 2013, 06:52 AM   #2
960design
macrumors 6502a
 
Join Date: Apr 2012
Location: Destin, FL
Add a session variable.

Something like mobile = false. Have your magic script detect mobile and change mobile = true.

Allow the user to click a button that changes the mobile = true back to false. Have the user check as an if statement surrounding the mobile script detection. At the very top default the user selection to false.

Wow, It may actually be easier to put this in code instead of pseudo.
__________________
TI-99/4A, tape cassette, 12" B&W Zenith
960design is offline   0 Reply With Quote
Old Jun 7, 2013, 12:14 PM   #3
fig
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Location: Houston, TX
Quote:
Originally Posted by 960design View Post
Add a session variable.

Something like mobile = false. Have your magic script detect mobile and change mobile = true.

Allow the user to click a button that changes the mobile = true back to false. Have the user check as an if statement surrounding the mobile script detection. At the very top default the user selection to false.

Wow, It may actually be easier to put this in code instead of pseudo.
Got it, I'm with you in theory.

A friend gave me http://mobiledetect.net/ to check out which looks like it does a nice job of detection, just need to figure out how to integrate the variable idea.
__________________
figdigital | @figdigital | dribbble
fig is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone: Application Redirect a2k Jailbreaks and iOS Hacks 8 Aug 26, 2014 06:34 PM
ipad mini cellular t-mobile redirect loop dkimxd iPad Tips, Help and Troubleshooting 3 May 6, 2014 03:28 PM
DNS Redirect on OS X 10.6 Les Kern Mac OS X Server, Xserve, and Networking 3 Dec 11, 2013 01:43 AM
Need suggestions for mobile phone choice for mobile company? Imola Ghost iPhone Tips, Help and Troubleshooting 2 Jun 28, 2013 06:17 AM
Need suggestions for mobile picture printing from iPhone kmichalec iPhone 3 Oct 4, 2012 10:40 AM

Forum Jump

All times are GMT -5. The time now is 11:52 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC