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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default Php help please :)

    PHP Code:
    <style type="text/css">
    <!--
    a:link {
        color: #000000;
    }
    a:visited {
        color: #000000;
    }
    a:hover {
        color: #FF0000;
    }
    -->
    </style><font face="verdana" size="1">Hab-tunes Latest</br></br><?php 
    /*

    */
    //url to rss feed of habbo site
    $site "http://www.hab-tunes.com/cutenews/rss.php?number=2";

    //dont edit anything below this line!
    $insideitem false;
    $tag "";
    $title "";
    $description "";
    $link "";
    function 
    startElement($parser$name$attrs) {
    global 
    $insideitem$tag$title$description$link;
    if (
    $insideitem) {
    $tag $name;
    } elseif (
    $name == "ITEM") {
    $insideitem true;
    }
    }
    function 
    endElement($parser$name) {
    global 
    $insideitem$tag$title$description$link;
    if (
    $name == "ITEM") {
    //echo's the content
    printf("<dt><b><a href='%s'>%s</a></b></dt>",
    trim($link),trim($title));
    printf("<dd>%s</dd>",trim($description));
    $title "";
    $description "";
    $link "";
    $insideitem false;
    }
    }
    function 
    characterData($parser$data) {
    global 
    $insideitem$tag$title$description$link;
    if (
    $insideitem) {
    switch (
    $tag) {
    case 
    "TITLE":
    $title .= $data;
    break;
    case 
    "DESCRIPTION":
    $description .= $data;
    break;
    case 
    "LINK":
    $link .= $data;
    break;
    }
    }
    }
    $xml_parser xml_parser_create();
    xml_set_element_handler($xml_parser"startElement""endElement");
    xml_set_character_data_handler($xml_parser"characterData");
    $fp fopen("$site","r")
    or die(
    "Error reading RSS data.");
    while (
    $data fread($fp4096))
    xml_parse($xml_parser$datafeof($fp))
    or die(
    sprintf("XML error: %s at line %d"
    xml_error_string(xml_get_error_code($xml_parser)), 
    xml_get_current_line_number($xml_parser)));
    fclose($fp);
    xml_parser_free($xml_parser);
    ?> </font>
    I need the title to open into a iframe named Main coz its on the side of my site (the rss feed) and i need the full story to open into the other iframe named Main so could anyone help?

    Wayne. (Super Moderator) Thread closed to prevent further arguments. Feel free to create a new thread.
    Last edited by Wayne; 15-08-2006 at 08:02 PM.

  2. #2
    Join Date
    Aug 2006
    Posts
    96
    Tokens
    0

    Default

    did u write all that out omg geek

    Wayne. (Super Moderator) Please don't offend other forum users.
    Last edited by Wayne; 15-08-2006 at 08:05 PM.

  3. #3
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by joert View Post
    did u write all that out omg geek
    Please don't try and cause an arguement...

    Urm, I'm new with PHP, and I'm not that advanced. I'm sure somebody will know

  4. #4
    Join Date
    Aug 2006
    Posts
    461
    Tokens
    0

    Default

    Lmao :\
    Quote Originally Posted by joert View Post
    did u write all that out omg geek
    Wayne. (Super Moderator) Please stay on topic.
    Last edited by Wayne; 15-08-2006 at 08:05 PM.

  5. #5
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by joert View Post
    did u write all that out omg geek
    1) i am not a geek
    2) i did not write it, i searched webdesign section "rss"
    3) get out my thread kthnxbi

    Wayne. (Super Moderator) Please stay on topic.
    Last edited by Wayne; 15-08-2006 at 08:05 PM.

  6. #6
    Join Date
    Aug 2006
    Posts
    96
    Tokens
    0

    Default

    sos geeks i will let u get on making ur php geek things

    Wayne. (Super Moderator) Please stay on topic/stop offending other members.
    Last edited by Wayne; 15-08-2006 at 08:05 PM.

  7. #7
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by joert View Post
    sos geeks i will let u get on making ur php geek things
    Right let me get this straight, unless u want me to come ure house n blow the door down n come rip ure **** off then u best shut ure mouth

    Wayne. (Super Moderator) Please don't offend other forum users.
    Last edited by Wayne; 15-08-2006 at 08:06 PM.

  8. #8
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by joert View Post
    sos geeks i will let u get on making ur php geek things
    Yes, we make our "geek" things because we can. Unlike you.

    Wayne. (Super Moderator) Please don't offend other forum users.
    Last edited by Wayne; 15-08-2006 at 08:07 PM.

  9. #9
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Thommy View Post
    Yes, we make our "geek" things because we can. Unlike you.
    Owned.

    Wayne. (Super Moderator) Please stay on topic.
    Last edited by Wayne; 15-08-2006 at 08:06 PM.

  10. #10
    Join Date
    Aug 2006
    Location
    Doncaster, UK
    Posts
    479
    Tokens
    0

    Default

    Also making our geek things earns us on average 3.4 times as much as a normal person working full time in Tescos.

    Wayne. (Super Moderator) Please stay on topic.
    Last edited by Wayne; 15-08-2006 at 08:06 PM.

Page 1 of 2 12 LastLast

Posting Permissions

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