• Hey everyone! Sorry if this is the wrong place to post this.

    I’m involved with a community radio station in the UK that’s part of a university. I’ve been assigned the task of getting our now playing information from our system to our website. I got in contact with our university web team and they’ve mapped our metadata text file to a url which shows our now playing info. They’re not being very helpful on how to actually integrate this into our website however.

    Just wondered if anyone had any ideas on how we could do this or any plugins that may be useful?

    Thank you! Any help on this would be appreciated ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is it a webpage you could put inside an iframe?

    Is it a RSS or Atom Feed?

    Is it something that could be parsed and fed into a page?

    Could they send it to your site via XML RPC?

    Moderator bcworkz

    (@bcworkz)

    Well, if that text file’s contents is returned by a particular URL and the returned text is suitable for direct output, you could just add echo file_get_contents('https://www.example.com/now-playing.txt'); to a suitable template. Which template depends on where the info should appear.

    But in reality, it’s likely you’ll need to parse the returned content to extract the data you really wish to display. It’d also be a really good idea to run the text through htmlspecialchars() prior to output. There could also be a charset mismatch between that file and your site that may need to be resolved.

    You would also likely want to output the data inside an HTML container that serves to position and style the text to fit nicely with the current site’s appearance.

    Hayden, you’re asking the magic question to which I’ve been seeking the answer for years. We currently pull “now playing” info off our Icecast server, but I would rather push it directly to our WordPress based website. Hope someone has some answers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Radio Station Now Playing Information’ is closed to new replies.