|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#121 |
|
Member
|
doesn't matter... your stations site will suffice
|
|
|
|
|
|
#122 |
|
Junior Member
|
Thanks to everyone who contributed to this, im back up
|
|
|
|
|
|
#123 |
|
Junior Member
Join Date: Sep 2010
Posts: 1
|
Please help me...
Some time ago I worked with the code of twittercast you provided here, but now I can not, can someone help me?
|
|
|
|
|
|
#124 |
|
Junior Member
|
I downloaded twittercast.zip, modified twitter.php with my Twitter app info and uploaded the files to my site (same folder), but when I hit twitter.php on my site, I get:
Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in ...com/EpiCurl.php on line 14 All the files were uploaded to my site's root folder. What did I do wrong, here? |
|
|
|
|
|
#125 | |
|
Junior Member
|
Quote:
the detour network - detour MUSIC, detour TALK, detour BLUES, SOF Radio Purple Zebra Media Services-http://purplezebra.us Supporting independent, licensed internet radio stations since 2001! |
|
|
|
|
|
|
#126 |
|
Junior Member
|
Dammit, Netfirms confirms:
At the moment, we do not offer OAuth for PHP. Time to look for a new web host, I guess. Thanks for the help. |
|
|
|
|
|
#127 |
|
Junior Member
|
Okay, the reply to my problem and the email response from Netfirms seemed to dovetail together, but the error message I got was NOT due to any problem with OAuth on my host's part.
My account was still set to use PHP4 instead of PHP5, which this script apparently requires. I read something about this somewhere, changed my preferences on Netfirms to PHP5 and hit the twitter.php page again. I got the title that was playing and number of listeners instead of the error that had been coming up before. [I can't say that I entirely trust Netfirms' tech support. When I tried to set the old version of Twittercast up the first time, they told my that I couldn't do the script that would update the title on my site, which I did get to work--after much frustration--a few days later.] So let's go at it again. The title and listeners page (twitter.php) is working, I'm getting no errors, but I get no updates on Twitter. Is there someplace where I might find an error indicated that I can work with, or can anyone think of something I might try to get some substantial result I can work with out of this? I really thank you for your help. I guess I'm not giving up on this until I actually understand this whole OAuth.php thing.
|
|
|
|
|
|
#128 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Can someone tell me what 'Callback URL:' is please?
I can see I'm in for a struggle here - I'm not using the PAL version.. Why do they keep changing things
|
|
|
|
|
|
#129 |
|
Junior Member
|
You should just be able to keep that blank when setting up a new Twitter app. Your application will not be using a callback URL.
the detour network - detour MUSIC, detour TALK, detour BLUES, SOF Radio Purple Zebra Media Services-http://purplezebra.us Supporting independent, licensed internet radio stations since 2001! |
|
|
|
|
|
#130 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Help!
OK, I followed all the instructions, but I get this error:
Fatal error: Call to undefined function curl_multi_init() in /home/paul/website/twittercast/EpiCurl.php on line 34 Any suggestions please? ![]() Oh, and can you tell me please, what do I need to remove/comment out, to stop the listener numbers from displaying. Can you also tell me how to add 'Now Playing:' text.. Many thanks Last edited by Busby; 25th September 2010 at 20:30. |
|
|
|
|
|
#131 | |
|
Junior Member
|
Quote:
the detour network - detour MUSIC, detour TALK, detour BLUES, SOF Radio Purple Zebra Media Services-http://purplezebra.us Supporting independent, licensed internet radio stations since 2001! |
|
|
|
|
|
|
#132 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Thanks for the reply aaronsnet, but everything was working fine until Twitter changed to OAuth.
I have uploaded the new files to a new folder, on the same server, and got this error.. The old files are still there and working fine, except of course, it doesn't update.. |
|
|
|
|
|
#133 |
|
Junior Member
|
Double-check to make sure that your account is set to use PHP5. That was my first problem. PHP4 won't do it.
|
|
|
|
|
|
#134 |
|
Junior Member
|
Help
I'm having trouble setting up, where I find the Access Token Secret?
Please help setting up a twittercast. Thanks http://radiobranime.com/twittercast/twitter.php |
|
|
|
|
|
#135 |
|
Junior Member
Join Date: Oct 2010
Posts: 1
|
I just register here to say thanks dopelabs... Thank you very much, it works perfectly!!
|
|
|
|
|
|
#136 | ||
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Quote:
Quote:
|
||
|
|
|
|
|
#137 |
|
Junior Member
|
#Access Token Secret
$secret= '???????????????????????????????????????'; I could not find this information already registered the application as reading and writing and already the permission of the files are 777 |
|
|
|
|
|
#138 |
|
Member
|
when you are viewing your app from the dev page.. there are links on the right side of the page that say access tokens... i am including a screenshot
|
|
|
|
|
|
#139 |
|
Junior Member
|
one last question, for shoutcast status have to be upgraded to access the page
http://radiobranime.com/twittercast/twitter.php |
|
|
|
|
|
#140 |
|
Junior Member
Join Date: Nov 2010
Posts: 1
|
This is great! Thanks so much! One question - what part of the script do I need to delete to remove the number of listeners bit? I tried one part but that messed things up. Thanks!
|
|
|
|
|
|
#141 |
|
Junior Member
Join Date: Nov 2010
Posts: 26
|
MAN..this script is awesome...got it to work perfectly on the first try but i was just wondering is there a way that it wont post like a given keyword?..i got songs in rotation right now that say "unknown" and i dont want those to post at all on twitter..I seen the post about "live" and posting songs WITH a keyword but how about skipping songs with a keyword ..
you can see what i mean on my twitter page http://www.twitter.com/tm101radio any help would be appreciated.. |
|
|
|
|
|
#142 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
A better suggestion would be to simply name all your files wouldn't it? Or, at very least put your station name or [Replay] in??
http://twitter.com/#!/1mixradio |
|
|
|
|
|
#143 |
|
Junior Member
Join Date: Nov 2010
Posts: 26
|
i agree completely and I have been doing it but its gonna take a while (got maybe 40 more tracks to go) so i was hoping for a way to not tweet those until i get my library fully updated..
i know a little php and i know its the if/else syntax..and i know i need to use the else syntax to tweet the message but im not sure what to put as the if syntax part..Does tha make sense?lol |
|
|
|
|
|
#144 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Not to me I'm afraid..
Just put all the un-tagged files in a group, highlight them all, right click, put something useful like 'On Rotation' in the tag and save it and your done, until you get round to do them properly.. |
|
|
|
|
|
#145 |
|
Junior Member
Join Date: Nov 2010
Posts: 26
|
yeah thanks for the suggestion that sounds like less of a headache and way easier to implement..
|
|
|
|
|
|
#146 |
|
Junior Member
Join Date: Nov 2010
Posts: 26
|
ok i updated my whole playlist and all song info is there but while going thru it i started to wonder if it was possible for that keyword feature mentioned earlier to post all the songs with an '@' symbol. on alot of songs i tag the artist on twitter in the song title so I was just wondering if the song info has @sample name it would find just '@' cuz all names are different..
|
|
|
|
|
|
#147 |
|
Junior Member
Join Date: Dec 2008
Posts: 6
|
Hi all,
Having a problem with twittercast. Ok I have setup all the settings correctly in twittercast.php and twitterAPI.php It just doesn't update my twitter page when posted. http://www.kunninmindz.com/twittercast/twittercast.php Now Playing: Mista Sikk // Twittercast Shoutcast Twitter Status Script By DopeLabs - http://www.dubstep.fm Just doesn't reach my twitter page, any suggestions? |
|
|
|
|
|
#148 |
|
Junior Member
Join Date: Dec 2008
Posts: 6
|
anyone?
|
|
|
|
|
|
#149 |
|
Junior Member
Join Date: Jul 2010
Posts: 37
|
hey,
don't suppose a shoutcast v2 script is in development?
|
|
|
|
|
|
#150 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Is it just me, but my Twittercast stopped working yesterday - or have they changed things again?
Nothing has changed my end
|
|
|
|
|
|
#151 |
|
Junior Member
Join Date: Feb 2011
Posts: 2
|
Hello,
I’ve tested many already created hosting sites where you can grab stats from your stream and auto tweet it and they don’t turn out to work as well. I’ve considered writing my own code as I’m a PHP developer myself, but since theirs tools already out their; I figure I’ll try and see if there was some sort of already created solution out there. Thus bringing me too this forum thread and decided to give this “twitter script” a shot. After 5 minutes of downloading, creating twitter application, getting APIs and tokens, updating configuration, setting file permissions and tested via browser. It does it work! After browser test I’ve moved to using a cron job – and still works. Thus be the reason I’m posting now, I’ve noticed a few people have struggled getting this to work and I’ve tested this on CentOS with cPanel running Apache. ![]() The following details that says “MediaOnAir” represents my company name – and I used for this test, please use your own radio station name when creating your application for twitter. Keep in mind – where ever you want your song displayed on your twitter account you MUST log into that account to create an application. After you submit your application will automatically be created and you have API keys instantly. ![]() Now we’re going to update the twitter.php file, open twitter.php in your favorite editor, if you don’t have one you can open in notepad. I’ve labeled above where each key goes where based on the variable presented in the twitter.php. After you fill in those details – you will notice a ‘red box’ that points to ‘Click here’ this is your access token which is required. ![]() Again, I’ve labled where each token goes where in the twitter.php file. Now we need to update the radio settings to get the information, change these settings to your host and port. code: If you have more than one stream than you need to do the same for the other ports. You can add by copy and pasting and changing to the next number. code: Or just remove all but 1. After completed, save twitter.php – name the folder whatever you like and upload to your document root directory for it to be web accessiable, As mentioned earlier, I run cPanel therefore my doc root would be public_html – and I named my folder ‘twitter’ and uploaded it with all files inside. If you right-click on title.txt in your FTP client (I use FileZilla) goto properties or could also be permissions if you’re using a different client – You need to set these permissions to 777 – make sure all boxes are checked or you can just type 777 in the input field. Again, I use cPanel chmod can also be done via the file manager. ![]() After this, we can now being testing via the browser. Web Test 1: ![]() Success! – Does it post to twitter? Twitter Test 1: ![]() Success – Let’s try this again after browser refresh. Web Test 2: ![]() Success – Does it post to twitter? Twitter Test 2: ![]() Success! – Now let’s add cron job. First, we need to add the cron job, most control panels support this as I use cPanel it does and even makes it easy for you. If you don’t use cPanel – ask your host if you’re unsure about adding cron jobs. All configurations will be more less the same. Login cPanel – and go to Cron Jobs. ![]() In cPanel theirs a dropdown box, Select ‘Common Settings: Every minute (*****) I’ve tested this to make sure it doesn’t double post or anything and it don’t. You need to chage the command to use your own domain name; Most people copy and paste ***** in the command line, do not do this! – Copy from wget as shown above. Add New Cron Job; Close Browser and Let’s Test! Shoutcast DNAS Test: ![]() Twitter Test 3: ![]() After a few minutes it’s posted for a few songs. You can alter data if you know how to display your website or remove item’s – If you notice I’ve removed the listeners and added a website url. If you don’t know PHP than I don’t recommend updating this, if you want a certain way to be display ask here and I’m sure me or others will be willing to help. Lastly, 7.html has been deprecated in Shoutcast V2 – therefore it will not work – but theirs already scripts out there that support logging into Shoutcast and grabbing the XML data to display the song data, I’ll possibly update this to get this working. |
|
|
|
|
|
#152 |
|
Junior Member
Join Date: Feb 2011
Posts: 2
|
Nope, Mine is working fine.
I posted a proper tutorial on how to get this working, but appears the 'Quick Reply' isn't working or don't have special permissions to do use; Hence being the reason why it was never posted. Posted above after figuring this out, Sorry for double post. Twitter: http://twitter.com/mediaonair Thanks, Cory |
|
|
|
|
|
#153 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Mine has simply stopped posting to my twitter accounts although they continue to post correctly to twitter.php
//87.98.173.107/~paul/twittercast/twitter.php //87.98.173.107/~paul/twittercasthouse/twitter.php Is it possible my host has changed something like the php version? Any suggestions would be most welcome
|
|
|
|
|
|
#154 |
|
Junior Member
Join Date: Jun 2008
Location: England
Posts: 27
|
Hi,
I've just moved my script to my new host and I get this error message when i run the script. Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/mysite/public_html/twitter/EpiOAuth.php on line 158 anyone any pointers? www.summertimeradio.com /Dance Music 24/7 |
|
|
|
|
|
#155 |
|
Junior Member
Join Date: Mar 2011
Posts: 7
|
I have a problem with setting up the cron job on my server. I have copied the wget command from the first page, but the error I am getting is best described in the following screenshot
EDIT: I found a free host that allows outgoing connections @ http://www.azok.org if anyone's interested. |
|
|
|
|
|
#156 | |
|
Member
|
Quote:
thats because the beginning of the command is already entered for you... php -f /home/u507942607/ <--- just complete the path to the twitter.php file.... it may look something like this: php -f /home/u507942607/ the put in the box yoursite.com/twittercast/twitter.php give that a try |
|
|
|
|
|
|
#157 | |
|
Member
|
Quote:
ask your hosting provider.. they should be able to change your php settings for you to allow |
|
|
|
|
|
|
#158 | |
|
Member
|
Quote:
code: and change it to something like this code: |
|
|
|
|
|
|
#159 | |
|
Member
|
Quote:
cheers DL |
|
|
|
|
|
|
#160 |
|
Member
|
one last thing... thanks for all the kind words everyone. i hope you dont have too much trouble getting things up and working now with the nice and easy set of instructions provided by MediaONAIR.
ive been MIA for a bit so i havent answered anyones Q's for a while... but im around again now so if you need anything hit me up =] Cheers DL also, so you dont have to dig too far, here is the link for download as well as the file attached. Download Twittercast Here |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|