Closed (fixed)
Project:
MP3 Player
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2009 at 08:01 UTC
Updated:
23 Sep 2011 at 14:27 UTC
I need to use the mp3 player as a block but whenever i build a view for it all i get is a block containing an mp3 file link. When you click on it, it gives the option to save or download. The player is fine in a page format but dissapears when i create a view. I'm a little bit of a rookike so i'm assuming i'm just missing somthing simple. Please offer any suggestions you can.
Comments
Comment #1
jdelaune commentedWhen you create your view and you click on the mp3 file field you should get some display options. Have you selected the MP3 Player display option?
Comment #2
donovank commentedhere's the set of options i've been choosing when trying to create the view.
view type : node
adding the displays of page and block,
filefield mp3,
label : widget label mp3
format: generic files
then i define the path as the node that was created when i uploaded a test song.
hopefully this might help to make my error a bit easier to diagnose.
Thank you,
Donovan
Comment #3
jdelaune commentedUnder format: do you have other options?
Comment #4
donovank commentedThere are other options under format. I have these available.
Gerenic falis
image
image linked to node
image linked to file
path to file
url to file
mp3 player (default)
I chose mp3 player as a format and it started to work, now there's only one other thing. the player shows up just fine but there is a colum that looks like this creating clutter in the block:
mp3:
mp3:
mp3:
mp3:
mp3:
mp3:
mp3:
mp3:
How do i get rid of this?
Comment #5
jdelaune commentedIt's probably listing nodes without embedded mp3 files. See if you can use a filter on your view to only show nodes where the mp3 field has a value?
Comment #6
jdelaune commentedLet me know if you need to re-open this.
Comment #7
donovank commentedI just wanted to say thank you for your help, it's currently working perfectly.
Comment #8
Caveman Concepts commentedwithout CCK or views or any other extra stuff, just the MP3 player, you can drop it anywhere you want.
First, upload an mp3 file (I prefer /sites/default/files/audio so it's easy to migrate when upgrading drupal core files).
Then create a page or a new block, whatever you need.
Add the following code to the body:
.
Then add the code to place the actual player like this:
THAT'S IT!
Add the block to your sidebar or promote the page to your front page or whatever you want to do.
Comment #9
jaap76 commentedI added all these codes in one block, set the input to php, but nothing is showing.
Comment #10
jaap76 commentedI'm now using the stand alone download and it's codes in blocks.