#################################################################
## Mod Title: Streaming audio BBcode Mod
## Mod Version: 2.0.0
## Author: David Smith davidls14@yahoo.com.au - http://www27.brinkster.com/bb2c
## Description: adds a stream bbcode tag to your forum for the windows media player plugin
##
## 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
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites without the direct permission of the author
#################################################################
##
## Author Note:
## This mod is ©2002 David Smith, All Rights Reserved
## Be sure to edit all templates you have loaded
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ Open includes/bbcode.phpex ]------------------------------------------
#
#
#-----[ Find ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ Add after ]------------------------------------------
#
//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'];
#
#-----[ Add after ]------------------------------------------
Note you may need to change array number if used with other BBcode mods
#
// [stream] and [/stream] for streaming audio.
// This one gets first-passed..
$patterns[6] = "#\[stream:$uid\](.*?)\[/stream:$uid\]#si";
$replacements[6] = $bbcode_tpl['stream'];
#
#-----[ Find ]------------------------------------------
#
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\](([a-z]+?)://([^ \n\r]+?))\[/img\]#si", "[img:$uid]\\1[/img:$uid]", $text);
#
#-----[ Add after ]------------------------------------------
#
// [stream]image_url_here[/stream] code..
$text = preg_replace("#\[stream\](([a-z]+?)://([^, \n\r]+))\[/stream\]#si", "[stream:$uid]\\1[/stream:$uid]", $text);
#
#-----[ Open templates/your template/bbcode.tpl ]------------------------------------------
#
#
#-----[ Find ]------------------------------------------
#
{EMAIL}
#
#-----[ Add after ]------------------------------------------
#
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM