array(
'image' => 'jwp',
'code' => 'jwp',
'before' => '[jwp=425,344]',
'after' => '[/jwp]',
'description' => $txt['jwplayer']
),
/* array(
'image' => 'jwp',
'code' => 'jwp',
'before' => '[jwp=425,344]',
'after' => '[/jwp]',
'description' => $txt['jwplayer']
),
*/
Just a quick comment... The instructions (1.1.11, default) for manual installation are:
Move the included file "player.swf" to "./Themes/default".
Move the included file "swfobject.js" to "./Themes/default".
Move the included file "yt.js" to "./Themes/default".
Move the included file "jwp.gif" to "./Themes/default/images/bbc"
There is no "yt.js" in the zip, but there is a "yt.swf". I'm sure that's what you meant, but I thought you might not mind if I pointed it out, in case you wanted to make a slight change in the parsing instructions?
:)
ETA: Great mod; works beautifully. Thank you.
I didn't see this addressed, but I'm wondering about any plans to add the ability to add other JWPlayer parameters like image, autostart, skin, etc.)
Is it safe to assume that I can go to the source code added and hardcode those values if they are consistent throughout the forum (and point to my licensed JWPlayer if I want?)
Thanks,
Bob
i have just install this mod but i don't know how to upload mp3 Files ?? please guide meInstall an ftp client software in your pc and the rest is easy.
I made a modified version for my demo site with image parameter but you can add any parameter you want at your site and if you are kind enough you can post here any change you make as long it is for the non-commercial version of jw5.
Yes you can do changes in the code to point to your licensed JWPlayer.
array(
'image' => 'jwp',
'code' => 'jwp',
'before' => '[jwp=width,height,image]',
'after' => '[/jwp]',
'description' => $txt['jwplayer']
),
/Sources/Subs.php array(
'tag' => 'jwp',
'type' => 'unparsed_commas_content',
'content' => '<object type="application/x-shockwave-flash" data="' . $settings['default_theme_url'] . '/player.swf" width="$2" height="$3"><param name="movie" value="' . $settings['default_theme_url'] . '/player.swf" /><param name="AllowFullScreen" value="true" /><param name="AllowScriptAccess" value="always" /><param name="WMode" value="transparent" /><param name="FlashVars" value="file=$1&image=$4" />$1</object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
elseif (strpos($data[0], \'http://\') !== 0 && strpos($data[0], \'https://\') !== 0)
$data[0] = \'http://\' . $data[0];
'),
'disabled_content' => '<a href="$1" target="_blank" class="new_win">$1</a>',
),
'jwp' => array('code' => 'jwp', 'before' => '[jwp=width,height,image]', 'after' => '[/jwp]', 'description' => $txt['jwplayer']),
/Sources/Subs.php array(
'tag' => 'jwp',
'type' => 'unparsed_commas_content',
'content' => '<object type="application/x-shockwave-flash" data="' . $settings['default_theme_url'] . '/player.swf" width="$2" height="$3"><param name="movie" value="' . $settings['default_theme_url'] . '/player.swf" /><param name="AllowFullScreen" value="true" /><param name="AllowScriptAccess" value="always" /><param name="WMode" value="transparent" /><param name="FlashVars" value="file=$1&image=$4" />$1</object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
elseif (strpos($data[0], \'http://\') !== 0 && strpos($data[0], \'https://\') !== 0)
$data[0] = \'http://\' . $data[0];
'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
8: Undefined variable: settings
File: /home/xxxxxx/public_html/Sources/Subs.php
Line: 1294
array(
'tag' => 'jwp',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object type="application/x-shockwave-flash" data="' . $settings['default_theme_url'] . '/player.swf" width="$2" height="$3"><param name="movie" value="' . $settings['default_theme_url'] . '/player.swf" /><param name="AllowFullScreen" value="true" /><param name="AllowScriptAccess" value="always" /><param name="WMode" value="transparent" /><param name="FlashVars" value="file=$1" />$1</object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
elseif (strpos($data[0], \'http://\') !== 0 && strpos($data[0], \'https://\') !== 0)
$data[0] = \'http://\' . $data[0];
'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
'content' => '<object type="application/x-shockwave-flash" data="' . $settings['default_theme_url'] . '/player.swf" width="$2" height="$3"><param name="movie" value="' . $settings['default_theme_url'] . '/player.swf" /><param name="AllowFullScreen" value="true" /><param name="AllowScriptAccess" value="always" /><param name="WMode" value="transparent" /><param name="FlashVars" value="file=$1" />$1</object>',
global $txt, $scripturl, $context, $modSettings, $user_info;
global $txt, $scripturl, $context, $modSettings, $user_info, $settings;
http://askusaquestion.net/index.php?board=53.0
jw player mode http://custom.simplemachines.org/mods/index.php?mod=2529 board.
I've added videos has opened firefox. but it also does not open explorer.
I've added links to videos on their site explorer is opened, but my explorer does not open my SMF forum.
Do smf jw player problem? Thank you.
[jwp=425,344,image]http://www.sslazio.it/images/stories/videos/conferenza zarate.flv[/jwp]
[jwp=425,344,http://www.sslazio.it/components/com_gk2_photoslide/images/thumbm/967694zarate_20conf.jpg]http://www.sslazio.it/images/stories/videos/conferenza zarate.flv[/jwp]
Updated for 2.0 RC5
[jwp=425,344,image]ftp://prodigal@ftp.XXXXXXXforum.XXXXXX.com/public_html/Fox%20News%Hacked_.mp4[/jwp]
Is there anyway I can only make this available to admins only?
if (empty($modSettings['enableEmbeddedFlash']))
$disabled_tags[] = 'flash';
if (!$context['user']['is_admin'])
$disabled_tags[] = 'jwp';
In file /Sources/Subs-Editor.php
Find:Code: [Select]if (empty($modSettings['enableEmbeddedFlash']))
$disabled_tags[] = 'flash';
Add after:Code: [Select]if (!$context['user']['is_admin'])
$disabled_tags[] = 'jwp';
Bump!
It didn't work. I made a test account and it is still visible to regular members.
is this mod working on smf 2.0.11?
doesnt work for me
I know this post is old but I so want to use jplayer on my ebook site..I can then put evrything in one post. the problem is how can I add more than one link from libriVox? Is thre a way to have a playlist with this mod?