[BETA] jcfplayer: mp3 Flash player

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
jcfrog
Registered User
Posts: 9
Joined: Fri Mar 17, 2006 4:39 pm

[BETA] jcfplayer: mp3 Flash player

Post by jcfrog » Tue Mar 21, 2006 8:53 am

MOD Title: jcfplayer
MOD Description: Super light Flash MP3 player for phpBB forums
MOD Version: let's says 0.0.1

MOD Download: http://www.choain.fr/jcfplayer
(all details on this site)


Hello everyone,

I'm not sure this kind of "plugin" doesn't already exist.
Well, I needed one and didn't find it, so I made it.

No advanced feature: couldn't make it simplier....

Please let me know me if this works for you and if you think it might interest the phpBB community.

So what do you think :?:

Best regards,

jcfrog

Stefan_Mordana
Registered User
Posts: 127
Joined: Fri May 27, 2005 3:15 pm
Contact:

Post by Stefan_Mordana » Tue Mar 21, 2006 3:54 pm

Brillaint mod, it works Perfect Thx jcfrog :D :D :D
http://www.mordana.co.uk
Please take a Visit or even better sign up

shotgun000
Registered User
Posts: 116
Joined: Sun Feb 05, 2006 1:57 am

Post by shotgun000 » Tue Mar 21, 2006 5:33 pm

Excellent mod, works great! 8)

My only suggestion would be to add some buttons to the standard bb codes, so that a simple mouse click will insert the mp3 tags.

Will this work for other audio formats?

jcfrog
Registered User
Posts: 9
Joined: Fri Mar 17, 2006 4:39 pm

Post by jcfrog » Wed Mar 22, 2006 7:11 am

sorry, no other audio format allowed. Just MP3.

but are there other format? :wink:

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3467
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer » Sun Mar 26, 2006 10:02 pm

Actually many people people consider Ogg better than mp3. Search for ogg vorbis.
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- » Mon Mar 27, 2006 8:14 am

How about a volume control? I find that very important in flash movies. :wink:

jcfrog
Registered User
Posts: 9
Joined: Fri Mar 17, 2006 4:39 pm

Post by jcfrog » Mon Mar 27, 2006 5:25 pm

do you think so?
i was not sure. I never use them actually.

but why not, let's say it's open...

jcfrog
Registered User
Posts: 9
Joined: Fri Mar 17, 2006 4:39 pm

Post by jcfrog » Mon Mar 27, 2006 5:36 pm

do you think so?
i was not sure. I never use them actually.

but why not, let's say it's open...

Calx
Registered User
Posts: 8
Joined: Sun Mar 12, 2006 12:16 pm

Post by Calx » Mon Apr 24, 2006 8:54 am

This is fantastic, just what i needed, is there any way you would part with the .fla? I'd love do reskin it. I'd still credit you on the site of course.

cavallino
Registered User
Posts: 317
Joined: Thu Aug 04, 2005 7:06 am

Post by cavallino » Mon Apr 24, 2006 2:30 pm

great!

jcfrog
Registered User
Posts: 9
Joined: Fri Mar 17, 2006 4:39 pm

Post by jcfrog » Wed Apr 26, 2006 6:52 pm

Calx wrote: This is fantastic, just what i needed, is there any way you would part with the .fla? I'd love do reskin it. I'd still credit you on the site of course.



let me think about it... :)

actually I wanted to propose new skins but as it didn't seem to interest many people, i was gone to other projects.

i'm gonna think about it.

promised!

User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

easy

Post by rtrev64 » Mon May 01, 2006 4:28 am

seems easy enough but mine is not working..

function bbencode_first_pass_pda($text, $uid, $open_tag, $close_tag, $close_tag_new, $mark_lowest_level, $func, $open_regexp_replace = false)
// JCFPluginMarker =============================== Start
// [MP3] and [/MP3]
$text = bbencode_first_pass_pda($text, $uid, '[mp3]', '[/mp3]', '', false, '');
// JCFPluginMarker =============================== End
{

I think all files are uploaded but I dont see nothing on my page..I dont know if the code I pasted along this post is the reason why?

http://www.roberttrevino.com/test/

^Andy^
Registered User
Posts: 28
Joined: Tue Oct 19, 2004 6:29 am

Post by ^Andy^ » Mon May 01, 2006 7:43 pm

shotgun000 wrote: Excellent mod, works great! 8)

My only suggestion would be to add some buttons to the standard bb codes, so that a simple mouse click will insert the mp3 tags.


Easy enough (backup the files first in case I missed anything out or it doesnt work on your set up)...

Open forum root privmsg.php

Find..

Code: Select all

'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
After Add..

Code: Select all

'L_BBCODE_M_HELP' => $lang['bbcode_m_help'],
Open forum root posting.php

Find..

Code: Select all

'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
After Add..

Code: Select all

'L_BBCODE_M_HELP' => $lang['bbcode_m_help'],
Open Language Lang_main.php

Find..

Code: Select all

$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
After Add..

Code: Select all

$lang['bbcode_m_help'] = 'Insert mp3: [mp3]http://mp3_url[/mp3]  (alt+m)';
Open Templates Posting_body.tpl

Find...

Code: Select all

f_help = "{L_BBCODE_F_HELP}";
After Add..

Code: Select all

m_help = "{L_BBCODE_M_HELP}";
Find...

Code: Select all

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','');[/code]
Change to...

Code: Select all

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[mp3]','[/mp3]');[/code]

Find...

Code: Select all

<td><span class="genmed"><input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /></span></td>
After Add..

Code: Select all

<td><span class="genmed"><input type="button" class="button" accesskey="m" name="addbbcode18" value="MP3" style="width: 40px"  onClick="bbstyle(18)" onMouseOver="helpline('m')" /></span></td>
Find... (multiple results so change them all within this file)

Code: Select all

<td colspan="9"> 
Replace with...

Code: Select all

<td colspan="10"> 
Find... (multiple results so change them all within this file)

Code: Select all

<table width="450"
Replace with...

Code: Select all

<table width="500"

User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

still nothing

Post by rtrev64 » Wed May 03, 2006 12:59 am

I just cant see anything at my page, I fowllowed directions.. please help..

This is where I wanted to test the player..

http://www.roberttrevino.com/test/

^Andy^
Registered User
Posts: 28
Joined: Tue Oct 19, 2004 6:29 am

Post by ^Andy^ » Wed May 03, 2006 5:47 am

I receive an error when attempting to post on your test forum..

Code: Select all

Parse error: parse error, unexpected T_VARIABLE, expecting '{' in /home/rtrev64/public_html/test/includes/bbcode.php on line 325
Check the changes that you made to bbcode.php and make sure that they match the following..

In includes/bbcode.php file:

Find :

Code: Select all

// [code] and 
for posting code (HTML, PHP, C etc etc) in your posts.
$text = bbencode_second_pass_code($text, $uid, $bbcode_tpl);[/code]
Insert after:

Code: Select all

// JCFPluginMarker =============================== Start 
$text = str_replace("[mp3:$uid]", '<object type="application/x-shockwave-flash" data="plugin/jcfplayer.swf" width="310" height="30" id="audioplayer1"><param name="movie" value="plugin/jcfplayer.swf" /><param name="FlashVars" value="soundFile=', $text);
$text = str_replace("[/mp3:$uid]", '" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="wmode" value="transparent" /></object>', $text);
// JCFPluginMarker =============================== End
Find :

Code: Select all

function bbencode_first_pass($text, $uid)
{
// pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
// This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it.
$text = " " . $text;
Insert after :

Code: Select all

// JCFPluginMarker =============================== Start
// [MP3] and [/MP3] 
$text = bbencode_first_pass_pda($text, $uid, '[mp3]', '[/mp3]', '', false, '');
// JCFPluginMarker =============================== End

Post Reply

Return to “[2.0.x] MODs in Development”