Here's How To Create Your Own

Discussion in 'Mobile Web Development' started by Dis, Nov 25, 2007.

  1. Dis

    Dis Banned

    Joined:
    Sep 30, 2007
    Messages:
    214
    Likes Received:
    0
  2. DarkM

    DarkM New Member

    Joined:
    Nov 25, 2007
    Messages:
    13
    Likes Received:
    0
    I'm gonna check this out right now

    Please Register or Log in to view images



    I hope that there is also a lot of "touch-oriented" resources, cause i see a lot of stuff about iphone =3
    (Or maybe is this exactly the same thing for web dev ?)
  3. Danls92

    Danls92 Super Moderator Emeritus Staff Member

    Joined:
    Oct 22, 2007
    Messages:
    5,097
    Likes Received:
    209
    Device:
    iPhone 4 (Black)
    All web- apps work with both the Touch and the iPhone because they both have the same size screens, and the same safari browser.
  4. Nt1440

    Nt1440 New Member

    Joined:
    Nov 9, 2007
    Messages:
    1,431
    Likes Received:
    26
    do you think it really matters if ur 18?

    i am actually interested in learning to make software and this seems like a great start, plus itguess it would look impressive on a college application. =)
  5. blackjak231

    blackjak231 Member

    Joined:
    Oct 1, 2007
    Messages:
    759
    Likes Received:
    6
    Device:
    iPhone 4 (White)
    I'm currently working on a web sir for the iPhone, and I was wondering if I could post a thread in this section to let people know what is going on. For the info, it is a theme list 100% made for ipod touch/ iphone.

    I was also wondering if anyone knew how to show stuff on a website that will only show up on an ipod or iphone, and not on a pc nor mac?
    Please, tell me!

    Thanks!
  6. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Blackjak231, you are setting your pages up using php, correct. I have to admit that I know absolutely nothing about php, other than the fact that there is a 'HTTP_USER_AGENT' that you can call.

    I have no idea what the syntax or anything is for php, but you should be able to parse through this and correct any mistakes. Sorry, but I don't know what the actual iPhone/iPod user agents are, I've never checked.

    HTML:
    <html>
    <?php
    	if ((HTTP_USER_AGENT != "iPhone") || (HTTP_USER_AGENT != "iPod"))
    	{
    		window.location = "http://www.im-not-using-an-ipod.com/orAn/iPhone.either";
    	}
    ?>
    
    Also, if you really want to get fancy, you could use the get_browser() function to check if the user is accessing via AppTapp or MobileSafari (because Installer it its own browser, hence no resizing or scaling).

    Browser: AppTapp Installer/3.0b8 (iPhone)
    Browser: Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Agen/3B48b Safari/419.3
  7. blackjak231

    blackjak231 Member

    Joined:
    Oct 1, 2007
    Messages:
    759
    Likes Received:
    6
    Device:
    iPhone 4 (White)
    actually, I wrote everything in HTML because you told me to, so its very basic, and i have to say that i am having a very hard time understanding php!!!

    Thanks anyway!

    PS: so, can i post a thread in this section?
  8. gumbawler

    gumbawler New Member

    Joined:
    Oct 17, 2007
    Messages:
    3
    Likes Received:
    0
    thnx a bunch bro
  9. River

    River New Member

    Joined:
    Jan 3, 2008
    Messages:
    604
    Likes Received:
    0
    I use
    Code:
    Mozilla/5.0 (compatible; Konqueror/3.5; Darwin)  KHTML/3.5.6
    
    Works for me...
  10. stillercity

    stillercity New Member

    Joined:
    Jan 8, 2008
    Messages:
    614
    Likes Received:
    1

Share This Page