search
Carter Cole LinkedInCarters Twitter PageCarter Cole on Facebook Carter Coles RSS
Showing posts with label twitter. Show all posts
Showing posts with label twitter. Show all posts

Friday, February 12, 2010

Tweets about posts in blogger (and any other page i guess)

twitter has become one of the best ways to promote a story... and the more tweets and retweets a post gets the more accreditation and recognition the page gets. showing the tweets that a page has already received can help convey the gravity of a story and encourage others to promote the story... [for tweets about news or republish them easily you should use this embed code] but back to what we are doing...tweetmeme.com does a pretty good job of aggregating and collecting tweets about pages... and are responsible for the cool retweet gadgets that appear on most websites. my script uses their API to pull the 10 most recent tweets about a page in the last 6 days (they dont keep them in their database past then) so lets get into what this does...

this will drop the tweets onto whatever page its currently on:
<script>document.write("<scr"+"ipt src='http://cartercole.com/urlstweetsgadget.asp?url="+document.location+"'><"+"/scr"+"ipt>");</script>
you will need to drop this css into the page somewhere
its what does the magic and makes the tweets look all pretty :)

if your installing on blogger you can add the script at the bottom of each post by choosing "Expand Widget Templates" and adding it somewhere around the DIVs with the class post-footer-line
<div class='tweetsonpage'/>
<script expr:src='"http://cartercole.com/urlstweetsgadget.asp?url=" + data:post.url'/>
    </div>

View the original post to see the tweets on the page

ok so to see the script in action just look below here (if you dont see a recent one listed tweet about this page real quick to get a demo) if there are no tweets about the page it wont drop anything in so you can leave it on pages to display once it has received all the recognition... if you have any questions or need help installing bother me on twitter im @cartercole

Sunday, January 24, 2010

tweets inline any webpage with Blackbird Pie - Twitters new embedding service

UPDATE: TWITTER HAS MADE THEIR OWN

RE: @venturebeat i totally wrote this service way before them http://j.mp/bQjwjt so lame twitter stole my idea :( but … http://disq.us/dm2zkless than a minute ago via DISQUS



its a pretty simple service called Blackbird Pie you just paste in tweet url and boom embed code is ready... so ends my development on this but i may stell make my conversation embed code... we will have to see

Heres the original... i readdy did make it first (look at the dates)



Everyone is going nuts for twitter... everyone has an account and everyone seems to be tweeting... and something that i noticed was that news stories are staring to have more and more screen shots of interesting or news worthy tweets and not including links to the original tweet... i think this is kinda lame because we cant see where it came from and taking a screenshot of tweet to just include it in a post is a waste of time in my opinion. So i went looking for an easy way to embed tweets into websites and surprisingly i came up empty handed :( thats where being a programmer has its advantages... i looked up the twitter API and got to work. i wanted something that would still look like a tweet so mimicked the layout of tweets from a stream and had it do some neat stuff like pull the users profile link text and colors so it was styled correctly and such and now when cool people like @mattcutts tweet about you you can show off the tweet without even having to take a screenshot


thats one of the reasons i think witter is so cool... its like you can just reach out and talk to companies and celebrities to interact with people who you probably would have never met. so after that way cool demonstration above heres the code
<script src="http://cartercole.com/embedtweet.asp?tid=6610422429"></script>
its that easy! tid is the tweet id from the tweets url like the one aboves url is http://twitter.com/mattcutts/status/6610422429 the part after /status/ is what you want. thats the unique id for that tweet and should be the tid=someidhere parameter that tells the javascript which one to pull...

please dont forget to tweet this like id like to get some good visibility on this gadget so we can stop seeing screenshots of tweets Original post on Easily embeding tweets

i also added some other cool features into it:

tid= is a required parameter for which tweet to pull but you can also use

width= is an optional parameter for how wide the div that is written should be

showreply=t is an optional parameter that adds a reply link so you can respond to the embedded tweet (also accepts showreply=true)

bgclr= is an optional parameter that is the background color of the tweet div. default is white so use bgclr=transparent to turn it off or to another color

showbdr=f is an optional parameter that turns top and bottom borders off (also accepts showbdr=false)

here is an example of the different parameters being used:

and then there was code...
<script src="http://cartercole.com/embedtweet.asp?tid=8062317551&width=550px&showreply=t"></script>

i intended this gadget to be used for people writing webpages and blogs and you usually have the ability to write a <script> but if you dont you can use the iframe version (for things like google sites)
heres an example:

and again the code:
<iframe src="http://cartercole.com/embedtweet.asp?tid=8117878735&iframe=t" height="66" scrolling="no" frameborder="0" width="570"></iframe>
it takes all the same arguments as javascript version but you pass the parameter &iframe=t and use an iframe tag instead of script... id also recommend turning off borders and scrollbars. the default tweet height is about 66 but you may have to adjust as iframes cant resize themselves (note &iframe=true works too)

i had a few challenges when coding this... i wanted to make it super small and efficient without having to load a bunch of external javascript of css so i used code to emulate the a:hover pseudo-class and used all inline CSS. i also compressed the code with Google's Closure Compiler to get the javascript as tiny as possible. also twitter api returns the tweet text plain so i hacked up some regex i found so it would properly display the @username and #hashtag as well as whatever urls happen to appear. last problem i had was making the time messages that say like "about and hour ago" but an article i found had a good idea to steal some js from the twitter gadget so i borrowed and modified a small snippet of that so my time codes looked like twitters... i hope you find it useful and enjoy!

you may also like my script to embed all tweets about an url too

Monday, December 7, 2009

google has gone realtime!

looks like Google finally has their realtime search running kinda like bings twitter search but better... and "Of course, none of this would be possible without the support of our new partners that we're announcing today: FacebookMySpaceFriendFeedJaiku and Identi.ca — along with Twitter, which we announced a few weeks ago" (from Google blog post)

i tried some of the searches and didn't see anything new.

i got it working!

for this query: search for [realtime search] on experimental Google. @mattcutts re-tweeted a link to this page that seems to use realtime search more. this is the way cool video that shows it working (and its got cool music) ill be posting more here as i find out more so check back soon

Sunday, November 15, 2009

Twitter's Beta Testing ReTweeting


So i log into twitter the other day and i see this cool message... Im not sure how many people got the Beta of this but i thought id make a post about it and give what little info i know... here is the post twitter made on their blog. Theres been many hints that this is coming (im pretty sure it said something in the api docs) and its really needed i think it solves some of the problems with re-tweeting like usernames taking up space and such
but let me show you how it works...

you select to re-tweet to your followers and then it shows up in your stream like this...


you see this message in your stream with their username and the cool little re-tweet icon. then after you decide you dont like the message you can revert it with the click of a button


its that simple... ill add some more as i know more but i thought you would like the heads up!

edit: i found another site that has a few more screen shots here

Saturday, October 3, 2009

my very own #list of twitter tools and sites

theres been tons of twitter lists like this one or here but heres my list

TweetMeMe
Twitter news aggregator

TwerBose
when you want to be able to post longer tweets

TwitterFeed
Post your RSS to twitter

TweetStats
Stats about your twitter account

TwitterCounter
Tracks your followers

TwitterGrader
Grades your twitter account

TwitPic
Tweet your pics on twitter and track views

CurseBird
Real time tracking of twitter cursing

FutureTweets
Tweet into the future and reoccurring

Tweleted
Find tweets people delete

TwitterKarma
Get your carma on twitter see who you follow and who follows you

TwitterAnalyzer
Looks at your tweets by time and other stats

ReTweetRadar
Trend tracking

Twitscoop
Another twitter client [uses oAuth]

TwitSpy
Spys on public timeline of twitter

TweetingTooHard
A place ot vote on peoples craziest tweets

PorTwiture
Makes a collage of your status out of images

Mozaic of tweets
title says it all

TimeTweets
The time in tweets...

TwitterFountain
A flowing fountain of twitter tweets

TweetTree
This expands and builds your twitter feed into all its parts loading my hulu feed as well as images and other stuff

TwitterHolic
its what all the junkies do

TweetCloud
view your tweets as a tag cloud

TweetBroadCast
Allows you to broadcast your tweets across your friends

Wednesday, September 2, 2009

Carter Tomorrow Fund | linking Wells Fargo to twitter

When i was young i created the Carter Tomorrow Fund and im happy to say its now back!

But i wanted to take it a step further so i found this way cool site http://tarpipe.com/
Tarpipe lets you fire off a bunch of stuff by connecting pipes in workflows. So i make a filter in gmail to forward to my Wells Fargo alerts to the tarpipe workflow email.
Tarpipe workflow to automate banking updates in twitter
and now i get these nice alerts on my twitter http://twitter.com/CarterCole/status/3623058706 everytime i overdraft or my account drops below $20 so all my social networks can know and my friends can donate to keep me from paying overdraft fees
Someone even donated some! so help out and automate your banking alerts on twitter and give some to the fund

Sunday, August 23, 2009

how to link your hulu history to twitter

i wanted a way to tweet my hulu activity and i came across this way i could post to twitter from a rss feed from my blog so i was thinking to myself, self i could use the rss history feed from my hulu account to post my hulu history to my twitter account

this is the solution i came up with

1)


Login to Hulu and go to your profile then the history tab and get the link for your hulu history as rss

the url looks something like this:
http://www.hulu.com/feed/history/username

From hulu.com:


2)


This is the website that does all the work for you
Twitter Feed


Its called twitter feed all you have to do is use oauth to link twitter feed to your twitter account and paste in the rss link and your pretty much done you can change the settings to add a prefix see mine below



and an example of how it shows up in my twitter
automatic post on Twitter

Thursday, August 13, 2009

follow me on twitter ! im @cartercole

Im on twitter now! well ive been there but i want to start ranking for the words follow me on twitter so im going to go ahead and make an entire post about it but its not all twitter spam i found this really cool little twitter bar maker they look sleek and i like mine here are a few of the choices

Edit: i should prolly put the url up
http://labs.creazy.net/twignature/