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

Thread: Twitter - How?

  1. #1
    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    1,206
    Tokens
    0

    Latest Awards:

    Default Twitter - How?

    Well, I saw it in this layout and realised I could use with something like this. Its the twitter with the latest twitter message. SO like, I could text to this number a message of the day and then it comes up on my site, I haven't designed the site yet, so I can't put it on and test it, but +rep will be given.

  2. #2
    Join Date
    Nov 2005
    Location
    Edinburgh
    Posts
    11,690
    Tokens
    0
    Habbo
    Pyroka

    Latest Awards:

    Default

    I'm guessing you'd call the latest tweet using the Twitter API. Somebody made a system like that and they posted it only a few days ago. I'd use the search function to find out, cuz rly I swear somebody posted it!

  3. #3
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    Here's the files i used:

    http://www.designtest.hostoi.com/tweetbasic.rar

    Just place:

    HTML Code:
    <script type="text/javascript">
    $(document).ready(function(){
       $("#twitdisplay").hide();
    
        $("#twitdisplay").load("tweet.php", function(){
     $(this).fadeIn();
     $("#loadingtweet").hide();
     });
      
       });
    
      </script>
    in between the <head> tags at the top of the page, then

    HTML Code:
    <div id="twitdisplay"><div id="loadingtweet">Loading...</div></div>
    Where you wish to display the tweet.

    Edit the tweet.php file to your twitter username..

    I'd give credit to whoever made this, but i google searched for it and cant remember where i got it from. So yeah, credit to someotherguy

  4. #4
    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    1,206
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Sam View Post
    Here's the files i used:

    http://www.designtest.hostoi.com/tweetbasic.rar

    Just place:

    HTML Code:
    <script type="text/javascript">
    $(document).ready(function(){
       $("#twitdisplay").hide();
    
        $("#twitdisplay").load("tweet.php", function(){
     $(this).fadeIn();
     $("#loadingtweet").hide();
     });
      
       });
    
      </script>
    in between the <head> tags at the top of the page, then

    HTML Code:
    <div id="twitdisplay"><div id="loadingtweet">Loading...</div></div>
    Where you wish to display the tweet.

    Edit the tweet.php file to your twitter username..

    I'd give credit to whoever made this, but i google searched for it and cant remember where i got it from. So yeah, credit to someotherguy

    Thanks, +rep,

  5. #5
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    Np, if you still get stuck with it send me a PM

  6. #6
    Join Date
    Nov 2005
    Location
    Edinburgh
    Posts
    11,690
    Tokens
    0
    Habbo
    Pyroka

    Latest Awards:

    Default

    I think somebody else had the same idea tbh... loads of people are using that.

  7. #7
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    I know i was browsing a few inspiration sites the other day and 9/10 had twitter message boxes. Hell i don't even use twitter but i put it on layouts i use, just because i offer them out free and other people use it lol

  8. #8
    Join Date
    Nov 2005
    Location
    Edinburgh
    Posts
    11,690
    Tokens
    0
    Habbo
    Pyroka

    Latest Awards:

    Default

    They do look very attractive though... Some people need to think about what goes on their twitter though when they do that.

  9. #9
    Join Date
    Aug 2006
    Posts
    6,572
    Tokens
    584

    Latest Awards:

    Default

    But wouldn't it be a waste of time to have all that crushed by Twitter because people use Twitter because its famous now lol.

  10. #10
    Join Date
    Mar 2008
    Posts
    940
    Tokens
    75

    Default

    Instead of using all that code that was given use this

    Code:
     <?php
        
        // The function that will do the grabbing of the tweet
        function getTweet($url) {
        
            // Get the contents of the ATOM file
            $feed = file_get_contents($url);
            // Make an XML instance of it
            $xml = new SimpleXMLElement($feed);
            
            // Using the XML get the tweet, for this we needed to work out the xml structure
            $tweet = $xml->entry->title;
            
            return $tweet;
        
        }
    
        // $username is your twitter username
        $username = "YOUR TWITTER USERNAME GOES HERE";
        
        // This is the API call URL. &rpp=1 means we will only get the latest status
        $url = "http://search.twitter.com/search.atom?q=from:".$username."&rpp=1";
        
        // Use our function we made earlier to grab our latest tweet and echo it
        echo getTweet($url);
        
       // Made by Richard Knox
    ?>
    A little searching goes far

    http://www.habboxforum.com/showthrea...Twitter+Status


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
  •