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

CommentFileSizeAuthor
SM-drupal.jpg49.89 KBkaty24

Comments

davebv’s picture

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

katy24’s picture

Hi

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

davebv’s picture

If 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

<a href="<?php print base_path() . $element[$key]['#item']['filepath'] ;?>">
	            <?php print ($element[$key]['#item']['data']['description'] ? $element[$key]['#item']['data']['description'] : $element[$key]['#item']['filename'] ) ;?>
	          </a>

Same for the audio tpl.php.

katy24’s picture

Okay 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?

davebv’s picture

ff is for filefield, audio is for audio module.

Do not know what is happening with your js.

katy24’s picture

Hi

I'm still not sure about this

So at the moment, sm2_plst_cck_ff.tpl.php I have

 <a href="<?php print base_path() . $element[$key]['#item']['filepath'] ;?>">
      <?php print ($element[$key]['#item']['data']['description'] ? $element[$key]['#item']['data']['description'] : $element[$key]['#item']['data']['duration']) ;?>
      </a> 

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.

katy24’s picture

Update. I finally got things working by placing the 'sm2_audio_page_player_node_player' function in my template.php and editing that.