WordPress.org

Ready to get started?Download WordPress

Forums

Widget Only Appears on Homepage (2 posts)

  1. mustangdailyweb
    Member
    Posted 2 years ago #

    http://mustangdaily.net/

    Theme: Woothemes' Editorial

    The widget in question is the one labelled "Listen Up". It's a text widget with coding that embeds a .swf. It only shows up on the homepage.
    Here's the code itself.:

    <!-- BEGINS: AUTO-GENERATED FFMP3 CODE -->
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="205" height="132" align="center">
    <param name="movie" value="http://mustangdaily.net/ffmp3-config.swf" />
    <param name="flashvars" value="url=http://129.65.35.106:8000/KCPRMP3&lang=en&codec=mp3&volume=50&traking=true&jsevents=true&buffering=5&skin=ffmp3-oldradio.xml&title=KCPR%20Radio Stream&welcome=Cal%20Poly Radio" />
    <param name="wmode" value="transparent" />
    <param name="allowscriptaccess" value="always" />
    <param name="scale" value="noscale" />
    <embed src="http://mustangdaily.net/ffmp3-config.swf" flashvars="url=http://129.65.35.106:8000/KCPRMP3&lang=en&codec=mp3&volume=50&traking=true&jsevents=true&buffering=5&skin=ffmp3-oldradio.xml&title=KCPR%20Radio Stream&welcome=Cal%20Poly Radio" width="205" scale="noscale" height="132" wmode="transparent" allowscriptaccess="always" type="application/x-shockwave-flash" />
    </object>
    <!-- ENDS: AUTO-GENERATED FFMP3 CODE -->
  2. m6mdr
    Member
    Posted 1 year ago #

    Hi, I know this is an old question but I came across this issue myself.

    I'm using the same player but I downloaded the actual ffmp3 files to host myself and changed everything in the embed code to point to the sites URL.

    Here's how for anyone else having trouble.

    Download FFMP3 from here http://ffmp3.sourceforge.net/ and generate the embed code while you're there.

    Then upload the FFMP3 files to the root of your domain.

    Now you need to edit the embed code and change where it looks for the config file and the skins.

    If you look through the embed you will see it refer to the following:

    <param name="movie" value="/fmp3-config.swf" />

    AND

    skin=/ffmp3-mcclean.xml

    Those lines of code both appear twice.. Once near the top of the embed code and once near the bottom. This is for cross browser embedding purposes.

    You need to edit all instances of those lines of code with

    <param name="movie" value="http://YOURSITEURL.com/fmp3-config.swf" />

    skin=http://YOURSITEURL.com/ffmp3-mcclean.xml

    What's happening is the player can't find the files when you move away from the homepage because they are configured to look for what ever page URL your on followed by a /fmp3-config.swf for example.

    So while your on the homepage, the player sees http://yoururl.com/fmp3-config.swf and finds the files. When you navigate to another page the player sees http://yoururl.com/Your-Page/fmp3-config.swf which is wrong.

    By telling the player to look the domain URL rather than internal file paths, it will always find the files as long as they're in the domain root folder.

    Only snag with this is the player will only play while on the page.
    If you move pages, the player will have to stop and start again when the new page loads. If continuous uninterrupted play is required, you can always put it in a popup.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags