Closed (fixed)
Project:
Tiny Player
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 May 2008 at 19:42 UTC
Updated:
10 Jun 2008 at 14:35 UTC
hello
tinyplayer works excellent (thanks)
i want to use the player in a small "googlemap-popup" generated by gmaps. normally the complete teaser of a node is shown there.
this works, but the replacement of an audiofield with tinyplayer doesn't work ...
i know, this is a real special problem and it's not a problem of tinyplayer (more dependencies between the modules or some javascript/weight stuff, but maybe you have an idea ...
greetings momper
Comments
Comment #1
konsumer commentedThis sounds like a really interesting usage of the module.
Without trying any code, or setting up a dev version of your setup, I would look in 3 places first to find the solution, any one of them might help.
Make sure that the "field display" section for the content-type under "teaser" is set to tinyplayer. You probably already did this, but it may work as expected, right out of the box.
If you already did this, or it didn't work:
In your theme for the teaser section (try using contemplate, it makes this sort of thing a bit easier) you can call the view function directly like this:
You can use the contemplate UI to figure out what var should be put in, instead of $file_url.
Also, make sure to look at the field var in contemplate, I think it should put the same stuff in 'view' or something like that, so you can just print that instead.
If that doesn't work:
Have a look at the tinyplayer_view() function in tinyplayer.module, to see how it works. You can put what you need in your teaser template, and even bypass using swfobject completely (look at the generated HTML from swfobject on a regular node in firebug to get an idea of what it should look like) This isn't recommended, because IE requires the user to click, if it isn't generated by javascript, but may act as a last resort if you just can't get swfobject to play nice with gmaps.
Let me know how it works out.
Comment #2
momper commentedhello konsumer,
A)
Make sure that the "field display" section for the content-type under "teaser" is set to tinyplayer. You probably already did this, but it may work as expected, right out of the box.
yes -> this i tried before, but it didn't work ...
B)
<?php print tinyplayer_view($file_url); ?>this worked fine - this is the rapid test:
C) fortunately i didn't need this :)
thanks really a lot!!!!
greetings momper
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.