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
Resident Member
Company name: D. Victoria Virtual Assistance
 
Join Date: Dec 2007
Location: New Jersey
Posts: 1,783
Blog Entries: 15
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
The Voice & Vision Behind Your Business
Reply With Quote
    #2 (permalink)  
Old 01-13-2011
Your Virtual Wizard's Avatar
VAF Blog Challenge Moderator
Company name: Your Virtual Wizard
 
Join Date: Sep 2008
Location: Florida-Gulf Coast
Posts: 2,168
Blog Entries: 5
Send a message via AIM to Your Virtual Wizard Send a message via Yahoo to Your Virtual Wizard Send a message via Skype™ to Your Virtual Wizard
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 FAB RFP PROPOSALS & land THE VA job. WinningRFP unveils soon! SignUp www.WinningRFP.com
Reply With Quote
    #3 (permalink)  
Old 01-13-2011
calliope's Avatar
Contributing Member
Company name: Tooke Consulting
 
Join Date: Nov 2010
Location: Western North Carolina
Posts: 83
Blog Entries: 2
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
Resident Member
Company name: SunRise Virtual Solutions
 
Join Date: Jun 2009
Location: Iowa
Posts: 1,043
Blog Entries: 1
Send a message via Skype™ to Business-Bytes
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 - WordPress Customization & XHTML/CSS Web Sites
Reply With Quote
    #5 (permalink)  
Old 01-13-2011
Tess's Avatar
Senior Member
Company name: Codehead, LLP
Latest blog post: SEO Q&A
 
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,131
Blog Entries: 3
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!}
__________________
Create a welcome packet for new clients with this guide and free templates!

(Available in PDF and Kindle versions)
Reply With Quote
    #6 (permalink)  
Old 01-13-2011
D_Victoria_Virtual_Assistance's Avatar
Resident Member
Company name: D. Victoria Virtual Assistance
 
Join Date: Dec 2007
Location: New Jersey
Posts: 1,783
Blog Entries: 15
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
The Voice & Vision Behind Your Business
Reply With Quote
    #7 (permalink)  
Old 06-06-2011
Tess's Avatar
Senior Member
Company name: Codehead, LLP
Latest blog post: SEO Q&A
 
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,131
Blog Entries: 3
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.
__________________
Create a welcome packet for new clients with this guide and free templates!

(Available in PDF and Kindle versions)
Reply With Quote
    #8 (permalink)  
Old 06-06-2011
D_Victoria_Virtual_Assistance's Avatar
Resident Member
Company name: D. Victoria Virtual Assistance
 
Join Date: Dec 2007
Location: New Jersey
Posts: 1,783
Blog Entries: 15
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
The Voice & Vision Behind Your Business
Reply With Quote
Reply

Thread Tools
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Question] Mobile Notary karin_mcav Determining Your Services 47 1 Week Ago 04:41 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 Search Engine Optimization (SEO) 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 11:19 AM.

International Virtual Assistants Association
Project Management for Virtual Assistants
Work from Home | Become A Virtual Assistant
Virtual Assistant Directory
Affordable Logo Design
Virtual Assistant Contracts
Virtual Assistant Forums Advertising

© Virtual Assistant Forums 2012
All content and images are protected under copyright law and may not be reproduced in any way without express written consent.