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 2 of 2
  1. #1
    Join Date
    Apr 2010
    Posts
    2,956
    Tokens
    7,870

    Latest Awards:

    Default Schedule that works out time zone and displays correct times - is this possible?

    I've been running my online station for a while now, and relaunched it a few months but due to technical problems we have had to temporary stop broadcasting while we sort our schedule out and get an auto system in place so that when no one turns up we always have music playing.

    What I'm interested in is having a schedule that is able to detect the users time zone, and then display for them the shows on the schedule in their correct time. Because we have a few presenters and listeners from other countries a lot of them ask me when certain shows are on their time. It would be nice to have something so they didn't have to ask, and could just see.

    I'm using phbb3 for my forum. I was wondering if you could use the forum and the user accounts time zone information?

  2. #2
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    Maybe if u made your script connect to the forum db and fetch the users timezone from the database and then coded it into the script...

    <?php
    include_once("/form/includes/config.php");
    $tz = mysql_fetch_object(mysql_query("SELECT * FROM `users`"));

    if($tz->timezone == "GMT"){
    // gmt timetable here...
    }elseif($tz->timezone == "PST"){
    // pst timezone here...
    }

    ?>
    Thats just basic...

    Lew.
    Im not here to be loved, I love to be hated :-}


Posting Permissions

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