Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Single player vs playlist works but I can't theme them seperately because of this...
In jplayer.tpl.php <div class="jp-type-playlist">
is called wether it's a single instance or playlist. This also happens in the dev version.
On single instance this should be <div class="jp-type-single">
. That way we can theme with css more efficiently, essentially making two different players.
Thanks for all your work!
Comment | File | Size | Author |
---|---|---|---|
#6 | single_mode-1780386-6.patch | 1006 bytes | kylesmith |
#3 | single_mode-1780386-3.patch | 1.03 KB | davidwbarratt |
Comments
Comment #1
drwits CreditAttribution: drwits commentedfound a fix here http://drupal.org/node/1289016#comment-5580530
but this should really be fixed... seems like a big issue.
thanks again.
Comment #2
Jorrit CreditAttribution: Jorrit commentedShouldn't
jplayer.tpl.php
contain<div class="jp-type-<?php print $mode; ?>">
instead of just<div class="jp-type-playlist">
. Visually, this seems to work, but the audio file doesn't play anymore when I click the play button.Comment #3
davidwbarratt CreditAttribution: davidwbarratt commentedThe attached patch fixes the class with jorritt's suggestion above, and also fixes the play button issue in jplayer.js when the class is changed to "jp-type-single".
Please test the patch and see if it works for you.
thanks!
david
Comment #4
pandaPowder CreditAttribution: pandaPowder commentedI just ran across this same thing and I was extremely surprised to see that it was hard coded in the template. Verified that the patch worked.
Comment #5
vchen CreditAttribution: vchen commentedManually applied patch and the single class is working along with play button.
However, when using patch command with SVN, this happened:
patch < single_mode-1780386-3.patch
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/theme/jplayer.js b/theme/jplayer.js
|index cf93b37..c086df1 100644
|--- a/theme/jplayer.js
|+++ b/theme/jplayer.js
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 18
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/theme/jplayer.tpl.php b/theme/jplayer.tpl.php
|index 420e4d1..80f543e 100644
|--- a/theme/jplayer.tpl.php
|+++ b/theme/jplayer.tpl.php
--------------------------
File to patch: y
y: No such file or directory
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
Not sure if I should have used -pnumber. but I did try -p0 and it had the same result.
Comment #6
kylesmith CreditAttribution: kylesmith commentedI also had trouble applying davidwbarratt's patch from #3, so I re-created it. This patch is working with the current 2.x-dev code.
Comment #7
kvnm CreditAttribution: kvnm commentedWas just about to submit the patch in #6 -- works great.
Comment #9
markie CreditAttribution: markie at Mediacurrent commentedApplied patch #6 plus added a change in the info section.