################################################################# ## Mod Title: Glow and Shadow effects BBcode Mod ## Mod Version: 2.0.0 ## Author: David Smith davidls14@yahoo.com.au - http://www27.brinkster.com/bb2c ## Description: adds a glow and shadow bbcode tags to your forum ## ## Installation Level: easy ## Installation Time: 1 minute ## 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['color_open'] = str_replace('{COLOR}', '\\1', $bbcode_tpl['color_open']); # #-----[ Add after ]------------------------------------------ # //Begin Glow Shadow Mod Copyright David Smith 2002 $bbcode_tpl['glow_open'] = str_replace('{GLOWCOLOR}', '\\1', $bbcode_tpl['glow_open']); $bbcode_tpl['shadow_open'] = str_replace('{SHADOWCOLOR}', '\\1', $bbcode_tpl['shadow_open']); # #-----[ Find ]------------------------------------------ # // [i] and [/i] for italicizing text. $text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text); $text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text); # #-----[ Add after ]------------------------------------------ # // [glow=red] and [/glow] for glowing text. $text = preg_replace("/\[glow=(\#[0-9A-F]{6}|[a-z]+):$uid\]/si", $bbcode_tpl['glow_open'], $text); $text = str_replace("[/glow:$uid]", $bbcode_tpl['glow_close'], $text); // [shadow=red] and [/shadow] for glowing text. $text = preg_replace("/\[shadow=(\#[0-9A-F]{6}|[a-z]+):$uid\]/si", $bbcode_tpl['shadow_open'], $text); $text = str_replace("[/shadow:$uid]", $bbcode_tpl['shadow_close'], $text); # #-----[ Find ]------------------------------------------ # // [i] and [/i] for italicizing text. $text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text); # #-----[ Add after ]------------------------------------------ # // [glow=red] and [/glow] for glowing text. $text = preg_replace("#\[glow=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/glow\]#si", "[glow=\\1:$uid]\\2[/glow:$uid]", $text); // [shadow=red] and [/shadow] for glowing text. $text = preg_replace("#\[shadow=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/shadow\]#si", "[shadow=\\1:$uid]\\2[/shadow:$uid]", $text); # #-----[ Open templates/your template/bbcode.tpl ]------------------------------------------ # # #-----[ Find ]------------------------------------------ # {EMAIL} # #-----[ Add after ]------------------------------------------ # # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM