Radionomy Board
It is currently Tue Oct 15, 2019 2:47 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Tue Jul 02, 2013 12:42 am 
Offline
Moderators
User avatar

Joined: Mon Jun 24, 2013 12:55 pm
Posts: 61
Location: Berlin, MD, USA
Radio 1: http://radionomy.com/en/radio/audiograted
Radio 2: Radionomy Producer since 2009
O.S: Windows 8
Undoubtedly, you have set up the caching script on your site and now are wondering how to get the gobbledygook that it outputs to look nice on your site.

What you must do is use your old script that you use to display your last played chart, and change the portion that is this:
Code:
 $xml = @simplexml_load_file("http://api.radionomy.com/tracklist.cfm?blahblahblah");


You must change the URL from api.radionomy.com to the path to your uploaded script from here. The script in this topic emulates the Radionomy API.

In case you don't have a script to display the tracklist, here's one: (remember to change the url that is called to reflect the url to your script):

Code:
<?php
   // All settings now in call_api.php, download from http://board.radionomy.com/
   // Script by Jamie Welch
 
   ?>
 
   
   
      
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link rel="stylesheet" href="style.css" type="text/css">
      
      
        <div class="main">
          <div class="inner">
            <h3>Last 50 Songs Played</h3>
            <div style="text-align:center; padding-left:10px; margin-top:20px;">
               <!--?php
                  $xml = @simplexml_load_file("http://mysite.com/cache/tracklist/call_api.php");
                  if($xml){
                   echo '<table-->';
                     foreach ($xml-&gt;track as $value){
                        print "".$value-&gt;title."";
                        print $value-&gt;artists."";
                     }
                   echo '';
                  }
                  else{
                   echo 'Error with the call_api.php!';
                  }
               ?&gt;
            </div>
          </div>
        </div>
 
      
   

_________________
Jamie Welch
Global Moderator

Need support? I do not respond to unsolicited private messages. Please post all support requests in the technical support forum.

Don't forget to completely fill your profile to improve the support!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group