Seite 1 von 1

glow/shadow

Verfasst: 28.02.2004 21:54
von vol19
so guten abend.
hab den mod glow/shadow heruntergeladen und alles gmeacht wies in der anleitung steht alles gespeichert und heraufgeladen weis jemand was ich flasch gemacht haben könnte oder gibts bei diesem mod einen fehler hoer die beschreibung

Code: Alles auswählen

#################################################################
## 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
#################################################################
##
## 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
Beim posten vom Code bitte immer den BB-Tag "Code" verwenden. Danke, Mungo

Verfasst: 29.02.2004 11:26
von Mungo
Irgendwelche Fehlermeldungen? Was passiert?
Poste mal einen Link zur bbcode.tpl und bbcode.php (bitte vorher als txt speichern.)

Verfasst: 29.02.2004 12:29
von vol19
hmm ne eben nicht get einfach ned wie kann ich das umwandeln? einfach .php in .txt umwandeln? aber wenn ich dass mache kommen nur noch so komische zahlen

so habs gaub ich zumindest geschaft hier di links http://rare_expo.funpic.de/bbcode.php.txt


och dass lässt der server nicht zu so ein schrott hmm muss ich dir das ganze per mail schicken