ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

mp3 troubles

February 28, 2008 12:59am

Subscribe [1]
  • #1 / Feb 28, 2008 12:59am

    desertdaisy

    20 posts

    Trying to set up my blog to play an mp3 file in one blog entry using the EMFF flash player ...

    File structure on server is:
    FOLDER: public_html
    SUB-FOLDER: uploads
    FILE IN SUB-FOLDER: emff_standard.swf
    FILE IN SUB-FOLDER: example.MP3

    Created a custom entry field {mp3} in the weblog.
    Uploaded file using EE Upload File button on weblog publish/edit page.
    Inserted the following code into the template that references the weblog:

    <object type="application/x-shockwave-flash" data="http://www.fadingmargins.com/uploads/emff_standard.swf?src=http://www.fadingmargins.com/uploads/{mp3}" width="200" height="55">
    
    
    </object>

    But, it doesn’t work. I’ve overlooked something, but I don’t know what.

  • #2 / Feb 28, 2008 10:58am

    Robin Sowell

    13255 posts

    First thing I would do- build it with no tags.  Just hard code everything and make sure that works.  Then- reveal code on the working example- and compare it to a borking example built with the tags.  That way we can pinpoint what exactly is different.

    Make sense?

  • #3 / Feb 28, 2008 12:25pm

    desertdaisy

    20 posts

    Thanks, Robin.

    Hard coding showed me that somehow the {mp3} wasn’t being read correctly.

    In the midst of figuring that out I realized I could just put the code in the weblog entry itself, rather than the template, because including an mp3 file is a one-off thing and if/when I ever want to do it again, I can copy and paste from this first entry.

    So, this problem is fixed! Thanks for your good suggestion about how to do it.

  • #4 / Feb 28, 2008 12:45pm

    Robin Sowell

    13255 posts

    Yea- with tricky bits, I’ll often just do straight html/whatever first.  Then translate over and make sure EE matches it.  I’d lean toward putting the code bits in the template due to personal prefs- but it really is a matter of personal prefs (assuming ‘all html’ is allowed).

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases