Seite 1 von 1

Glow and Shadow mod

Verfasst: 24.08.2010 02:35
von Gammler
suche diesen mod:

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
Gibt es denn auch für phpbb3 ?

Re: Glow and Shadow mod

Verfasst: 24.08.2010 08:06
von Dr.Death
Hi,

das könnte man mit BBCode in phpBB3 machen.


Allerdings unterstützt nur der IE den GLOW Effekt....

Siehe dazu auch:
http://codekicker.de/fragen/CSS-Outer-G ... f-Text/473

Einen Text Schatten mit einem GLOW Effekt kann man auch mit " text-shadow " erzielen, allerdings funktioniert das wiederum im IE nicht ;-(


Hier nun ein Beispiel ( ohne Support von mir )

ACP -->
Beiträge -->
BBCode hinzufügen

BBCode Benutzung:

Code: Alles auswählen

[glow={COLOR}]{TEXT}[/glow]
HTML-Ersetzung:

Code: Alles auswählen

<span style="text-shadow: {COLOR} 3px 3px 5px;">{TEXT}</span>
Tipp-Anzeige:

Code: Alles auswählen

[glow=#COLOR}]TEXT[/glow]
Beim Verfassen eines Beitrags anzeigen: [X]

Nun kannst Du in einem Beitrag dies hier schreiben:

[glow=#FF4400]Dies ist ein Text mit GLOW Effekt[/glow]

Dummerweise funktioniert das nicht im IE, sondern nur im FireFox und Co.