WordPress.org

Ready to get started?Download WordPress

Forums

Can anyone make this widget work? (15 posts)

  1. sdimbert
    Member
    Posted 6 years ago #

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

  2. MichaelH
    Member
    Posted 6 years ago #

    Link to download that widget will help others diagnose your problem.

  3. sdimbert
    Member
    Posted 6 years ago #

    Doh!

    I thought I was commenting on the plugin page. :)

    http://wordpress.org/extend/plugins/shoutcast-sidebar-widget/

  4. sdimbert
    Member
    Posted 6 years ago #

    Anyone?

    *bump!*

  5. JimAtWCU
    Member
    Posted 6 years ago #

    Anyone?

    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:

    wp-content/plugins/sc_widget

    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 http://jimmetzger.net/sediments/.

    Jim

  6. deuced
    Member
    Posted 6 years ago #

    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.

    Thx!

    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.

  7. deuced
    Member
    Posted 6 years ago #

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

    <object ID="MediaPlayer" width="170" height="70"
    CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    standby="Loading Windows Media Player components..."
    type="application/x-oleobject">
    <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"
    pluginspage="http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx"
    name="MediaPlayer"
    src="http://streamURI:port/"
    width="170"
    height="70"
    autostart="0"
    volume="100"
    SHOWSTATUSBAR="1">
    </embed></object>

    With this code FIREFOX gets the required plugin from http://port25.technet.com 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.

  8. JimAtWCU
    Member
    Posted 6 years ago #

    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.

  9. coloradofree
    Member
    Posted 6 years ago #

    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.

  10. doublet
    Member
    Posted 6 years ago #

    Not working here neither .... any help?

    thanks

  11. raginGeek
    Member
    Posted 6 years ago #

    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):
    /wordpress/wp-content/plugins/sc_widget/sc_running.htm

    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 :)

  12. raginGeek
    Member
    Posted 6 years ago #

    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

  13. raginGeek
    Member
    Posted 6 years ago #

    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...

  14. raginGeek
    Member
    Posted 6 years ago #

    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 @ http://www.whineofthemonthclub.com

  15. raginGeek
    Member
    Posted 6 years ago #

    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:
    /wordpress/wp-content/plugins/sc_widget/winamp.png

Topic Closed

This topic has been closed to new replies.

About this Topic