Website Coding

Stuck on a line of code? Find resources and post your coding questions here.

Forum Sponsor (Advertise with us)
Reply
 
Thread Tools Display Modes
    #1 (permalink)  
Old 01-13-2011
D_Victoria_Virtual_Assistance's Avatar
D_Victoria_Virtual_Assistance D_Victoria_Virtual_Assistance is offline
Resident Member
Company name: True Harmony Media, LLC
 
Join Date: Dec 2007
Location: New Jersey
Posts: 1,823
Blog Entries: 15
Follow this virtual assistant on Twitter Find this virtual assistant on Facebook Contact this virtual assistant on LinkedIn Find this virtual assistant on YouTube
Default PHP Code to redirect to mobile website
Hello,

I have a question and was hoping someone can point me in the right direction. I designed a mobile website and I am now at the point where I need to add some mobile device detection and redirection code. I have found several different resources citing PHP code for mobile device detection and redirection. Gave it a try and for some reason, I can't get the code to work. I know I am probably missing some small step. My main concern is getting code that I know works and can trust.

So here are my questions:

1. Is there a trusted website I can go to for code samples?
2. Tips for implementation?

The original site is flash based, so in the end I want the user to land on the index.php page -detect whether a person is using a mobile device or not and then redirect to the proper version (either the flash version or mobile version).

Thanks!

Darlene
__________________
Darlene Victoria Gonzalez - All-Around Creative Tech. Girl
http://www.darlenevictoria.com/
Reply With Quote
    #2 (permalink)  
Old 01-13-2011
Your Virtual Wizard's Avatar
Your Virtual Wizard Your Virtual Wizard is offline
Community Leader
Company name: Your Virtual Wizard
Your Virtual Wizard Latest Blog: What?s Stopping You From Starting a Blog?
 
Join Date: Sep 2008
Location: Florida-Gulf Coast
Posts: 2,478
Blog Entries: 6
Send a message via AIM to Your Virtual Wizard Send a message via Yahoo to Your Virtual Wizard
Follow this virtual assistant on Twitter Find this virtual assistant on Facebook Contact this virtual assistant on LinkedIn Find this virtual assistant on Google+
Default Re: PHP Code to redirect to mobile website
Darlene,

I do not have a response to your question but I want to say how truly 'WOW-ed' I am with this project.

I'm amazed!

With all I have read recently, mobile applications is really the next level for technology and you are right on it!

Good Luck! (Sorry to hijack your thread but I am so happy for you!)

Janine
__________________
Write that Winning RFP The Job of Ur VA Dreams http://bit.ly/ZJfatV
Reply With Quote
    #3 (permalink)  
Old 01-13-2011
calliope's Avatar
calliope calliope is offline
Contributing Member
Company name: Tooke Consulting
 
Join Date: Nov 2010
Location: Western North Carolina
Posts: 82
Blog Entries: 2
Follow this virtual assistant on Twitter Find this virtual assistant on Facebook Contact this virtual assistant on LinkedIn
Default Re: PHP Code to redirect to mobile website
I used a plug in for my wordpress built site from here http://www.websitez.com/ it looks like everything is just for word press but you might find some code or something.
__________________
Staci Tooke - Owner, Tooke Consulting
Tooke Consulting
Reply With Quote
    #4 (permalink)  
Old 01-13-2011
Business-Bytes's Avatar
Business-Bytes Business-Bytes is offline
Resident Member
Company name: SunRise Virtual Solutions
 
Join Date: Jun 2009
Location: Iowa
Posts: 1,059
Blog Entries: 1
Contact this virtual assistant on LinkedIn
Default Re: PHP Code to redirect to mobile website
Hey D, have you looked around Hamid and Tess's blog: Coding Recipes (scroll down the list of categories on the right)? Since, among other things, they do mobile apps, maybe there is something there that might work for you.

Or a Wordpress plugin like http://wordpress.org/extend/plugins/...bile-detector/ or http://wpfeed.com/2009/03/top-wordpress-mobile-plugins/. Not sure if these are what you are looking for - just did a quick cursory look.

HTH a bit,
__________________
Jules, SunRise Virtual Solutions - I rock WordPress customization, XHTML/CSS websites, and Administrative duties.
Reply With Quote
    #5 (permalink)  
Old 01-13-2011
Tess's Avatar
Tess Tess is offline
Founder, Virtual Assistant Forums
Company name: Virtual Assistant Forums
 
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,562
Blog Entries: 14
Follow this virtual assistant on Twitter Find this virtual assistant on Facebook Contact this virtual assistant on LinkedIn Find this virtual assistant on Google+
Default Re: PHP Code to redirect to mobile website
Hi Darlene, I poked Hamid for a resource to help you and he sent the following link:
http://www.9lessons.info/2010/09/red...-with-php.html

I hope this helps!
If you get stuck post back...

[Jules, thanks for the link to the Codehead blog I'd love to get Hamid to reply with his own, much prettier, code for this but he's knee deep in developing an iPhone app today!}
__________________
Are you ready to stop dreaming and start DOING?
Join the next Virtual Assistant Business Jumpstart beginning May 8th!
Reply With Quote
    #6 (permalink)  
Old 01-13-2011
D_Victoria_Virtual_Assistance's Avatar
D_Victoria_Virtual_Assistance D_Victoria_Virtual_Assistance is offline
Resident Member
Company name: True Harmony Media, LLC
 
Join Date: Dec 2007
Location: New Jersey
Posts: 1,823
Blog Entries: 15
Follow this virtual assistant on Twitter Find this virtual assistant on Facebook Contact this virtual assistant on LinkedIn Find this virtual assistant on YouTube
Default Re: PHP Code to redirect to mobile website
Thank you for all the great resources. I will look at them tomorrow and see how it goes. Tess, I briefly looked at the link you provided and at first glance, it sounds like what I am looking for. Thanks!!
__________________
Darlene Victoria Gonzalez - All-Around Creative Tech. Girl
http://www.darlenevictoria.com/
Reply With Quote
    #7 (permalink)  
Old 06-06-2011
Tess's Avatar
Tess Tess is offline
Founder, Virtual Assistant Forums
Company name: Virtual Assistant Forums
 
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,562
Blog Entries: 14
Follow this virtual assistant on Twitter Find this virtual assistant on Facebook Contact this virtual assistant on LinkedIn Find this virtual assistant on Google+
Default Re: PHP Code to redirect to mobile website
Hi Darlene, how did this go for you?

I came across another resource today that I thought might be useful to you (or anyone else who lands here )

Info includes the text file you need to add to your site.
__________________
Are you ready to stop dreaming and start DOING?
Join the next Virtual Assistant Business Jumpstart beginning May 8th!
Reply With Quote
    #8 (permalink)  
Old 06-06-2011
D_Victoria_Virtual_Assistance's Avatar
D_Victoria_Virtual_Assistance D_Victoria_Virtual_Assistance is offline
Resident Member
Company name: True Harmony Media, LLC
 
Join Date: Dec 2007
Location: New Jersey
Posts: 1,823
Blog Entries: 15
Follow this virtual assistant on Twitter Find this virtual assistant on Facebook Contact this virtual assistant on LinkedIn Find this virtual assistant on YouTube
Default Re: PHP Code to redirect to mobile website
Hi Tess,

I know I got the PHP redirect to work, but I honestly don't recall what code I ended up using. I may have found the one we used previously that I just couldn't locate at the time.

Thank you for the follow-up and the additional resource!
__________________
Darlene Victoria Gonzalez - All-Around Creative Tech. Girl
http://www.darlenevictoria.com/
Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes

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 Off

Forum Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Question] Mobile Notary karin_mcav Determining Your Services 52 07-23-2012 02:09 PM
[Question] Mobile 3 G - Ipad or HP what does the mobile VA recommend? ClassicConcierge Computer Hardware and Office Supplies 4 09-02-2010 08:42 AM
Newbie from Mobile AL CAnders Member Introductions! 5 11-12-2008 07:38 PM
www vs non-www and a 301 redirect? Modern Marketing Support General Website Design and Development 4 03-21-2008 11:54 AM
Find out how many lines of code you wrote for a website? Codehead Website Coding 1 04-30-2007 02:53 AM


All times are GMT -4. The time now is 12:11 AM.

Virtual Assistant Forums Advertising
Featured VA websites:

The Ruby Slipper VA

Virtual Miss Begley

Clerical Essentials
Get featured!
Bankruptcy Virtual Assistant Training
Virtual Assistant Forums Advertising
Virtual Assistant Contracts
Virtual Assistant Forums Advertising
Work from Home | Become A Virtual Assistant

© Virtual Assistant Forums 2013 Content and images protected under copyright law.
Google+ - Facebook - Twitter