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 2 of 5 FirstFirst 12345 LastLast
Results 11 to 20 of 49

Thread: ARGH!! GD!!

  1. #11
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    Excellent, this isnt the way I used todo it, can't remember - but works!

    PHP Code:
    <?php

    $twitterUser 
    'ajaxsm';
    $twitterRSS file_get_contents"http://twitter.com/statuses/user_timeline/{$twitterUser}.rss" );

    $twitterXML = new simpleXMLElement$twitterRSS );

    //echo username
    echo $twitterXML->channel[0]->title "<br>";

    //echo url to user
    echo $twitterXML->channel[0]->link "<br>";

    //latest status update
    echo $twitterXML->channel[0]->item[0]->description "<br>";

    //2nd latest status update
    echo $twitterXML->channel[0]->item[1]->description;

    ?>
    remembered the other way! I am been stupid ... writing now for you.
    Last edited by Source; 24-10-2008 at 01:12 AM.


    www.fragme.co = a project.

  2. #12
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Source View Post
    Excellent, this isnt the way I used todo it, can't remember - but works!

    PHP Code:
    <?php

    $twitterUser 
    'ajaxsm';
    $twitterRSS file_get_contents"http://twitter.com/statuses/user_timeline/{$twitterUser}.rss" );

    $twitterXML = new simpleXMLElement$twitterRSS );

    //echo username
    echo $twitterXML->channel[0]->title "<br>";

    //echo url to user
    echo $twitterXML->channel[0]->link "<br>";

    //latest status update
    echo $twitterXML->channel[0]->item[0]->description "<br>";

    //2nd latest status update
    echo $twitterXML->channel[0]->item[1]->description;

    ?>
    remembered the other way! I am been stupid ... writing now for you.
    Ty dude
    Back for a while.

  3. #13
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    Heres a better way of doing it, ignor the poop coding, sorry

    PHP Code:
    <?php

    $twitterUser 
    'ajaxsm';
    $twitterRSS file_get_contents"http://twitter.com/statuses/user_timeline/{$twitterUser}.xml" );
    $twitterXML = new SimpleXMLElement$twitterRSS );

    //status
    echo $twitterXML->status[0]->text "<br>";

    //lolwut when?
    echo $twitterXML->status[0]->created_at "<br>";

    //id of post
    echo $twitterXML->status[0]->id "<br>";

    //next load of update (status starts at 0 and goes up)

    //status
    echo $twitterXML->status[1]->text "<br>";

    //lolwut when?
    echo $twitterXML->status[1]->created_at "<br>";

    //id of post
    echo $twitterXML->status[1]->id "<br>";


    //Get user image

    $image $twitterXML->status[0]->user[0]->profile_image_url;

    echo 
    "<img src=\"{$image}\" />";

    ?>


    www.fragme.co = a project.

  4. #14

    Default

    Updated the base image
    http://www.jamiecassidy.net/tweetbox/?user=JamieCassidy
    Still got the problem with the variable

  5. #15
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    post the code ? Or re-write it using the code I orignally posted for excellent.


    www.fragme.co = a project.

  6. #16
    Join Date
    Feb 2007
    Location
    London
    Posts
    6,722
    Tokens
    3,902
    Habbo
    welldonemate

    Latest Awards:

    Default

    Thats very good, although I don't understand? Do we create a new user login, and update our own status for signatures, or is this just a personal project for yourself? In all, I think its awsome, good on you and keep up the great work!
    (H)

  7. #17
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Earthquake View Post
    Thats very good, although I don't understand? Do we create a new user login, and update our own status for signatures, or is this just a personal project for yourself? In all, I think its awsome, good on you and keep up the great work!
    No, you change your user to ?user=USERNAME and it'll show your signature.

    And thanks Source, +REP
    Back for a while.

  8. #18
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    I have started to work on a few ideas, that will never go public - im just throwing them around to see what people think....



    I will be coding that up in GD within the hour or so, but I am really bad with GD so it may never actually exist ^_^. If I do get it working I'll post it up for people to use, I will also make a basic system to cache it in a mysql database (no image caching caus I dunno how), but the info will be cached in mysql to stop the wait of twitter.

    edit // I may do temp image chaching as I just thought it through... im thick at time (ok most of the time).
    Last edited by Source; 24-10-2008 at 03:50 PM.


    www.fragme.co = a project.

  9. #19

    Default

    Quote Originally Posted by Source View Post
    I have started to work on a few ideas, that will never go public - im just throwing them around to see what people think....



    I will be coding that up in GD within the hour or so, but I am really bad with GD so it may never actually exist ^_^. If I do get it working I'll post it up for people to use, I will also make a basic system to cache it in a mysql database (no image caching caus I dunno how), but the info will be cached in mysql to stop the wait of twitter.

    edit // I may do temp image chaching as I just thought it through... im thick at time (ok most of the time).
    That looks awesome man but people may not like the restricted number of characters shown in the speach bubble? Can I ask, where did you get the funky looking bird? hahaha

  10. #20
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    The bird I have around on my pc, but its from a wallpaper - I think I originally found it on www.pixelgirlpresents.com

    Anyway, JME post the file_get_contents and user variable part of the code so we can take a look.


    www.fragme.co = a project.

Page 2 of 5 FirstFirst 12345 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
  •