Wordpress, Websites, RSS and Cablecast
We're currently in the process of rebuilding our website using Wordpress. We would like to display Cablecast schedule data on our home page (i.e. next three programs coming up, including channel and time).
I realize we could use the Cablecast Web Service if we had a bit more coding experience... but I suspect rss might be a good first step. What is the best way to use the rss feed from Cablecast to show schedule data on our website?
I realize we could use the Cablecast Web Service if we had a bit more coding experience... but I suspect rss might be a good first step. What is the best way to use the rss feed from Cablecast to show schedule data on our website?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?RSS works great, but you would still need to parse the feed somehow to get it to do what you want. There may be some plugins for wordpress that would allow you to do this, I'm not sure.
I donated some code to the local education channel to use with there wordpress / cablecast integration.
http://tv3.portlandschools.org
I'm not to familiar with word press, but I think you could ether edit the template files to do what you wish, or get the php-exec plugin which would allow you to paste the code right into one of your pages.
http://wordpress.org/extend/plugins/e...
If you want, drop me an email with the specifics of your cablecast install (URL and channel ID) and I will tweak the code I sent them for your channel. I can also send you the code that I helped Kingdom Access TV with:
http://www.katv.org
which does the showing the next three channels thing your looking for.
-ray
ray@ctn4maine.org
1 person says
this answers the question
-
Inappropriate?Thank you Ray, I would definitely appreciate having that code. I'll email you with the info.
To the RSS question, is the standard RSS schedule query available in Cablecast under 'extras', the best or only RSS information provided by Cablecast? And is there a better way to pare down that information based on the current time? When I use that query, I get three day's worth of programs, all with no start times, beginning with 12:00 midnight.
Anyone well versed in RSS, I would welcome your suggestions.
-
Inappropriate?Hey Ray, what's the chance of getting that code from you? Our web techies would still love to work on this :-) Let me know...
-
Inappropriate?Hey Shawn...
I pulled out those two scripts and added them to the cablecast-php repository I have hosted on github.
www.github.com/raytiley
The two scripts are called upnext.php and nowplaying.php
They both get configured at the top with cablecasts server base path, and the channel ID. You can just copy and paste the php code into where you want the data inserted. In word press you'll need the php-exec plugin as mentioned above.
The nowplaying just returns the title of the currently playing show.
The upnext returns a html table. with each row containing a single cell with time - showtitle. The time is in bold I think.
Both scripts require the nusoap library which is also available on my github repository.
Let me know if I can do anything else....
-ray
I’m getting married in two days.
1 person says
this answers the question
-
Inappropriate?Dude! That's awesome-- thanks for that. I'm passing it along to our geeks right now. Congratulations in advance and happy honeymoon...
I’m thankful
-
Inappropriate?Hey Shawn,
Just checking in to see how your geeks are making out?
Just a FYI.... I'm planning on migrating all my sloppy PHP Cablecast code to return JSON instead of html and plain text.
I feel this will be more consistent, and allow other website developers to use the PHP files to get data that they can format themselves without having to modify the PHP code directly.
I imagine I will have it done in two weeks, its part of a larger project that I'm working on for my own tv station.
-ray -
I'm not sure I want to know how Shawn's geeks make out. ;) -
hahaha -
Well let's just say it would make quite the access program.
Loading Profile...




CHAMP
CHAMP