Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: Detecting Mobile browsers....

  1. #1
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default Detecting Mobile browsers....

    Currently if you goto YouTube or other websites with your mobile browser it will automatically redirect you to a subdomain of the site where they have mobile support.

    Is there a way to do the same with IndexU? Now that we have a mobi template, I would like to create a subdomain and have it attach to the same database. Then, if it detects its a mobile browser, automatically forward them to the subdomain.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I knew someone would ask that as soon as the .mobi template was available!

    You can find a complete script to do this at Andy Moore Blog Archive PHP to detect mobile phones

    You can also look at the following
    http://www.brainhandles.com/2007/10/...bile-browsers/
    Lightweight device-detection in PHP | mobiForge

  3. #3
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Bruce...

    If I used the "Lightweight device detection in PHP" code, where would I put the code?? In header.html?

    I also downloaded Andy Moore's php script, but I'm also unaware on how I would integrate that into my site.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I have no idea to be honest, I would think in application.php because it's called from every major page.

  5. #5
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    So would it be a "include" statement I would want to use in Application.php?? Or maybe a 'call' statement?

    Maybe the programmers might know?
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Call it as an include

  7. #7
    Join Date
    Nov 2007
    Posts
    227

    Default

    Why not make it a plugin? I can't make it because I can't test it. I don't have a phone with mobile access. Any ideas?

    Regards
    Wayne
    Last edited by mpdaddy; 10-18-2008 at 03:39 PM.
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  8. #8
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by mpdaddy View Post
    Why not make it a plugin? I can't make it because I can't test it. I don't have a phone with mobile access. Any ideas?

    Regards
    Wayne
    Wayne...

    If you can create it... I can test it for you! Let me know
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  9. #9
    Join Date
    Nov 2007
    Posts
    227

    Default

    I will work on it today after I get off work and let you know when I have something to test.

    Regards
    Wayne
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  10. #10
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by mpdaddy View Post
    I will work on it today after I get off work and let you know when I have something to test.

    Regards
    Wayne
    Sounds good
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  11. #11
    Join Date
    Nov 2007
    Posts
    227

    Default

    Sorry for the delay. I am starting a new Ebay business and my merchandise came in. I have been getting everything ready for that. I will find time tomorrow to get started on this plugin. Frank, I will let you know if/when I need it tested. I do not have the template, so you will need to test it on your domain. I will contact you by email tomorrow.

    Regards
    Wayne
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  12. #12
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    No Problem mpdaddy! Let me know when you have something for me to test
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  13. #13
    Join Date
    Nov 2007
    Posts
    227

    Default

    For anyone who is wondering. I have finished the plugin and I sent it ti FSGDAG to test it. I will give updates if needed and release it as soon as it is working 100%.

    If you have the mobi template for IndexU and you have access to test with an Iphone, Ipod, or other mobile device with a browser, and would like to test it, I can send the plugin to you. I would not recommend testing it on a live site, you should have a test site set up for testing purposes. Contact me at my email address in my signature if you are interested.

    Regards
    Wayne
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  14. #14
    Join Date
    Mar 2008
    Location
    Rome, Italy
    Posts
    118

    Default

    very nice

  15. #15
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Ok... Question....

    I'm getting ready to test this out.. Tell me if I'm off base here:

    - I'm going to do a new install on the root of a domain.. We'll call it www.testdomain.com

    - Then I'm going to create a subdomain called m.testdomain.com

    - I'll then upload all the files to the subdomain, but application.php will have all the settings of the one in the root domain. This way they will share the same DB.

    - I'll install the plugin and start testing with my mobile browsers

    Here's the question:

    m.testdomain.com will have the mobi template in it. Will I have to rename the directory of that template to match the name of the root domains template name?!?! I'm assuming I'll have to seeings that information is in the DB.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. Mobile Mod
    By Rockyuk in forum Blocks and Modification
    Replies: 3
    Last Post: 02-22-2008, 09:51 AM
  2. Replies: 0
    Last Post: 10-12-2007, 06:47 AM
  3. Mobile Phones Specifications Database with all details
    By soundofvtec in forum Buy, Sell or Trade
    Replies: 0
    Last Post: 07-28-2007, 02:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •