Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2008
    Location
    Wales
    Posts
    3,594
    Tokens
    1,387
    Habbo
    Skizzling

    Latest Awards:

    Default iPhone/iPod [+REP]

    Hey, i've done a little mobile website thing, well just a simple page so listeners can go on there on their iPod/iPhone or Blackberries but theres one problem. I'm loading the page on my iPod and it looks small, where as some mobile websites are fine on the iPod. What do I add to the style to make it the size of the iPod?

    Here is what it looks like on my iPod:


    Heres what I want it to look like:


    Thanks.

  2. #2
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    Heres a nice guide for mobile devices http://labs.thesedays.com/2010/07/16...bile-websites/

    in particular:
    Code:
    <meta id="viewport" name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

  3. #3
    Join Date
    Jan 2008
    Location
    Wales
    Posts
    3,594
    Tokens
    1,387
    Habbo
    Skizzling

    Latest Awards:

    Default

    Quote Originally Posted by Jamesy View Post
    Heres a nice guide for mobile devices http://labs.thesedays.com/2010/07/16...bile-websites/

    in particular:
    Code:
    <meta id="viewport" name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
    Thanks Jamesy, that's perfect! +Rep! And i'll bookmark that guide, it's quite useful for when designing mobile websites.

    Also any idea of a code to automatically send a user to the mobile page if they go to http://stancefm.com?
    Last edited by Calvin; 04-08-2010 at 01:17 PM.

  4. #4
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    I think you'd check their browser agent, I think there are many guides on t'internet
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

  5. #5
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Here's a quickie (not tested).
    PHP Code:
    <?php
    $ua
    =strtolower($_SERVER['HTTP_USER_AGENT']);

    if(
    strpos($ua,"ipod")!==FALSE || strpos($ua,"iphone")!===FALSE) {header("http://mobile.stancefm.com/iphone/");die();}
    if(
    strpos($ua,"blackberry")!==FALSE) {header("http://mobile.stancefm.com/blackberry/");die();}
    ?>

  6. #6
    Join Date
    Feb 2009
    Location
    Cornwall
    Posts
    7,561
    Tokens
    5,313
    Habbo
    Jordesh

    Latest Awards:

    Default

    Whats this for btw? :L

  7. #7
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Quote Originally Posted by Jordesh View Post
    Whats this for btw? :L
    I'd imagine online radio?

    Just to add to my last post, here's an improved version with support for iPad and android devices:

    PHP Code:
    <?php
    $ua
    =strtolower($_SERVER['HTTP_USER_AGENT']);

    if(
    strpos($ua,"ipod")!==FALSE || strpos($ua,"iphone")!===FALSE) {header("http://mobile.stancefm.com/iphone/");die();}
    if(
    strpos($ua,"ipad")!==FALSE) {header("http://mobile.stancefm.com/ipad/");die();}
    if(
    strpos($ua,"blackberry")!==FALSE) {header("http://mobile.stancefm.com/blackberry/");die();}
    if(
    strpos($ua,"android")!==FALSE) {header("http://mobile.stancefm.com/android/");die();}
    ?>

  8. #8
    Join Date
    Jan 2008
    Location
    Wales
    Posts
    3,594
    Tokens
    1,387
    Habbo
    Skizzling

    Latest Awards:

    Default

    Quote Originally Posted by Apolva View Post
    I'd imagine online radio?

    Just to add to my last post, here's an improved version with support for iPad and android devices:

    PHP Code:
    <?php
    $ua
    =strtolower($_SERVER['HTTP_USER_AGENT']);

    if(
    strpos($ua,"ipod")!==FALSE || strpos($ua,"iphone")!===FALSE) {header("http://mobile.stancefm.com/iphone/");die();}
    if(
    strpos($ua,"ipad")!==FALSE) {header("http://mobile.stancefm.com/ipad/");die();}
    if(
    strpos($ua,"blackberry")!==FALSE) {header("http://mobile.stancefm.com/blackberry/");die();}
    if(
    strpos($ua,"android")!==FALSE) {header("http://mobile.stancefm.com/android/");die();}
    ?>
    Thanks so much, I searched it but couldn't find anything decent. Thanks! +REP.

  9. #9
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    http://stancefm.com/m/ I'd perhaps use sharper images

Posting Permissions

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