techmonkey Posted March 13, 2011 Share Posted March 13, 2011 I recently started using http://tumblr.com and although it isn't as popular as Twitter, it has other benefits (such as no character limitation) That got me thinking, that if we can get our now playing updating twitter every 10 minutes then it must be possible with tumblr. I couldn't find a script that would take a twitter post and cross post to Tumblr, nor could I find one for Shoutcast to Tumblr, so I created one, then decided to merge it with the existing twitter one we use and came up with the attached! Please note that there are two areas you need to configure in twitter.php (the only file you need to edit) At the top of the file, the twitter and shoutcast settings #Consumer key token $consumer_key = 'YOUR TWITTER COMSUMER KEY HERE'; #Consumer secret token $consumer_secret = 'YOUR TWITTER COMSUMER SECRET TOKEN HERE'; #Access Token $token = 'YOUR TWITTER ACCESS TOKEN HERE'; #Access Token Secret $secret= 'YOUR TWITTER ACCESS SECRET TOKEN HERE'; $twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $token, $secret); $twitterObjUnAuth = new EpiTwitter($consumer_key, $consumer_secret); $refresh = "600"; // Page refresh time in seconds. Put 0 for no refresh $timeout = "5"; // Number of seconds before connecton times out - a higher value will slow the page down if any servers are offline $ip[1] = "YOUR STATION'S IP ADDRESS"; $port[1] = "YOUR STATIONS PORT NUMBER"; and further down the page //START TUMBLR CONFIGURATION $tumblr_email = 'YOUR TUMBLR EMAIL ADDRESS'; $tumblr_password = 'YOUR TUMBLR PASSWORD'; // Data for new record $post_type = 'regular'; $post_title = 'Recently played'; $post_body = $song[1] . ' http://Station URL HERE'; Please make sure you edit both sections. Also, make sure that title.txt is writeable on your server. We keep twitter.php open in the background so it refreshes and posts every 10 minutes I've included the pal script from the original, although we don't use SAM Broadcaster anymore (Go RadioDJ!) and this script should work whatever program you are using to stream! Link to comment Share on other sites More sharing options...
djgary72 Posted March 13, 2011 Share Posted March 13, 2011 Yay Techmonkey Posted them! I use Both scripts on My Shoutcast with Twitter and today the tumblr account! And without single PAL script either !!! The twitter feed can be seen here http://baldyradio.com And we post pretty much the same to this http://baldyradio.tumblr.com/ I Hope Everyone manages to get this working as i reckon theyre both useful Utilities! Go tech Monkey!!! 1 My Blog https://djgarybaldy.blogspot.com User of RadioDJ FREE radio playout software since 2010. How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html RadioDJ is my FAVOURITE piece of software it works when I need It Link to comment Share on other sites More sharing options...
digitalhunter Posted March 16, 2011 Share Posted March 16, 2011 Gotta agree with Gary! Thanks for sharing the script. I'm sure this will be something I can implement onto my site so +Rep Link to comment Share on other sites More sharing options...
TM101Radio Posted June 13, 2011 Share Posted June 13, 2011 I actually started using tumblr recently and I get more hits to my tumblr blog then to my website so I been really considering making tumblr my main website (just giving it the main domain name) and this script is great and was very easy to add it to my tweetcast script I already had working. THANKS so much for this!!! oh you can view my tumblr blog at http://tm101radio.tumblr.com Link to comment Share on other sites More sharing options...
techmonkey Posted June 13, 2011 Author Share Posted June 13, 2011 Glad to be of help! I've changed ours over to a cron job than runs on the web server now rather than requiring a browser to be open (although the actual script itself remains unaltered) Link to comment Share on other sites More sharing options...
TM101Radio Posted June 13, 2011 Share Posted June 13, 2011 Yeah the cron job is how im using it also I have mine set to every 4 hours so as to not annoy my twitter and tumblr followers.. Link to comment Share on other sites More sharing options...
yidso Posted August 15, 2011 Share Posted August 15, 2011 Can this be adapted for Icecast? Kieran Lewis Tune in to the Kieran Lewis Show Fridays 7pm - 9pm (UK time) www.lovemusicfm.com Link to comment Share on other sites More sharing options...
riverregionmedia Posted July 13, 2012 Share Posted July 13, 2012 I can't seem to get this to work at all. Link to comment Share on other sites More sharing options...
BWorld Posted July 14, 2012 Share Posted July 14, 2012 I can't seem to get this to work at all. The original file seems to not be there, the code that is shown is just a part of it, so it would not work. I'll PM the OP. ██ Stream101 | Affordable Media Solutions ██ Shared cPanel? Web Hosting | WordPress Hosting | Premium Stream Hosting ██ TOLL-FREE: (616) 277-7280 | 30 Day NO QUESTIONS Money-Back Guarantee ██ 100% Cogent Free Network | CloudLinux OS | Tier 1 Bandwidth | Grand Rapids, MI Link to comment Share on other sites More sharing options...
dewsangam Posted December 18, 2014 Share Posted December 18, 2014 hey where do i download this script. Help please Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now