Page 1 of 1

[Release] Glow and Shadow Effects Add-On

Posted: Tue Apr 30, 2002 6:30 am
by Steve-G

Code: Select all

#################################################################
## Mod Title: Glow and Shadow effects BBcode Mod ADD-ON
## Mod Version: 1.0
## Author: Steve Glover nc69@tampabay.rr.com  - http://www.dvmachines.com 
## Description: Adds drop down menus so you can easily select the glow and shadow 
## bbcode tag and color for your posts
##
##  This Mod REQUIRES David Smith's Glow and Shadow effects BBcode Mod
## http://www.phpbb.com/mods/downloads/uploads/glow_shadow_mod.txt
##
## Installation Level: easy
## Installation Time: 2-5 minute
## Files To Edit: (3)
## language/laguage_XXX/lang_main.php
## posting.php
## templates/subSilver/posting_body.tpl
## 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:
## 
## Be sure to edit all templates and languages you have loaded 
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################


[code]
#
#-----[ Open language/language_XXX/lang_main.php ]------------------------------------------
#
# Make sure you edit the language file for all your laguages if you use more than one
#
#-----[ Find ]------------------------------------------
#
$lang['Font_color'] = "Font colour";
#
#-----[ Add ABOVE ]------------------------------------------
#
$lang['Shadow_color'] = "Shadow Color";
$lang['Glow_color'] = "Glow Color";
#
#-----[ Find ]------------------------------------------
#
$lang['bbcode_f_help'] = "Font Size: [size=x-small]small text[/size]";
#
#-----[ Add after ]------------------------------------------
#
$lang['bbcode_s2_help'] = "Shadow Color: [shadow=red]text[/shadow]  Tip: this makes your text shadowed";
$lang['bbcode_g_help'] = "Glow Color: [glow=red]text[/glow]  Tip: this makes your text glow";
#
#-----[ SAVE/CLOSE lang_main.php ]------------------------------------------
#
#
#-----[ Open posting.php ]------------------------------------------
#
#
#-----[ Find ]------------------------------------------
#
	'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], 
#
#-----[ Add after ]------------------------------------------
#
	'L_BBCODE_S2_HELP' => $lang['bbcode_s2_help'], 
	'L_BBCODE_G_HELP' => $lang['bbcode_g_help'], 
	'L_SHADOW_COLOR' => $lang['Shadow_color'],
	'L_GLOW_COLOR' => $lang['Glow_color'],
#
#-----[ SAVE/CLOSE posting.php ]------------------------------------------
#
#
#-----[ Open templates/subSilver/posting_body.tpl ]------------------------------------------
#
# Make sure you edit all your templates if you use more than one
#
#-----[ Find ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ Add after ]------------------------------------------
#
s2_help = "{L_BBCODE_S2_HELP}";
g_help = "{L_BBCODE_G_HELP}";
#
#-----[ Find ]------------------------------------------
#
	  <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
	</tr>
   </table>
 </td>
</tr>
#
#-----[ REPLACE WITH ]------------------------------------------
#
				</tr>
			  </table>
			</td>
		  </tr>
		  <tr> 
			<td colspan="9"> 
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr> 
				  <td><span class="genmed"> &nbsp;{L_SHADOW_COLOR}: 
					<select name="addbbcode28" onChange="bbfontstyle('[shadow=' + this.form.addbbcode28.options[this.form.addbbcode28.selectedIndex].value + ']', '[/shadow]')" onMouseOver="helpline('s2')">
					  <option style="color:black; background-color: #FFFFFF " value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
					  <option style="color:darkred; background-color: #DEE3E7" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
					  <option style="color:red; background-color: #DEE3E7" value="red" class="genmed">{L_COLOR_RED}</option>
					  <option style="color:orange; background-color: #DEE3E7" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
					  <option style="color:brown; background-color: #DEE3E7" value="brown" class="genmed">{L_COLOR_BROWN}</option>
					  <option style="color:yellow; background-color: #DEE3E7" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
					  <option style="color:green; background-color: #DEE3E7" value="green" class="genmed">{L_COLOR_GREEN}</option>
					  <option style="color:olive; background-color: #DEE3E7" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
					  <option style="color:cyan; background-color: #DEE3E7" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
					  <option style="color:blue; background-color: #DEE3E7" value="blue" class="genmed">{L_COLOR_BLUE}</option>
					  <option style="color:darkblue; background-color: #DEE3E7" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
					  <option style="color:indigo; background-color: #DEE3E7" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
					  <option style="color:violet; background-color: #DEE3E7" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
					  <option style="color:white; background-color: #DEE3E7" value="white" class="genmed">{L_COLOR_WHITE}</option>
					  <option style="color:black; background-color: #DEE3E7" value="black" class="genmed">{L_COLOR_BLACK}</option>
					</select> &nbsp;{L_GLOW_COLOR}:<select name="addbbcode29" onChange="bbfontstyle('[glow=' + this.form.addbbcode29.options[this.form.addbbcode29.selectedIndex].value + ']', '[/glow]')" onMouseOver="helpline('g')">
					  <option style="color:black; background-color: #FFFFFF " value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
					  <option style="color:darkred; background-color: #DEE3E7" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
					  <option style="color:red; background-color: #DEE3E7" value="red" class="genmed">{L_COLOR_RED}</option>
					  <option style="color:orange; background-color: #DEE3E7" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
					  <option style="color:brown; background-color: #DEE3E7" value="brown" class="genmed">{L_COLOR_BROWN}</option>
					  <option style="color:yellow; background-color: #DEE3E7" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
					  <option style="color:green; background-color: #DEE3E7" value="green" class="genmed">{L_COLOR_GREEN}</option>
					  <option style="color:olive; background-color: #DEE3E7" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
					  <option style="color:cyan; background-color: #DEE3E7" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
					  <option style="color:blue; background-color: #DEE3E7" value="blue" class="genmed">{L_COLOR_BLUE}</option>
					  <option style="color:darkblue; background-color: #DEE3E7" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
					  <option style="color:indigo; background-color: #DEE3E7" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
					  <option style="color:violet; background-color: #DEE3E7" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
					  <option style="color:white; background-color: #DEE3E7" value="white" class="genmed">{L_COLOR_WHITE}</option>
					  <option style="color:black; background-color: #DEE3E7" value="black" class="genmed">{L_COLOR_BLACK}</option>
					</select>
					</span></td>
				  <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
				</tr>
			  </table>
			</td>
		  </tr>
#
#-----[ SAVE/CLOSE posting_body.tpl ]------------------------------------------
#

DONE!