vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - BB Code MP3 Player (postion bar, volume control, play, pause, id3...), New: Popup (https://vborg.vbsupport.ru/showthread.php?t=235934)

Olli2k 02-14-2010 10:00 PM

BB Code MP3 Player (postion bar, volume control, play, pause, id3...), New: Popup
 
1 Attachment(s)
DEMO: http://hake-clan.de/forum/showthread...s-zum-abwinken
POPUP DEMO: http://hake-clan.de/forum/showthread...l=1#post195668
Standalone Player with automatic playlist based on MP3 files in a folder: Here

Just adds an easy to use post bb mp3 player to your vb4.

Installation
Upload all the files and folders from the zip package to your forum root folder.

Go to your admin cp and add a bb custom code.


Title: Mp3 Player
BB Code Tag Name: MP3
Replacement:
Code:

<object type="application/x-shockwave-flash" data="/misc/audio-player/player.swf" id="audioplayer" height="24" width="290">
<param name="movie" value="/misc/audio-player/player.swf">
<param name="FlashVars" value="playerID=audioplayer&amp;soundFile={param}">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>


Example
Code:

http://www.url.com/track.mp3
Description: Feel free to add anything what will promote your MP3 Player to your user. :)

Use {option}: No
Button Image:
Code:

images/editor/mp3_bb.png
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes

Hit "Save" and you are ready to go!

Additional Notes:
The wordpress player is developed by Martin Laine (http://wpaudioplayer.com).
You can add several options to the player. For a complete list please visit: http://wpaudioplayer.com/standalone.

For adding an option you have to edit the: <param name="FlashVars" value="playerID=audioplayer&amp;soundFile={param}" > line.
Example: <param name="FlashVars" value="option1=setting1&amp;option2=setting2&amp;playerID=audioplayer&amp;soundFile={param}">

***************
Popup Version: https://vborg.vbsupport.ru/showpost....05&postcount=5

***************
Troubleshooting:
  • If you got any trouble with the player is not showing up, just replace the relative path by an absolute path to your player.swf.
    Code:

    <object type="application/x-shockwave-flash" data="http://path/to/your/player.swf" id="audioplayer" height="24" width="290">
    <param name="movie" value="http://path/to/your/player.swf">

  • No more text displayed after the code tag: just add a </object> to the end of the BB replacement. At release this line was missin here. Sry!
  • Broken in vb 4.0.3 ??
    Change:
    Disable BB Code Within This BB Code: No
    Disable Smilies Within This BB Code: No
    Disable Word Wrapping Within This BB Code: No
    to:
    Disable BB Code Within This BB Code: Yes
    Disable Smilies Within This BB Code: Yes
    Disable Word Wrapping Within This BB Code: Yes
  • Param Error at saving the BB code: Just pass it, by clicking continue. It is just a format notice, actually there is no other way to solve it.

Boko577 02-16-2010 05:54 AM

Nice, but where can I actually find MP3 songs on the web? Haha

TimberFloorAu 02-16-2010 07:13 AM

Great work mate, and TOP tune on your demo !!!!!

Tagged

Olli2k 02-16-2010 11:35 AM

DEMO: http://hake-clan.de/forum/showthread...l=1#post195668

I did a popup version of this one now. So user can open the song and go on surfing while listening to the mp3.

Installtion: (i will only list the diffrence to the post in line version)

In the package there are now much more files. Feel free to edit the player.php Gfx for your style and forum. Upload all files to your forum root.

Title: MP3 Popup
BB Code Tag: mp3p (just if you want to use both versions of the player, otherwise you can choose mp3)

Replacement:
Code:

<a href="#" onClick="window.open('/misc/audio-player/player.php?mp3={param}','Player','width=300,height=140,scrollbars=no,location=no,resizable=no,left=50,top=50'); return false";><img src="/images/editor/playicon.png" width="81" height="24" border="0"></a>
Example:
Code:

[mp3p]http://url.de/track.mp3[/mp3p]

Button Image:
Code:

images/editor/mp3p_bb.png
Thats it.

Olli2k 02-16-2010 12:28 PM

Quote:

Originally Posted by Dr.osamA (Post 1983714)
for me not working

there not showing anything after i use code

you can try it in my forum at link

http://www.alra7ba.net/vb/showthread...layer?p=171900

user = vBulletin
pss= 123456

Waiting plzz

Seems that you did not upload the files to the correct folder.

I got a 404 for http://www.alra7ba.net/vb/misc/audio-player/player.swf

Olli2k 02-16-2010 12:56 PM

Ok,
pls try to adjust:

Code:

<object type="application/x-shockwave-flash" data="/misc/audio-player/player.swf" id="audioplayer" height="24" width="290">
<param name="movie" value="/misc/audio-player/player.swf"> <param name="FlashVars" value="playerID=audioplayer&amp;soundFile={param}">

to

Code:

<object type="application/x-shockwave-flash" data="http://www.alra7ba.net/vb/images/misc/audio-player/player.swf" id="audioplayer" height="24" width="290">
<param name="movie" value="http://www.alra7ba.net/vb/images/misc/audio-player/player.swf"> <param name="FlashVars" value="playerID=audioplayer&amp;soundFile={param}">


Dr.osamA 02-16-2010 01:03 PM

now it is ok

thank you very match man

Olli2k 02-16-2010 01:10 PM

Np,
but i dont understand that you can see the white background of the player, when it is small.

Could you pls try:

Code:

<param name="FlashVars" value="transparentpagebg=yes&amp;playerID=audioplayer&amp;soundFile={param}">
Player BG should match your bg now.

markwein 02-16-2010 01:39 PM

love it! works perfectly on my site.

Olli2k 02-16-2010 01:44 PM

Quote:

Originally Posted by Dr.osamA (Post 1983753)
no changes by this code

When i look at your html source code i see:

Code:

<br>
<object type="application/x-shockwave-flash" data="http://www.alra7ba.net/vb/images/misc/audio-player/player.swf" id="audioplayer" height="24" width="290">
<param name="movie" value="http://www.alra7ba.net/vb/images/misc/audio-player/player.swf">
<param name="FlashVars" value="transparentpagebg=yes&amp;playerID=audioplayer&amp;soundFile=urltofile">
<br>
<br>


is it possible that you forget to add these lines to the bb code?

Code:

<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">


Quote:

Originally Posted by Dr.osamA (Post 1983753)
other problem is :

when you have text ander or after the cod

[*MP3].......[*/MP3]

the text is inviable = not showing

try it

Do you mean
Code:

textblabla[mp3]url/to/file.mp3[/mp3]blablatext
Textblabla & blablatext are not in your post?

Olli2k 02-16-2010 02:55 PM

Quote:

Originally Posted by Dr.osamA (Post 1983782)
code what i useing now like this

PHP Code:

<object type="application/x-shockwave-flash" data="http://www.alra7ba.net/vb/images/misc/audio-player/player.swf" id="audioplayer" height="24" width="290">
<
param name="movie" value="http://www.alra7ba.net/vb/images/misc/audio-player/player.swf"> <param name="FlashVars" value="transparentpagebg=yes&amp;playerID=audioplayer&amp;soundFile={param}">
<
param name="quality" value="high"
<
param name="menu" value="false"
<
param name="wmode" value="transparent"

when i use the code
[*MP3].......[*/MP3]

and after it write anything , the post showing just bar of MP3

you can try it plzz feel free and try to add any post there ,use the code MP3

just the text after the code not showing


Wll ok, that was my fault. just have to practise a little bit of copy and paste.

Just missed the last line by c&p the code to vbulletin.org.

Just add a
Code:

</object>
add the end of the code and everything should work fine.

Big sorry for that.

milaszewski 02-18-2010 08:37 PM

automatic mp3 attachment player is needed...

Boko577 02-19-2010 01:36 AM

Where does each folder actually go in the forum root? Obviously the images folder doesn't actually go into it, you just move the picture into the right picture, but for misc, do you want us to put that in the misc images folder or just in the forum root as a new folder?

Olli2k 02-19-2010 11:39 AM

Quote:

Originally Posted by milaszewski (Post 1985914)
automatic mp3 attachment player is needed...

You can use the attachment url for the mp3 tag. Works fine.

Olli2k 02-19-2010 11:43 AM

Quote:

Originally Posted by Boko577 (Post 1986090)
Where does each folder actually go in the forum root? Obviously the images folder doesn't actually go into it, you just move the picture into the right picture, but for misc, do you want us to put that in the misc images folder or just in the forum root as a new folder?

Misc is a "new" folder in the forum root dir. I use this misc folder for several addons and plugins. Normally every developer wants to put a new folder in the forum root, but dont like this kind of blasted folders.

But you are free to put the files where you want, you just have to adjust the pathes in the tag code.

SoltanWorld 03-04-2010 05:36 PM

I have installed this and it works just i got error , when i press play This error would be shown : File Not Found What's the problem>

Olli2k 03-05-2010 09:51 AM

Quote:

Originally Posted by SoltanWorld (Post 1997139)
I have installed this and it works just i got error , when i press play This error would be shown : File Not Found What's the problem>

Well, without any exact description of the problem i can only "calculate" that there are "freepsaces" in your mp3 link. Example www.mp3test.com/this is a test.mp3 should bet www.mp3test.com/this_is_a_test.mp3. I will have a look for this problem next week, but it seems to be a "problem" of the flash player, which is not developed by me.

archet1337 03-05-2010 10:48 AM

This is absolutely brilliant! Thank you for sharing :)

rockintoon 03-11-2010 08:47 PM

Im having an issue with the pop up player working.
it pops up and says:
Forbidden
You don't have permission to access /misc/audio-player/player.php on this server.
Can you please help me fix it?

tendo 03-15-2010 10:57 PM

I had to use absolute url's for the location of the player too. Not sure why.... but it works :)

Great plugin!

mfbmike 03-17-2010 03:55 PM

Also had to edit the path but works great on my forum. Thanks. :)

chipc0i 03-24-2010 06:41 PM

auto play
add
Code:

<param name="FlashVars" value="playerID=audioplayer&amp;loader=0xC52C24&amp;autostart=yes&amp;soundFile={param}">

calvinnguyen 04-11-2010 08:19 AM

This code didn't work with vb4.0.3

Olli2k 04-13-2010 02:26 PM

Quote:

Originally Posted by calvinnguyen (Post 2019338)
This code didn't work with vb4.0.3

Sry there, but atm i have no working 4.0.3 installation of vB4. I will update in 2-3 weeks and then i will have a look for it.

junaid 04-13-2010 05:46 PM

VB4 4.0.3b it work fine
full url not work

rootsxrocks 04-15-2010 09:51 PM

Quote:

Originally Posted by Olli2k (Post 1983705)
DEMO: http://www.hake-clan.de/showthread.p...ull=1#post2484

I did a pop up version of this one now. So user can open the song and go on surfing while listening to the mp3.

Installation: (i will only list the difference to the post in line version)

In the package there are now much more files. Feel free to edit the player.php Gfx for your style and forum. Upload all files to your forum root.

Title: MP3 Popup
BB Code Tag: mp3p (just if you want to use both versions of the player, otherwise you can choose mp3)

Replacement:
Code:

<a href="#" onClick="window.open('/misc/audio-player/player.php?mp3={param}','Player','width=300,height=140,scrollbars=no,location=no,resizable=no,left=50,top=50'); return false";><img src="/images/editor/playicon.png" width="81" height="24" border="0"></a>
Example:
Code:

[mp3p]http://url.de/track.mp3[/mp3p]

Button Image:
Code:

images/editor/mp3p_bb.png
Thats it.

Im'sorry if Im just being dence, however I am very confused as to were this "additional code" for the popup goes.

I am able to get the MP3 bb code to work, but only with mp3's uploaded to the same folder as the player. Is this what I should expect?

I primarily would like to be able to play mp3 and wavs attachments, However A popup jukebox would be fantastic, If I could prevent downloads by non members.

Thank you for your work.

sulasno 04-16-2010 05:21 AM

tagged and thanks

Olli2k 04-16-2010 07:16 AM

Quote:

Originally Posted by rootsxrocks (Post 2021932)
Im'sorry if Im just being dence, however I am very confused as to were this "additional code" for the popup goes.

The is no additional code, it is a complete other "replacement". So just put in the whole code in the replacement box and it should work.

Quote:

Originally Posted by rootsxrocks (Post 2021932)
I am able to get the MP3 bb code to work, but only with mp3's uploaded to the same folder as the player. Is this what I should expect?

No, you should nor expect this. The Player is able to play everey MP3 file with a complete url with no freespaced in it. for example
Code:

[mp3]http://url.com/track_1.mp3[/mp3]
works, but
Code:

[mp3]http://url.com/track 1.mp3[ /mp3]
will not work.

Did you noticed this hint?
?If you got any trouble with the player is not showing up, just replace the relative path by an absolute path to your player.swf.


Quote:

Originally Posted by rootsxrocks (Post 2021932)
I primarily would like to be able to play mp3 and wavs attachments, However A popup jukebox would be fantastic, If I could prevent downloads by non members.

I tested some attachment urls with the player and for me it worked. But you can never protect your files with this system! For the inline player there are some easy way, to get the mp3 url and in the popupversion you can easily get from the url. by using the attachment urls for the files you can prevent non member downloading your files but not your member who are allowd to download files.

A popup jukebox with bb code and multiple files seems to be impossible, because of the limited use of parameter in the standard system. But if you want to have a general jukebox for your site look at this: http://www.hake-clan.de/entry.php?2-...ist-generation!)

rootsxrocks 04-16-2010 06:26 PM

Thank you Olli2k,
I will try more mp3s, as the test ones did have spaces aka %20 I will attempt that again. However note that those with % 20 did play when they were within the same folder on the server.

Yes, I did notice and I was able to repair the absolute full path problem.

I will attempt the attachments again, however the URL isn't very simple to copy with the new attachment system.

Thank you for the Link, I was looking at that and may still use it. However I must worry about copyright, as I have an enemy that watches closely looking for mischief to report. Also I would like to be able to present local artist Play list who may have downloads for sale or in conflict with recording contracts, were I need to protect from becoming a distributor of bootlegs., not the most important.

I do wish I could restrict the use of the auto play to myself alone. but I'm not sure how to do that.
Again Thank you for your help, I will return after I try the suggestions

calvinnguyen 04-17-2010 08:01 AM

I had try to used
Code:

[mp3]http://url.com/track_1.mp3[/mp3]
but when I click play, it is show the message " file not found"

I give correct my files mp3 link correct, but still didn't work. I don't know why.

Note that before my forum upgrade to vb 4.0.3, it was working very well on vb 4.0.2.

Jazzinto 05-04-2010 07:16 PM

Quote:

Originally Posted by calvinnguyen (Post 2022588)
I had try to used
Code:

[mp3]http://url.com/track_1.mp3[/mp3]
but when I click play, it is show the message " file not found"

I give correct my files mp3 link correct, but still didn't work. I don't know why.

Note that before my forum upgrade to vb 4.0.3, it was working very well on vb 4.0.2.


Really it does not work with the versioin VB4.0.3, I have everything placed correctly and this is what goes out on having placed the post:

http://img64.imageshack.us/img64/9007/image1zy.jpg

Which can be the problem?


Thanks.

Chuta 05-07-2010 04:41 AM

It appears to be a vBulletin bug:

http://www.vbulletin.com/forum/proje...?issueid=37578

Orakk 05-07-2010 06:13 AM

Hosting the player swf locally this mod is working fine on 403pl1 for us but I do have a question.

An admin on one of our sites has asked me if the download link itself can be removed and just leave the player. Can this be done and if yes, how do I do this?

Cheers.

Olli2k 05-07-2010 07:25 AM

Quote:

Originally Posted by Orakk (Post 2032973)
Hosting the player swf locally this mod is working fine on 403pl1 for us but I do have a question.

An admin on one of our sites has asked me if the download link itself can be removed and just leave the player. Can this be done and if yes, how do I do this?

Cheers.

What do you mean by "hosting the swf locally"? Locally on your PC?

About the link: In the embedded version, there is no link you can see, if you don't open up the html code in the web-browser. In the pop-up player you can see the url, because it is an url parameter for the player.

Maybe it is possible to use an encryption for the link. In this case the bb code script has to encrypt the link and the player script has to decrypt it. Dont know if it is realizable...

And I'm still at 4.0.2, so i cant say anything to the problems seems to be there with the 4.0.3.

Orakk 05-07-2010 09:46 AM

1 Attachment(s)
Quote:

Originally Posted by Olli2k (Post 2032990)
What do you mean by "hosting the swf locally"? Locally on your PC?

About the link: In the embedded version, there is no link you can see, if you don't open up the html code in the web-browser. In the pop-up player you can see the url, because it is an url parameter for the player.

Maybe it is possible to use an encryption for the link. In this case the bb code script has to encrypt the link and the player script has to decrypt it. Dont know if it is realizable...

And I'm still at 4.0.2, so i cant say anything to the problems seems to be there with the 4.0.3.

Hosting player.swf locally is what I meant, oops. Not a problem there and using code below is working in all browsers for our crew. Our mp3 forum is out of public view so we don't need any specific permissions.

Code:

<vb:if condition="$attachment[attachmentextension] == mp3">
  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  align="middle" height="27" width="400">
    <param name="quality" value="best">
    <param name="allowScriptAccess" value="never">
    <param name="wmode" value="transparent">
    <param name="movie"  value="frtend/mp3_1.swf?audioUrl=attachment.php?{vb:raw  session.sessionurl}attachmentid={vb:raw  attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"  flashvars="playerMode=embedded" />
  <embed type="application/x-shockwave-flash" src="frtend/mp3_1.swf?audioUrl=attachment.php?{vb:raw  session.sessionurl}attachmentid={vb:raw  attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
  </object>
</vb:if>

What I need help with is how to have that swamp witch.mp3 in pic below not link to the mp3 as download but still leave the player functional. Like I say the player mod works fine & thanks, it's the download link above it is causing us some legal grief.

UnixGeek 05-09-2010 08:40 PM

Its not working for 4.0.3. Confirmed. There seems to be a bug with bb code. Some, please update if its working on 4.0.3.

syrn 05-10-2010 05:05 AM

Quote:

Originally Posted by Boko577 (Post 1983552)
Nice, but where can I actually find MP3 songs on the web? Haha

http://beemp3.coM

U CAN SEARCH MILLION OF SONGS HERE

syrn 05-10-2010 05:55 AM

Quote:

Originally Posted by SoltanWorld (Post 1997139)
I have installed this and it works just i got error , when i press play This error would be shown : File Not Found What's the problem>

same error here ,

http://www.apnaspot.com/misc/audio-player/player.swf

the player disply fine but its not playing

plz check this
http://www.apnaspot.com/showthread.p...=9266#post9266

and i use this mp3 file, its fine working file like

http://soundxx.mp3pk.com/indian/bluf...mp3pk.com).mp3

plz solve this issue , i have 4.0.3

Olli2k 05-10-2010 12:53 PM

Quote:

Originally Posted by Orakk (Post 2033037)
Hosting player.swf locally is what I meant, oops. Not a problem there and using code below is working in all browsers for our crew. Our mp3 forum is out of public view so we don't need any specific permissions.

Code:

<vb:if condition="$attachment[attachmentextension] == mp3">
  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  align="middle" height="27" width="400">
    <param name="quality" value="best">
    <param name="allowScriptAccess" value="never">
    <param name="wmode" value="transparent">
    <param name="movie"  value="frtend/mp3_1.swf?audioUrl=attachment.php?{vb:raw  session.sessionurl}attachmentid={vb:raw  attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"  flashvars="playerMode=embedded" />
  <embed type="application/x-shockwave-flash" src="frtend/mp3_1.swf?audioUrl=attachment.php?{vb:raw  session.sessionurl}attachmentid={vb:raw  attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
  </object>
</vb:if>

What I need help with is how to have that swamp witch.mp3 in pic below not link to the mp3 as download but still leave the player functional. Like I say the player mod works fine & thanks, it's the download link above it is causing us some legal grief.

Well, i think you are at the wrong thread.

Upgraded my forum to 4.0.3 now and i ha've got no problems with the code at all.

@syrn
Try to use a file without special chars like "(" or ")". Atm i can't test Mp3 files because of a firewall here at work. Will try your test file later at home.

syrn 05-10-2010 01:53 PM

Quote:

Originally Posted by Olli2k (Post 2034530)
@syrn
Try to use a file without special chars like "(" or ")". Atm i can't test Mp3 files because of a firewall here at work. Will try your test file later at home.

thanx for reply, i did everything fine i think
but when i add any link of mp3 song its not working , thanx for quick answer and
looking help plz


All times are GMT. The time now is 01:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01600 seconds
  • Memory Usage 1,886KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (24)bbcode_code_printable
  • (1)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete