Active
Project:
SoundManager2
Version:
6.x-2.3
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2010 at 16:38 UTC
Updated:
11 May 2010 at 13:31 UTC
Hi, could someone tell me how I go about having more than just the title in page-player? Is it something I can change in the administration menus in Drupal, or something in the modules/SoundManager folder that I amend?
Here is an screenshot of what I have just now
http://img705.imageshack.us/img705/8761/smdrupal.jpg
I would like for example for it to show not just the title but say the artist..album...length of clip ON the player.
Many thanks
K
| Comment | File | Size | Author |
|---|
Comments
Comment #1
davebv commentedThis is hardcoded in the php templates for the sm2_audio and sm2_cck_plst filefield and audio.
Currently there is no option for displaying more than the title and a link for download the original audio, in case of filefield, and a link to audio node in case of audio nodereference.
You may change that and submit a patch to see how you would like to get all the titles, names and information.
Comment #2
katy24 commentedHi
Thanks for that...however I still need more help. What are the php files I need to edit? (the ones in the folder 'sm2_plst_cck' >sm2_plst_cck_audio.tpl.php + sm2_plst_cck_ff.tpl.php ?).
(Sorry, a bit of a beginner to Drupal and just stumbling and trying to understand all the different module and general jargon :)
If you could give me some layman pointers :)
thankyou
Comment #3
davebv commentedIf what you want to do is to edit the filefield and nodereference player formatter, you have to edit the .tpl.php from the sm2_plst_cck folder.
The line generating the link is line 23
Same for the audio tpl.php.
Comment #4
katy24 commentedOkay thanks.
Another thing. I was looking to change how the timing thing works. So I went and coping the page-player.js over to my sites/all/themes/mytheme folder, but this seems to cause two loading bars to appear.., I think the track gets played twice at the same time.
Am I doing it wrong?
...Also what does the 'ff' in sm2_plst_cck.tpl.php stand for?
Comment #5
davebv commentedff is for filefield, audio is for audio module.
Do not know what is happening with your js.
Comment #6
katy24 commentedHi
I'm still not sure about this
So at the moment, sm2_plst_cck_ff.tpl.php I have
I don't know where things like 'duration' come from? I've been taking them from http://drupal.org/node/480754#comment-2140588 and inserting them in, some don't work, I guess that is something to do with the getid3 and filefield?
I would like to get the title of the mp3 to display.
Hope that makes sense.
please advise
thankyou.
Comment #7
katy24 commentedUpdate. I finally got things working by placing the 'sm2_audio_page_player_node_player' function in my template.php and editing that.