Simple Customizable MP3 Player

Music BBCode Database
BBCodes for embedding Music players
There is no support here! Only Read Access!
User avatar
BBCode Bot
BBCoder IV
BBCoder IV
Posts: 239
Joined: 04 Mar 2010, 15:04
Location: bbcode table

Simple Customizable MP3 Player

Post by BBCode Bot »

Simple Customizable MP3 Player

Author: halo2pac
Description: Simple MP3 Player. You can change it's colors to match your forum's style.
Attached file:
scmp3player.zip
(5.26 KiB) Downloaded 3602 times
Download, unzip and upload the file to your images folder.

BBCode:

Code: Select all

[scmp3]{URL}[/scmp3]
HTML:

Code: Select all

<object type="application/x-shockwave-flash" data="images/scmp3player.swf" id="mp3player1" height="24" width="290">
   <param name="movie" value="images/scmp3player.swf">
   <param name="FlashVars" value="playerID=1&bg=0x9DA5BF&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0x394670&rightbghover=0x999999&righticon=0xE7E7EF&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&loop=no&autostart=no&soundFile={URL}">
   <param name="quality" value="high">
   <param name="menu" value="false">
   <param name="wmode" value="transparent">
</object>
Helpline:

Code: Select all

SCMP3: [scmp3]Link to mp3[/scmp3]
Example:

Code: Select all

[scmp3]http://music.incompetech.com/royalty-free/Stringed%20Disco.mp3[/scmp3]
Demo:
[scmp3]images/1.mp3[/scmp3]
User avatar
Georgio
BBCoder II
BBCoder II
Posts: 53
Joined: 06 Mar 2010, 19:10
Location: Cabanes, Spain
Contact:

Re: Simple Customizable MP3 Player

Post by Georgio »

I can't add this BBcode; when i put the html i have this code:

Error General

Code: Select all

SQL ERROR [ mysqli ]

Out of range value adjusted for column 'bbcode_id' at row 1 [1264]

SQL

INSERT INTO phpbb_bbcodes (bbcode_tag, bbcode_match, bbcode_tpl, display_on_posting, bbcode_helpline, first_pass_match, first_pass_replace, second_pass_match, second_pass_replace, bbcode_id) VALUES ('scmp3', '[scmp3]{URL}[/scmp3]', '<object type=\"application/x-shockwave-flash\" data=\"images/scmp3player.swf\" id=\"mp3player1\" height=\"24\" width=\"290\">\n <param name=\"movie\" value=\"images/scmp3player.swf\">\n <param name=\"FlashVars\" value=\"playerID=1&bg=0x9DA5BF&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0x394670&rightbghover=0x999999&righticon=0xE7E7EF&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&loop=no&autostart=no&soundFile={URL}\">\n <param name=\"quality\" value=\"high\">\n <param name=\"menu\" value=\"false\">\n <param name=\"wmode\" value=\"transparent\">\n</object>', 0, 'SCMP3: [scmp3]Link to mp3[/scmp3]', '!\\[scmp3\\](?:([a-z][a-z\\d+\\-.]*:/{2}(?:(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@|]+|%[\\dA-F]{2})+|[0-9.]+|\\[[a-z0-9.]+:[a-z0-9.]+:[a-z0-9.:]+\\])(?::\\d*)?(?:/(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@|]+|%[\\dA-F]{2})*)*(?:\\?(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@/?|]+|%[\\dA-F]{2})*)?(?:#(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@/?|]+|%[\\dA-F]{2})*)?)|(www\\.(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@|]+|%[\\dA-F]{2})+(?::\\d*)?(?:/(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@|]+|%[\\dA-F]{2})*)*(?:\\?(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@/?|]+|%[\\dA-F]{2})*)?(?:#(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@/?|]+|%[\\dA-F]{2})*)?))\\[/scmp3\\]!ie', '\'[scmp3:$uid]\'.$this->bbcode_specialchars((\'${1}\') ? \'${1}\' : \'http://${2}\').\'[/scmp3:$uid]\'', '!\\[scmp3:$uid\\](?i)((?:[a-z][a-z\\d+\\-.]*:/{2}(?:(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@|]+|%[\\dA-F]{2})+|[0-9.]+|\\[[a-z0-9.]+:[a-z0-9.]+:[a-z0-9.:]+\\])(?::\\d*)?(?:/(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@|]+|%[\\dA-F]{2})*)*(?:\\?(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@/?|]+|%[\\dA-F]{2})*)?(?:#(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@/?|]+|%[\\dA-F]{2})*)?)|(?:www\\.(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@|]+|%[\\dA-F]{2})+(?::\\d*)?(?:/(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@|]+|%[\\dA-F]{2})*)*(?:\\?(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@/?|]+|%[\\dA-F]{2})*)?(?:#(?:[a-z0-9\\-._~\\!$&\'()*+,;=:@/?|]+|%[\\dA-F]{2})*)?))(?-i)\\[/scmp3:$uid\\]!s', '<object type=\"application/x-shockwave-flash\" data=\"images/scmp3player.swf\" id=\"mp3player1\" height=\"24\" width=\"290\">\n <param name=\"movie\" value=\"images/scmp3player.swf\">\n <param name=\"FlashVars\" value=\"playerID=1&bg=0x9DA5BF&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0x394670&rightbghover=0x999999&righticon=0xE7E7EF&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&loop=no&autostart=no&soundFile=${1}\">\n <param name=\"quality\" value=\"high\">\n <param name=\"menu\" value=\"false\">\n <param name=\"wmode\" value=\"transparent\">\n</object>', 128)

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/acp/acp_bbcodes.php
LINE: 223
CALL: dbal_mysqli->sql_query()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_bbcodes->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Simple Customizable MP3 Player

Post by cisco007 »

take a look here, and run the sql query posted on the topic and it should solve your problem!

http://www.phpbb.com/community/viewtopi ... 6&t=727515
User avatar
Georgio
BBCoder II
BBCoder II
Posts: 53
Joined: 06 Mar 2010, 19:10
Location: Cabanes, Spain
Contact:

Re: Simple Customizable MP3 Player

Post by Georgio »

cisco007 » 17 Apr 2010, 15:47 wrote:take a look here, and run the sql query posted on the topic and it should solve your problem!

http://www.phpbb.com/community/viewtopi ... 6&t=727515
This SQL Query ?

Code: Select all

ALTER TABLE `phpbb_bbcodes` CHANGE `bbcode_id` `bbcode_id` SMALLINT( 3 ) NOT NULL DEFAULT '0'
[hrc=blue]1[/hrc]

Yes, that sql query! i solved the problem, thanks !
Last edited by Georgio on 17 Apr 2010, 16:03, edited 1 time in total.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Simple Customizable MP3 Player

Post by cisco007 »

yeah, the problem is that the bbcodes table has tinynt in it and only allows a certain number of bbcodes, changing it to SMALLINT increases the number! I thought we had that here but, i guess it was in the previous forum!
User avatar
Georgio
BBCoder II
BBCoder II
Posts: 53
Joined: 06 Mar 2010, 19:10
Location: Cabanes, Spain
Contact:

Re: Simple Customizable MP3 Player

Post by Georgio »

cisco007 » 17 Apr 2010, 16:16 wrote:yeah, the problem is that the bbcodes table has tinynt in it and only allows a certain number of bbcodes, changing it to SMALLINT increases the number! I thought we had that here but, i guess it was in the previous forum!
ohh my God, i don't now in phpbb3 there is a certain number of bbcodes.
now is fixed, but in future i'll get it again ?
Bonsley
BBCoder I
BBCoder I
Posts: 2
Joined: 18 Apr 2010, 03:16

Re: Simple Customizable MP3 Player

Post by Bonsley »

Hi, guy's. You wonderful people. :D

If I said I'd like for this player to automatically start playing, and keep playing/looping forever, what would I do? :o

Sorry for my poor English. :oops:

Bonsley. :lol:
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Simple Customizable MP3 Player

Post by cisco007 »

use this as the html replacement

Code: Select all

    <object type="application/x-shockwave-flash" data="images/scmp3player.swf" id="mp3player1" height="24" width="290">
       <param name="movie" value="images/scmp3player.swf">
       <param name="FlashVars" value="playerID=1&bg=0x9DA5BF&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0x394670&rightbghover=0x999999&righticon=0xE7E7EF&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&loop=yes&autostart=yes&soundFile={URL}">
       <param name="quality" value="high">
       <param name="menu" value="false">
       <param name="wmode" value="transparent">
    </object>
Bonsley
BBCoder I
BBCoder I
Posts: 2
Joined: 18 Apr 2010, 03:16

Re: Simple Customizable MP3 Player

Post by Bonsley »

You sir, are as cool as this guy.> 8-)

Thank you. :D

Bonsley. ;)
Jinger
BBCoder II
BBCoder II
Posts: 16
Joined: 18 Apr 2010, 10:04

Re: Simple Customizable MP3 Player

Post by Jinger »

i want orange skin :cry:
Locked