maar het problem is nu, deze werkt niet. ik heb dan ook geen idee waarom het niet werkt.
Of is er een andere versie ?
Thnx alvast.
Dit is de mod,
Code: Selecteer alles
#################################################################
## Hack Title: Glow and Shadow effects BBcode Hack
## Hack 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
#################################################################
##gewoon typen [shadow=color] text [/shadow] and [glow=color] text [/glow].
## Author Note:
## This hack is ©2002 David Smith, All Rights Reserved
## Be sure to edit all templates you have loaded
##
#################################################################
## Before Adding This hack To Your Forum, You Should Back Up All Files Related To This hack
#################################################################
#
#-----[ 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 ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
#
#-----[ Add after ]------------------------------------------
#
<!-- BEGIN glow_open --><span style="filter: glow(color={GLOWCOLOR}); height:20"><!-- END glow_open -->
<!-- BEGIN glow_close --></span><!-- END glow_close -->
<!-- BEGIN shadow_open --><span style="filter: shadow(color={SHADOWCOLOR}); height:20"><!-- END shadow_open -->
<!-- BEGIN shadow_close --></span><!-- END shadow_close -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM