Glow and Shadow mod
Verfasst: 24.08.2010 02:35
suche diesen mod:
Glow and Shadow
habe denn mal für das phpbb2 board gehabt.
Gibt es denn auch für phpbb3 ?
Glow and Shadow
habe denn mal für das phpbb2 board gehabt.
Code: Alles auswählen
#################################################################
## MOD Title: Glow and Shadow effects BBcode Mod
## MOD Author: davidls < davidls14@yahoo.com.au > (David Smith) http://www27.brinkster.com/bb2c
## MOD Description: adds a glow and shadow bbcode tags to your forum.
## MOD Version: 2.0.6
##
## Installation Level: easy
## Installation Time: 1 minute
## Files To Edit: posting.php
## includes/bbcode.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/posting_body.tpl
##
## Included Files: n/a
## Generator: Mod Maker.net [alpha 1.0.957.14686]
#################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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/
#################################################################
##
## Author Notes: Please note that only the following syntax works
## [glow=colour]text[/glow]
## [Shadow=colour]text[/shadow]
## Also please note these tags use IE specific CSS
##
## You MUST first have already installed the Multi Quick BBCode MOD
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
# IMPORTANT: you MUST first have already installed the Multi Quick BBCode MOD
#
#
#-----[ OPEN ]---------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
$EMBB_keys = array(''
$EMBB_widths = array(''
$EMBB_values = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_keys = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'g', 'd'
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'40' ,'40'
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'Glow' ,'Shadow'
#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
# 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
'L_BBCODE_F_HELP' =>
#
#-----[ AFTER, ADD ]--------------------------------
#
'L_BBCODE_G_HELP' => $lang['bbcode_g_help'],
'L_BBCODE_D_HELP' => $lang['bbcode_d_help'],
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
# NOTE: the complete line to find is:
#$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
$bbcode_tpl['email']
#
#-----[ AFTER, ADD ]------------------------------------------
#
//Begin Glow Shadow Mod Copyright Davidls 2002-2003
$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 ]------------------------------------------
#
# NOTE: the complete line to find is:
#str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text)
#
str_replace("[/i:$uid]"
#
#-----[ AFTER, ADD ]------------------------------------------
#
//[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 ]------------------------------------------
#
# NOTE: the complete line to find is:
#preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text)
#
preg_replace("#\[i\](.*?)\[/i\]#si"
#
#-----[ AFTER, ADD ]------------------------------------------
#
//[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/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
# NOTE: the complete line to find is:
#<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
#
<!-- END email -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- 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 -->
#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
#f_help = "{L_BBCODE_F_HELP}";
#
f_help =
#
#-----[ AFTER, ADD ]---------------------------------
#
g_help = "{L_BBCODE_G_HELP}";
d_help = "{L_BBCODE_D_HELP}";
#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags
#
bbtags = new Array(
#
#-----[ IN-LINE FIND ]---------------------------------
#
'[url]','[/url]'
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[glow=]','[/glow]' ,'[shadow=]','[/shadow]'
#
#-----[ OPEN ]---------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
#$lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";
#
$lang['bbcode_f_help'] =
#
#-----[ AFTER, ADD ]---------------------------------
#
$lang['bbcode_g_help'] = "Glow: [glow=colour]text[/glow] (alt+g)";
$lang['bbcode_d_help'] = "Shadow: [shadow=colour]text[/shadow] (alt+d)";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM