In order to use the following, you need:
Optionally, you can use an AppleScript. Which you can find here: http://www.adamztech.com/adamzblog/?p=18 Works with Wordpress 2.1. Edit the script in Script Editor, and save as a 'stay open' application.
Upload method: ftp URL - ftp.your_ftp_path.com (my normal ftp path) Proxy - field blank File path - blank name - trackinfo.txt
Directory - /wordpress/ (the path to your wp root folder) username - my ftp username password - my ftp password Only the use PASV-mode for file transfer box is ticked. (the default)
If you get this all right, you should then be able to get trackinfo.txt to appear your wp root when you click the upload now button.
< ?php /* Plugin Name: My iTunes Plugin URI: http://chrisjdavis.org/index/category/wp-hacks/ Description: A plugin that parses the text file created by Kung-Tunes and displays it on your site. Author: Chris J. Davis Author URI: http://chrisjdavis.org/ */ function display_tunes() { $fp=fopen("trackinfo.txt","r"); $track=fgets($fp,1024); echo “$track"; fclose($fp); } ?>
<?php display_tunes() ?>
Format the appearance of the tracklisting via the 'Formats' menu within kung-tunes.