i build an advanced display block (css: upright40.tpl.php) to show music-cd-covers together with some advertising text. what i tried is to add a mp3-file to the content-type using the mp3player-module. So i added the field (field_mp45) with cck and also changed the view by adding the mp3-field.
So far so good. In the views-preview everything works fine. The music starts every time i hover over a cover-image.
Unfortunately i don't succeed in coding the template.php with the new variable for the advanced display block.
Can anybody tell me how to get the right php-code for the templates to embed the mp3-file?
I don't get the music to play.
Here is the variables-information that shows, that the mp3-file is loaded.
i suppose that i have to add something in the pre-process-functions - but my php is too poor.
I would appreciate very much any hint to bring any sound to the ddblocks.
Here is the variables-information that shows, that the mp3-file is loaded.
*
'news_items'
*
stdClass::__set_state(array(
'nid' => '36',
'node_title' => 'Musik für die Seele',
'node_data_field_pager_item_text_field_pager_item_text_value' => 'weiter',
'node_data_field_pager_item_text_nid' => '36',
'node_type' => 'ddblock_news_item',
'node_data_field_pager_item_text_field_slide_text_value' => 'Wohlfühlmusik für die Seele. Michael Reimann entlockt seinem Piano atemberaubend echte Bilder von leidenschaftlicher Intensität. Mit spielerischer Leichtigkeit erzeugt er eine knisternde Wohlfühl-Aura und erfüllt jeden Raum auf magische Weise mit Anmut und Eleganz. Musik, die unter die Haut geht, und deren traumhaft melodische Brillianz den Moment veredelt und ein wohltuend, edles Ambiente bereitet.',
'node_data_field_pager_item_text_field_image_fid' => '29',
'node_data_field_pager_item_text_field_image_list' => '1',
'node_data_field_pager_item_text_field_image_data' => 'a:4:{s:11:"description";s:0:"";s:8:"duration";N;s:6:"height";i:0;s:5:"width";i:0;}',
'node_revisions_body' => '',
'node_revisions_format' => '2',
'node_data_field_pager_item_text_field_mp45_fid' => '32',
'node_data_field_pager_item_text_field_mp45_list' => '1',
'node_data_field_pager_item_text_field_mp45_data' => 'a:4:{s:11:"description";s:0:"";s:8:"duration";d:34.8995000000000032969182939268648624420166015625;s:6:"height";i:0;s:5:"width";i:0;}',
'node_created' => '1236266149',
))
Comments
Comment #1
hans59 commented