2.0.x Template Changes [up to version 2.0.23]

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Locked
User avatar
Erisar
Former Team Member
Posts: 4270
Joined: Thu Nov 07, 2002 7:01 pm
Location: Ft. Lauderdale, Florida
Name: Eric Sarmany
Contact:

2.0.x Template Changes [up to version 2.0.23]

Post by Erisar » Wed Feb 22, 2006 8:53 pm

It is the Styles Team's policy to approve phpBB 2.0 styles only if they are compatible with the latest version of phpBB 2.0.

Below are template changes you will need to make to older template files if you are either the style designer, or if you are a user who just wants to make the changes yourself.

----- [Changes in 2.0.23] --------------------------------------------

2.0.23 fixes an issue with the maxlength parameters in admin/styles_edit_body.tpl, and it also fixes an issue with the font-size selector in posting_body.tpl.

Code: Select all

#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/admin/styles_edit_body.tpl

#
#-----[ FIND ]---------------------------------------------
# Line 7
		<td class="row2" colspan="2"><input class="post" type="text" size="25" maxlength="100" name="style_name" value="{THEME_NAME}"></td>

#
#-----[ REPLACE WITH ]---------------------------------------------
#
		<td class="row2" colspan="2"><input class="post" type="text" size="25" maxlength="30" name="style_name" value="{THEME_NAME}"></td>

#
#-----[ FIND ]---------------------------------------------
# Line 62
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_color1_name" value="{TR_COLOR1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TR_COLOR2}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="tr_color2" value="{TR_COLOR2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_color2_name" value="{TR_COLOR2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TR_COLOR3}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="tr_color3" value="{TR_COLOR3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_color3_name" value="{TR_COLOR3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TR_CLASS1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class1" value="{TR_CLASS1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_class1_name" value="{TR_CLASS1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TR_CLASS2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class2" value="{TR_CLASS2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_class2_name" value="{TR_CLASS2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TR_CLASS3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class3" value="{TR_CLASS3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="tr_class3_name" value="{TR_CLASS3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TH_COLOR1}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color1" value="{TH_COLOR1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_color1_name" value="{TH_COLOR1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TH_COLOR2}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color2" value="{TH_COLOR2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_color2_name" value="{TH_COLOR2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TH_COLOR3}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color3" value="{TH_COLOR3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_color3_name" value="{TH_COLOR3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TH_CLASS1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class1" value="{TH_CLASS1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_class1_name" value="{TH_CLASS1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TH_CLASS2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class2" value="{TH_CLASS2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_class2_name" value="{TH_CLASS2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TH_CLASS3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class3" value="{TH_CLASS3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="th_class3_name" value="{TH_CLASS3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TD_COLOR1}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color1" value="{TD_COLOR1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_color1_name" value="{TD_COLOR1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TD_COLOR2}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color2" value="{TD_COLOR2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_color2_name" value="{TD_COLOR2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TD_COLOR3}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color3" value="{TD_COLOR3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_color3_name" value="{TD_COLOR3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TD_CLASS1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class1" value="{TD_CLASS1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_class1_name" value="{TD_CLASS1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TD_CLASS2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class2" value="{TD_CLASS2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_class2_name" value="{TD_CLASS2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TD_CLASS3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class3" value="{TD_CLASS3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="td_class3_name" value="{TD_CLASS3_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTFACE_1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface1" value="{FONTFACE1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontface1_name" value="{FONTFACE1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTFACE_2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface2" value="{FONTFACE2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontface2_name" value="{FONTFACE2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTFACE_3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface3" value="{FONTFACE3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontface3_name" value="{FONTFACE3_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTSIZE_1}:</td>
		<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize1" value="{FONTSIZE1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontsize1_name" value="{FONTSIZE1_NAME}">	
	</tr>

	<tr>
		<td class="row1">{L_FONTSIZE_2}:</td>
		<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize2" value="{FONTSIZE2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontsize2_name" value="{FONTSIZE2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTSIZE_3}:</td>
		<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize3" value="{FONTSIZE3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontsize3_name" value="{FONTSIZE3_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTCOLOR_1}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor1" value="{FONTCOLOR1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontcolor1_name" value="{FONTCOLOR1_NAME}">	
	</tr>

	<tr>
		<td class="row1">{L_FONTCOLOR_2}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor2" value="{FONTCOLOR2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontcolor2_name" value="{FONTCOLOR2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTCOLOR_3}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor3" value="{FONTCOLOR3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="fontcolor3_name" value="{FONTCOLOR3_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_SPAN_CLASS_1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class1" value="{SPAN_CLASS1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="span_class1_name" value="{SPAN_CLASS1_NAME}">	
	</tr>

	<tr>
		<td class="row1">{L_SPAN_CLASS_2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class2" value="{SPAN_CLASS2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="span_class2_name" value="{SPAN_CLASS2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_SPAN_CLASS_3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class3" value="{SPAN_CLASS3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="span_class3_name" value="{SPAN_CLASS3_NAME}">

#
#-----[ REPLACE WITH ]---------------------------------------------
#
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="tr_color1_name" value="{TR_COLOR1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TR_COLOR2}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="tr_color2" value="{TR_COLOR2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="tr_color2_name" value="{TR_COLOR2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TR_COLOR3}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="tr_color3" value="{TR_COLOR3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="tr_color3_name" value="{TR_COLOR3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TR_CLASS1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class1" value="{TR_CLASS1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="tr_class1_name" value="{TR_CLASS1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TR_CLASS2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class2" value="{TR_CLASS2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="tr_class2_name" value="{TR_CLASS2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TR_CLASS3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="tr_class3" value="{TR_CLASS3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="tr_class3_name" value="{TR_CLASS3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TH_COLOR1}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color1" value="{TH_COLOR1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="th_color1_name" value="{TH_COLOR1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TH_COLOR2}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color2" value="{TH_COLOR2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="th_color2_name" value="{TH_COLOR2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TH_COLOR3}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="th_color3" value="{TH_COLOR3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="th_color3_name" value="{TH_COLOR3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TH_CLASS1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class1" value="{TH_CLASS1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="th_class1_name" value="{TH_CLASS1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TH_CLASS2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class2" value="{TH_CLASS2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="th_class2_name" value="{TH_CLASS2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TH_CLASS3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="th_class3" value="{TH_CLASS3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="th_class3_name" value="{TH_CLASS3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TD_COLOR1}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color1" value="{TD_COLOR1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="td_color1_name" value="{TD_COLOR1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TD_COLOR2}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color2" value="{TD_COLOR2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="td_color2_name" value="{TD_COLOR2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TD_COLOR3}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="td_color3" value="{TD_COLOR3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="td_color3_name" value="{TD_COLOR3_NAME}">
	</tr>
	<tr>
		<td class="row1">{L_TD_CLASS1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class1" value="{TD_CLASS1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="td_class1_name" value="{TD_CLASS1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TD_CLASS2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class2" value="{TD_CLASS2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="td_class2_name" value="{TD_CLASS2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_TD_CLASS3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="td_class3" value="{TD_CLASS3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="td_class3_name" value="{TD_CLASS3_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTFACE_1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface1" value="{FONTFACE1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface1_name" value="{FONTFACE1_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTFACE_2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface2" value="{FONTFACE2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface2_name" value="{FONTFACE2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTFACE_3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface3" value="{FONTFACE3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontface3_name" value="{FONTFACE3_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTSIZE_1}:</td>
		<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize1" value="{FONTSIZE1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontsize1_name" value="{FONTSIZE1_NAME}">	
	</tr>

	<tr>
		<td class="row1">{L_FONTSIZE_2}:</td>
		<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize2" value="{FONTSIZE2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontsize2_name" value="{FONTSIZE2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTSIZE_3}:</td>
		<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="fontsize3" value="{FONTSIZE3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontsize3_name" value="{FONTSIZE3_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTCOLOR_1}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor1" value="{FONTCOLOR1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontcolor1_name" value="{FONTCOLOR1_NAME}">	
	</tr>

	<tr>
		<td class="row1">{L_FONTCOLOR_2}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor2" value="{FONTCOLOR2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontcolor2_name" value="{FONTCOLOR2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_FONTCOLOR_3}:</td>
		<td class="row2"><input class="post" type="text" size="6" maxlength="6" name="fontcolor3" value="{FONTCOLOR3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="fontcolor3_name" value="{FONTCOLOR3_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_SPAN_CLASS_1}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class1" value="{SPAN_CLASS1}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="span_class1_name" value="{SPAN_CLASS1_NAME}">	
	</tr>

	<tr>
		<td class="row1">{L_SPAN_CLASS_2}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class2" value="{SPAN_CLASS2}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="span_class2_name" value="{SPAN_CLASS2_NAME}">
	</tr>

	<tr>
		<td class="row1">{L_SPAN_CLASS_3}:</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="25" name="span_class3" value="{SPAN_CLASS3}"></td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="50" name="span_class3_name" value="{SPAN_CLASS3_NAME}">

# 
#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/posting_body.tpl

#
#-----[ FIND ]---------------------------------------------
# Line 370
					</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.selectedIndex=0;" onMouseOver="helpline('f')">
					  <option value="0" class="genmed">{L_FONT_SIZE}</option>
					  <option value="7" class="genmed">{L_FONT_TINY}</option>
					  <option value="9" class="genmed">{L_FONT_SMALL}</option>
					  <option value="12" selected class="genmed">{L_FONT_NORMAL}</option>

#
#-----[ REPLACE WITH ]---------------------------------------------
#
					</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" selected onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.selectedIndex=0;" onMouseOver="helpline('f')">
					  <option value="0" class="genmed">{L_FONT_SIZE}</option>
					  <option value="7" class="genmed">{L_FONT_TINY}</option>
					  <option value="9" class="genmed">{L_FONT_SMALL}</option>
					  <option value="12" class="genmed">{L_FONT_NORMAL}</option>
----- [Changes in 2.0.22] --------------------------------------------

2.0.22 fixes an annoyance bug with the font-size selector on the posting page.

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/posting_body.tpl

#
#-----[ FIND ]---------------------------------------------
# Line 370
					</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#-----[ REPLACE WITH ]---------------------------------------------
#
					</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.selectedIndex=0;" onMouseOver="helpline('f')">
					  <option value="0" class="genmed">{L_FONT_SIZE}</option>
----- [Changes in 2.0.20] --------------------------------------------

2.0.20 includes a new template file /admin/confirm_body.tpl. A search flood interval option was also added in the Administration Panel. As usual, since these are functional changes, they are required.

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/admin/board_config_body.tpl

#
#-----[ FIND ]---------------------------------------------
# Line 52
		<td class="row2"><input type="radio" name="board_email_form" value="1" {BOARD_EMAIL_FORM_ENABLE} /> {L_ENABLED}&nbsp;&nbsp;<input type="radio" name="board_email_form" value="0" {BOARD_EMAIL_FORM_DISABLE} /> {L_DISABLED}</td>
	</tr>
	<tr>
		<td class="row1">{L_FLOOD_INTERVAL} <br /><span class="gensmall">{L_FLOOD_INTERVAL_EXPLAIN}</span></td>
		<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="flood_interval" value="{FLOOD_INTERVAL}" /></td>

#
#-----[ AFTER, ADD ]---------------------------------------------
#
	</tr>
	<tr>
		<td class="row1">{L_SEARCH_FLOOD_INTERVAL} <br /><span class="gensmall">{L_SEARCH_FLOOD_INTERVAL_EXPLAIN}</span></td>
		<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="search_flood_interval" value="{SEARCH_FLOOD_INTERVAL}" /></td>
The following change is purely cosmetic and is recommended but not required.

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/confirm_body.tpl

#
#-----[ FIND ]---------------------------------------------
# Line 5
		<th class="thHead" height="25" valign="middle"><span class="tableTitle">{MESSAGE_TITLE}</span></th>

#
#-----[ REPLACE WITH ]---------------------------------------------
#
		<th class="thHead" height="25" valign="middle">{MESSAGE_TITLE}</th>


----- [Changes in 2.0.19] --------------------------------------------

2.0.19 added a new feature related to login-attempts which requires template changes in order to work.

As usual, since this is a functional change, and submissions after the release of 2.0.19 with this missing will be denied.

Code: Select all

#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]---------------------------------------------
#
    <tr> 
        <td class="row1">{L_TOPICS_PER_PAGE}</td>
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
    <tr> 
       <td class="row1">{L_MAX_LOGIN_ATTEMPTS}<br /><span class="gensmall">{L_MAX_LOGIN_ATTEMPTS_EXPLAIN}</span></td> 
      <td class="row2"><input class="post" type="text" size="3" maxlength="4" name="max_login_attempts" value="{MAX_LOGIN_ATTEMPTS}" /></td> 
    </tr> 
    <tr> 
       <td class="row1">{L_LOGIN_RESET_TIME}<br /><span class="gensmall">{L_LOGIN_RESET_TIME_EXPLAIN}</span></td> 
       <td class="row2"><input class="post" type="text" size="3" maxlength="4" name="login_reset_time" value="{LOGIN_RESET_TIME}" /></td> 
    </tr>
A further change was made to index_body.tpl to move the version information. This change is purely cosmetic and will not be required.


----- [Changes in 2.0.18] --------------------------------------------

The 2.0.18 release includes many changes to the default subSilver template.

Many of these are purely cosmetic issues with subSilver to fix minor errors of one form or another.

Code: Select all

#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]---------------------------------------------
# NOTE --- This is a partial match, the whole line on a plain subSilver template looks like this:
#		<td class="row1">{L_VISUAL_CONFIRM}<br /><span class="gensmall">{L_VISUAL_CONFIRM_EXPLAIN}</span></td>
#		<td class="row2"><input type="radio" name="enable_confirm" value="1" {CONFIRM_ENABLE} />{L_YES}&nbsp; &nbsp;<input type="radio" name="enable_confirm" value="0" {CONFIRM_DISABLE} />{L_NO}</td>
#	</tr>
#
{L_VISUAL_CONFIRM_EXPLAIN}
{CONFIRM_ENABLE}
</tr>
#
#-----[ AFTER, ADD ]---------------------------------------------
#
	<tr>
		<td class="row1">{L_ALLOW_AUTOLOGIN}<br /><span class="gensmall">{L_ALLOW_AUTOLOGIN_EXPLAIN}</span></td>
		<td class="row2"><input type="radio" name="allow_autologin" value="1" {ALLOW_AUTOLOGIN_YES} />{L_YES}&nbsp; &nbsp;<input type="radio" name="allow_autologin" value="0" {ALLOW_AUTOLOGIN_NO} />{L_NO}</td>
	</tr>
	<tr>
		<td class="row1">{L_AUTOLOGIN_TIME} <br /><span class="gensmall">{L_AUTOLOGIN_TIME_EXPLAIN}</span></td>
		<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="max_autologin_time" value="{AUTOLOGIN_TIME}" /></td>
	</tr>

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/admin/styles_edit_body.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 
      <td class="row1">{L_STYLESHEET}:<br /><span class="gensmall">Filename for CSS stylesheet to use for this theme.</span></td> 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
      <td class="row1">{L_STYLESHEET}:<br /><span class="gensmall">{L_STYLESHEET_EXPLAIN}</span></td> 
The following 2 changes are strongly recommended (as they will prevent the user being presented with options that are not available to them at that point). We will not deny your style if these are missing, but we strongly recommend you include them.

Code: Select all

#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]---------------------------------------------
#
	<td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
#
#-----[ REPLACE WITH ]---------------------------------------------
#
 	<td align="left">
 	<!-- BEGIN switch_user_logged_in -->
 		<span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span>
 	<!-- END switch_user_logged_in -->
 	</td>
#
#-----[ FIND ]---------------------------------------------
#
		&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} 
		<input class="text" type="checkbox" name="autologin" />
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
		<!-- BEGIN switch_allow_autologin -->
#
#-----[ AFTER, ADD ]---------------------------------------------
#
		<!-- END switch_allow_autologin -->
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/login_body.tpl
#
#-----[ FIND ]---------------------------------------------
#
		  <tr align="center"> 
			<td colspan="2"><span class="gen">{L_AUTO_LOGIN}: <input type="checkbox" name="autologin" /></span></td>
		  </tr>
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
		  <!-- BEGIN switch_allow_autologin -->
#
#-----[ AFTER, ADD ]---------------------------------------------
#
		  <!-- END switch_allow_autologin -->
Any other changes are cosmetic and will not be required. Full details of the changes are included in the code changes update listed in the release announcement.


----- [Changes in 2.0.12] --------------------------------------------

Code: Select all

#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/admin/index_body.tpl
#
#-----[ FIND ]---------------------------------------------
#
  <!-- END guest_user_row --> 
</table> 

<br />
#
#-----[ AFTER, ADD ]---------------------------------------------
#
<h1>{L_VERSION_INFORMATION}</h1> 

{VERSION_INFO} 

<br />
Note: If using a style other than subSilver, the code might vary slightly

You should also note that effective from version 2.0.12, phpBB does not print the version at the bottom of the publicly visible pages and it is no longer assigned to the template so you should also remove all references to {PHPBB_VERSION} from overall_footer.tpl and simple_footer.tpl
My Twitter · Erisar Design [Web Development and Graphic Design]

Locked

Return to “[2.0.x] Styles Development & Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests

cron