Support » Plugins » Can anyone make this widget work?

  • I would like to use this plugin but it doesn’t seem to be working. Has anyone been successful with it?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Link to download that widget will help others diagnose your problem.


    I thought I was commenting on the plugin page. 🙂




    Yes, I can and I did! I found two inconsistencies, one in my reading and one in the code. First, the widget is packaged in a directory called shoutcast-sidebar-widget. If it were a simple install, one would assume that it would be just drag the folder over to the server and be done with it.

    After re-reading the readme file, I noticed installation point #2…

    2. Next, you must extract all files from the archive and move them directly under the following folder, overwriting any existing files from previous versions:


    Oops… different directory name. Renaming the directory on the server makes it work just fine IF your WP installation is at the root of the server, which mine is not. The author makes that assumption unfortunately. The fix is to edit both sc_widget.php and sc_running.htm, removing the leading slash from the file locations. For example: /wp-content/plugins/sc_widget/sc_running.htm becomes wp-content/plugins/sc_widget/sc_running.htm. There are 6 occurrences in the two files.

    To see it in action, stop over to


    Nice hack JimAtWCU!

    I ve tried the plugin and didnt work so i had embed a media player in a text widget and also had an external php file checking stream status.

    But after your hack i think i’m gonna play with this plugin which seems intergrating well at your blog.


    PS: It would also be useful if a moderator could change the title so ppl which are interesting at this shoutcast plugin should find it more easily.

    To embed a media player i have used this piece of code which works with all browsers:

    <object ID="MediaPlayer" width="170" height="70"
    standby="Loading Windows Media Player components..."
    <PARAM NAME="FileName" VALUE="http://streamURI:port/" valuetype="ref" ref>
    <param name="AudioStream" value="1">
    <param name="AutoSize" value="0">
    <param name="AutoStart" value="0">
    <param name="AnimationAtStart" value="0">
    <param name="AllowScan" value="-1">
    <param name="AllowChangeDisplaySize" value="-1">
    <param name="AutoRewind" value="0">
    <param name="Balance" value="0">
    <param name="BaseURL" value>
    <param name="BufferingTime" value="5">
    <param name="CaptioningID" value>
    <param name="ClickToPlay" value="-1">
    <param name="CursorType" value="0">
    <param name="CurrentPosition" value="-1">
    <param name="CurrentMarker" value="0">
    <param name="DefaultFrame" value>
    <param name="DisplayBackColor" value="0">
    <param name="DisplayForeColor" value="16777215">
    <param name="DisplayMode" value="1">
    <param name="DisplaySize" value="1">
    <param name="Enabled" value="-1">
    <param name="EnableContextMenu" value="-1">
    <param name="EnablePositionControls" value="-1">
    <param name="EnableFullScreenControls" value="-1">
    <param name="EnableTracker" value="-1">
    <param name="InvokeURLs" value="-1">
    <param name="Language" value="-1">
    <param name="Mute" value="0">
    <param name="PlayCount" value="0">
    <param name="PreviewMode" value="0">
    <param name="Rate" value="1">
    <param name="SAMILang" value>
    <param name="SAMIStyle" value>
    <param name="SAMIFileName" value>
    <param name="SelectionStart" value="-1">
    <param name="SelectionEnd" value="-1">
    <param name="SendOpenStateChangeEvents" value="-1">
    <param name="SendWarningEvents" value="-1">
    <param name="SendErrorEvents" value="-1">
    <param name="SendKeyboardEvents" value="0">
    <param name="SendMouseClickEvents" value="0">
    <param name="SendMouseMoveEvents" value="0">
    <param name="SendPlayStateChangeEvents" value="-1">
    <param name="ShowCaptioning" value="0">
    <param name="ShowControls" value="-1">
    <param name="ShowAudioControls" value="-1">
    <param name="ShowDisplay" value="0">
    <param name="ShowGotoBar" value="0">
    <param name="ShowPositionControls" value="0">
    <param name="ShowStatusBar" value="-1">
    <param name="ShowTracker" value="-1">
    <param name="TransparentAtStart" value="0">
    <param name="VideoBorderWidth" value="0">
    <param name="VideoBorderColor" value="616614">
    <param name="VideoBorder3D" value="-1">
    <param name="Volume" value="-1">
    <param name="WindowlessVideo" value="-1">
    <embed type="application/x-ms-wmp"

    With this code FIREFOX gets the required plugin from with MP10. Without this FF cannot load embeded MPlayer if it hasn’t the plugin already.

    And i think this code should be put at wma.php but haven’t test it yet.

    Note to all – the mods I made do not work 100%

    One problem is when using pretty URLs – it moves where the widget thinks it is relative to root. I will be fixing that up tonight or tomorrow and will post again with the tweak.

    Also will post on my blog.

    I just tried and I couldn’t get anything out of it. I run two internet radio stations on shoutcast. I did notice it completely interfered with my rss feeds I have listed to a couplde of podcasts. I double checked and while it was installed the feeds failed so then when I removed it they came back. I did it twice. I thought maybe the feeds were messing with the plugin so I removed them and tried it without them and still nada.

    Too bad if it worked it would be a nice tool.

    Not working here neither …. any help?


    the simple fix for JimAtWCU’s last issue would be to hardcode the full path, so instead of removing the first slash (as he originally mentioned) from: /wp-content/plugins/sc_widget/sc_running.htm
    you should add the full path that comes before it (as in my case):

    HTH – it didn’t for me, but don’t let that stop you from visiting my blog

    hopefully by the time you do, i’ll have it figured out 🙂

    i figured out the problem (on my server at least) is the preg_match is not working:
    preg_match(“/Server Status: <\/font><\/td><td><font class=default><b>(.*)<\/b>/U”, $file, $matches);
    $status = $matches[1];

    if i echo $status; nothing shows up
    if i echo implode(‘#’, $matches); nothing shows up
    so i hardcoded $status = “Server is currently up and public.”
    and i had to hardcode the drive letter just to get anything to show up.

    alas I like the UI that dueced’s solution produces better, so I went with that. thanks dueced! see it in action

    shoot, just realized the problem w/ dueced’s solution, if it’s in the sidebar, everytime the user clicks a link in your site the music either stops or starts depending on the AutoStart value. the shoutcast widget lets you choose your player then pops open a window. guess i’ll keep working on it…

    aight, i got it. the problem wasn’t w/ the preg_match stuff it was w/ the url i added a trailing slash so when the script added “/index.html” it created a double slash which resulted in an Invalid Resource. anyway it’s working now @

    ok, one last thing, hopefully 🙂

    back on the path issue
    in sc_widget.php, since it is a script file you might need the full path starting w/ the drive letter

    but in sc_running.htm, since it is an Html file you just need the relative path from the root:

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Can anyone make this widget work?’ is closed to new replies.