Solved

How to display Tweets on webpage.   Possible jQuery conflict

Posted on 2012-04-06
3
592 Views
Last Modified: 2012-04-09
Geez, I can't believe I have to ask this question ... but I'm stuck.

I want to display a simple list of two or three tweets in the footer of my page.

I tried the basic Twitter app, but it's in a "box" I can't get rid of.

Then I found a nice jQuery solution http://juitter.com/
, but I THINK there is a jQuery conflict problem.  

I've solved jQuery conflicts before and I know you have to switch out $ with jQuery - or something.

QUESTION 1
Any recommendations for JavaScript or jQuery to add a few tweets to website pages (not blog)?  Tweets automatically update and scroll/repeat.


OR to use http://juitter.com/


QUESTION 2
Where can I find a user-friendly jQuery conflict tutorial?
(I've looked through a dozen jQuery conflict search results.  All very confusing.)



Background
We use this version of jQuery:
jquery-1.4.2.min.js
Juitter uses
jquery-1.3.1.min.js

Our site is built on a theme.  

Thanks, April

P.S.  
Couldn't find support forum for jutter
0
Comment
Question by:aprillougheed
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
designatedinitializer earned 500 total points
ID: 37818237
These guys provide you a simple solution:
http://tweet.seaofclouds.com/

Like this:
<html>
<head>
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="tweet/jquery.tweet.js" type="text/javascript"></script>
<script type='text/javascript'>
    jQuery(function($){
        $(".tweet").tweet({
            username: "seaofclouds",
            join_text: "auto",
            avatar_size: 32,
            count: 3,
            auto_join_text_default: "we said,", 
            auto_join_text_ed: "we",
            auto_join_text_ing: "we were",
            auto_join_text_reply: "we replied to",
            auto_join_text_url: "we were checking out",
            loading_text: "loading tweets..."
        });
    });
</script>
</head>
<body>
<div class="tweet"></div>
</body>
</html>

Open in new window


you have to download the .js from GitHub here:
https://github.com/seaofclouds/tweet/
0
 

Author Comment

by:aprillougheed
ID: 37819521
Great I'll install it right now.
0
 

Author Comment

by:aprillougheed
ID: 37825505
Sorry, I thought I closed this question.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now