Admin Admin
Tổng số bài gửi : 305 Registration date : 06/04/2007
| Tiêu đề: Stream Thu Apr 19, 2007 2:47 pm | |
| param name="Filename" value="musics/Ibelieveinyou.wma" - Code:
-
## EasyMod 0.0.6 compliant ################################################################# ## MOD Title: Streaming audio BBcode Mod ## MOD Author: davidls <davidls14> (David Smith) http://www27.brinkster.com/bb2c ## MOD Description: adds a stream bbcode tag to your forum for the windows media player plugin ## the following file formats are supported with the wmp plugin: ## wma, mp3, wav, midi, au, wax, asf, asx, wm, wmx, wmv, wvx, ## avi, mpeg, mpg, mp2, mpe, m1v, mpv2, mp2v, mpa, m3u, mid, ## rmi, ivf, aif, aifc, aiff, snd ## MOD Version: 2.0.2 ## ## Installation Level: easy ## Installation Time: 30 seconds (that's how long it took me) ## Files To Edit: bbcode.tpl, bbcode.php ## Included Files: n/a ## Generator: Mod Maker.net [alpha 1.0.957.14686] ################################################################# ## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ ################################################################# ## ## Author Notes: ## This mod is ©2002 David Smith, All Rights Reserved ## Be sure to edit all templates you have loaded ## Does not show the video object, so you can load and listen to, but not ## view videos. ## This version has autoplay turned off, it can eaisly be turned back on in bbcode.tpl ## ################################################################# ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD #################################################################
# #-----[ OPEN ]------------------------------------------ # includes/bbcode.php # #-----[ FIND ]------------------------------------------ # $bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']); # #----[ AFTER, ADD ]----------------------------------------- # //Begin Strean Mod Copyright David Smith 2002 $bbcode_tpl['stream'] = str_replace('{URL}', '\\1', $bbcode_tpl['stream']); # #-----[ FIND ]------------------------------------------ # // [email]user@domain.tld[/email] code.. $patterns[5] = "#\[email\]([a-z0-9\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si"; $replacements[5] = $bbcode_tpl['email']; # #----[ AFTER, ADD ]----------------------------------------- # Note: you may need to change array number if used with other BBcode mods # //[ stream ]and[ /stream ]for streaming audio. $patterns[6] = "#\[stream:$uid\](.*?)\[/stream:$uid\]#si"; $replacements[6] = $bbcode_tpl['stream']; # #-----[ FIND ]------------------------------------------ # // [img]image_url_here[/img] code.. $text = preg_replace("#\[img\](http(s)?://)([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+]+)\[/img\]#si", "[img:$uid]\\1\\3[/img:$uid]", $text); # #----[ AFTER, ADD ]----------------------------------------- # //[ stream]image_url_here[/stream ]code.. $text = preg_replace("#\[stream\](([a-z]+?)://([^, \n\r]+))\[/stream\]#si", "[stream:$uid]\\1[/stream:$uid]", $text); # #-----[ OPEN ]------------------------------------------ # templates/subSilver/bbcode.tpl # #-----[ FIND ]------------------------------------------ # <BEGIN><a href="mailto:{EMAIL}">{EMAIL}</A><END>
# #----[ AFTER, ADD ]----------------------------------------- # <BEGIN><object> <param> <param> <param> <param> <param> <param> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" src="{URL}"> </embed> </object><END> # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM | |
|