[GUIDE] Template changes for phpBB3

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

[GUIDE] Template changes for phpBB3

Post by Raimon » Mon Jul 30, 2007 12:53 pm

Hi there,

I thought it may being useful for style writers a template change guide , for what is change into the templates.
It is very useful when you have a very custom made style ;)

But here we go:

From RC3 to RC4

First of all we begin without table design , the styles that are designed on prosilver:

Open: /styles/prosilver/template/drafts.html

search:

Code: Select all

<ul class="topiclist">
replace with:

Code: Select all

<ul class="topiclist cplist">
Open: /styles/prosilver/template/forum_fn.js

search:

Code: Select all

rectangle = rectangle.split(',')
replace with:

Code: Select all

rectangle = rectangle.split(',');
Open: /styles/prosilver/template/index_body.html

search:

Code: Select all

			<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" /> | 
			<label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label> <input type="submit" name="login" value="{L_LOGIN}" class="button2" />

replace with:

Code: Select all

	<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
			<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" />
			<!-- ENDIF -->
			</label> <input type="submit" name="login" value="{L_LOGIN}" class="button2" />


find:

Code: Select all

<h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3>


replace with:

Code: Select all

<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->

Open: /styles/prosilver/template/jumpbox.html

search:

Code: Select all

<p><a class="left-box {S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}" accesskey="r">{L_RETURN_TO} {L_SEARCH_ADV}</a></p>


replace with:

Code: Select all

<p><a class="left-box {S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}" accesskey="r">{L_RETURN_TO_SEARCH_ADV}</a></p>
Open: /styles/prosilver/template/mcp_notes_user.html

search:

Code: Select all

<!-- IF RANK_IMG --><dt>{L_RANK}:</dt><dd>{RANK_IMG}</dd><!-- ENDIF -->

replace with:

Code: Select all

<!-- IF RANK_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt><dd>{RANK_IMG}</dd><!-- ENDIF -->

Open: /styles/prosilver/template/mcp_post.html

search:

Code: Select all

<input class="button2" type="submit" name="action[del_marked]" value="{L_DELETE_MARKED}" />&nbsp; 
						<input class="button2" type="submit" name="action[del_all]" value="{L_DELETE_ALL}" />


replace with:

Code: Select all

<input class="button2" type="submit" name="action[del_all]" value="{L_DELETE_ALL}" />&nbsp;
						<input class="button2" type="submit" name="action[del_marked]" value="{L_DELETE_MARKED}" />

Open: /styles/prosilver/template/mcp_topic.html

search:

Code: Select all

<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label>
			<!-- END topic_icon --></dd>

replace with:

Code: Select all

		<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon --></dd>

Open: /styles/prosilver/template/mcp_warn_list.html

search:

Code: Select all

<p>{L_WARNED_USERS_EXPLAIN}<p>
replace with:

Code: Select all

<p>{L_WARNED_USERS_EXPLAIN}</p>
Open: /styles/prosilver/template/mcp_warn_post.html

search:

Code: Select all

<!-- IF RANK_IMG --><dt>{L_RANK}:</dt><dd>{RANK_IMG}</dd><!-- ENDIF -->

replace with:

Code: Select all

<!-- IF RANK_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt><dd>{RANK_IMG}</dd><!-- ENDIF -->

Open: /styles/prosilver/template/mcp_warn_user.html

search:

Code: Select all

<!-- IF RANK_IMG --><dt>{L_RANK}:</dt><dd>{RANK_IMG}</dd><!-- ENDIF -->

replace with:

Code: Select all

<!-- IF RANK_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt><dd>{RANK_IMG}</dd><!-- ENDIF -->
Open: /styles/prosilver/template/memberlist_body.html

search:

Code: Select all

<!-- IF not memberrow.S_GROUP_LEADER and not $S_MEMBER_HEADER -->
after add:

Code: Select all

	<tr class="bg1">
					<td colspan="<!-- IF U_SORT_ACTIVE -->5<!-- ELSE -->4<!-- ENDIF -->">&nbsp;</td>
				</tr>
				<!-- ENDIF -->
Open: /styles/prosilver/template/memberlist_view.html

search:

Code: Select all

<!-- IF RANK_IMG --><dt>{L_RANK}:</dt><dd>{RANK_IMG}</dd><!-- ENDIF -->

replace with:

Code: Select all

<!-- IF RANK_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt><dd>{RANK_IMG}</dd><!-- ENDIF -->

search:

Code: Select all

<!-- IF SIGNATURE --><dt>{L_SIGNATURE}:</dt> <dd><div class="signature">{SIGNATURE}</div></dd><!-- ENDIF -->

replace with:

Code: Select all

<!-- BEGIN custom_fields --><dt>{custom_fields.PROFILE_FIELD_NAME}:</dt> <dd>{custom_fields.PROFILE_FIELD_VALUE}</dd><!-- END custom_fields -->
		<!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
			<!-- IF U_ADD_FRIEND and U_ADD_FOE-->
				<dt>&nbsp;</dt> <dd><a href="{U_ADD_FRIEND}"><strong>{L_ADD_FRIEND}</strong></a></dd>
				<dt>&nbsp;</dt> <dd><a href="{U_ADD_FOE}"><strong>{L_ADD_FOE}</strong></a></dd>
			<!-- ELSE -->
				<!-- IF U_REMOVE_FRIEND -->
					<dt>&nbsp;</dt> <dd><a href="{U_REMOVE_FRIEND}"><strong>{L_REMOVE_FRIEND}</strong></a></dd>
				<!-- ELSE -->
					<dt>&nbsp;</dt> <dd><a href="{U_REMOVE_FOE}"><strong>{L_REMOVE_FOE}</strong></a></dd>
				<!-- ENDIF -->
			<!-- ENDIF -->
		<!-- ENDIF -->
search:

Code: Select all

<dt>{postrow.PROFILE_FIELD1_NAME}:</dt> <dd>{postrow.PROFILE_FIELD1_VALUE}</dd>
		<!-- ENDIF -->
after add:

Code: Select all

<!-- BEGIN custom_fields --><dt>{custom_fields.PROFILE_FIELD_NAME}:</dt> <dd>{custom_fields.PROFILE_FIELD_VALUE}</dd><!-- END custom_fields -->
		<!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
			<!-- IF U_ADD_FRIEND and U_ADD_FOE-->
				<dt>&nbsp;</dt> <dd><a href="{U_ADD_FRIEND}"><strong>{L_ADD_FRIEND}</strong></a></dd>
				<dt>&nbsp;</dt> <dd><a href="{U_ADD_FOE}"><strong>{L_ADD_FOE}</strong></a></dd>
			<!-- ELSE -->
				<!-- IF U_REMOVE_FRIEND -->
					<dt>&nbsp;</dt> <dd><a href="{U_REMOVE_FRIEND}"><strong>{L_REMOVE_FRIEND}</strong></a></dd>
				<!-- ELSE -->
					<dt>&nbsp;</dt> <dd><a href="{U_REMOVE_FOE}"><strong>{L_REMOVE_FOE}</strong></a></dd>
				<!-- ENDIF -->
			<!-- ENDIF -->
		<!-- ENDIF -->
search:

Code: Select all

			<dt>{L_ACTIVE_IN_TOPIC}:</dt> <dd><!-- IF ACTIVE_TOPIC --><strong><a href="{U_ACTIVE_TOPIC}">{ACTIVE_TOPIC}</a></strong><br />({ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT})<!-- ELSE --> - <!-- ENDIF --></dd>
			<!-- ENDIF -->
		</dl>
	</div>
	<span class="corners-bottom"><span></span></span></div>
</div>
after add:

Code: Select all

<!-- IF SIGNATURE -->
<div class="panel bg1">
	<div class="inner"><span class="corners-top"><span></span></span>

		<h3>{L_SIGNATURE}</h3>
		
		<div class="postbody"><div class="content">{SIGNATURE}</div></div>

	<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
Open: /styles/prosilver/template/message_body.html

search:

Code: Select all

<!-- IF SCRIPT_NAME == "search" --><p><a href="{U_SEARCH}" class="{S_CONTENT_FLOW_BEGIN}">{L_RETURN_TO_SEARCH_ADV}</a></p><!-- ENDIF -->


replace with:

Code: Select all

<!-- IF SCRIPT_NAME == "search" and not S_BOARD_DISABLED and not S_NO_SEARCH --><p><a href="{U_SEARCH}" class="{S_CONTENT_FLOW_BEGIN}">{L_RETURN_TO_SEARCH_ADV}</a></p><!-- ENDIF -->

Open: /styles/prosilver/template/overall_footer.html

search:

Code: Select all

<div class="copyright">Powered by <a href="http://www.phpbb.com/">phpBB</a> {PHPBB_VERSION} &copy; 2000, 2002, 2005, 2007 phpBB Group

replace with:

Code: Select all

<div class="copyright">Powered by <a href="http://www.phpbb.com/">phpBB</a> &copy; 2000, 2002, 2005, 2007 phpBB Group

open: /styles/prosilver/template/overall_header.html

search:

Code: Select all

<!-- IF T_STYLESHEET_LINK and not S_FORCE_EMBED_STYLE -->
	<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
	<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

	<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
	<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
	<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
<!-- ELSE -->
	<style type="text/css" media="screen, projection">
		{T_THEME_DATA}
	</style>
<!-- ENDIF -->
replace with:

Code: Select all

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
open: /styles/prosilver/template/posting_editor.html

search:

Code: Select all

<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label><!-- END topic_icon -->


replace with:

Code: Select all

<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->


search:

Code: Select all

<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox" /></dd>


replace with:

Code: Select all

<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
search:

Code: Select all

	<dt><label for="comment_list[{attach_row.ASSOC_INDEX}]">{L_FILE_COMMENT}:</label><br />
				<span><br /><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></span></dt>
				<dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list[{attach_row.ASSOC_INDEX}]" rows="1" cols="35" class="inputbox">{attach_row.FILE_COMMENT}</textarea></dd>

replace with:

Code: Select all

	<dt><label for="comment_list[{attach_row.ASSOC_INDEX}]">{L_FILE_COMMENT}:</label></dt>
				<dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list[{attach_row.ASSOC_INDEX}]" rows="1" cols="35" class="inputbox">{attach_row.FILE_COMMENT}</textarea></dd>
				<dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>

Open: /styles/prosilver/template/report_body.html

search:

Code: Select all

<input type="submit" name="cancel" class="button2" value="{L_CANCEL}">

replace with:

Code: Select all

<input type="submit" name="cancel" class="button2" value="{L_CANCEL}" />

Open: /styles/prosilver/template/search_results.html

search:

Code: Select all

<ul class="topiclist">
replace with:

Code: Select all

<ul class="topiclist topics">
Open: /styles/prosilver/template/simple_header.html

search:

Code: Select all

<!-- IF T_STYLESHEET_LINK -->
	<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
	<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

	<link href="{T_THEME_PATH}/normal.css" rel="alternate stylesheet" type="text/css" title="A" />
	<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
	<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
<!-- ELSE -->
	<style type="text/css" media="screen, projection">
		{T_THEME_DATA}
	</style>
<!-- ENDIF -->
replace with:

Code: Select all

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="alternate stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
Open: /styles/prosilver/template/ucp_groups_manage.html

search:

Code: Select all

<td class="name"><a href="{leader.U_USER_VIEW}"><strong>{leader.USERNAME}</strong></a></td>

replace with:

Code: Select all

<td class="name">{leader.USERNAME_FULL}</td>

search:

Code: Select all

<td class="name"><a href="{member.U_USER_VIEW}"><strong>{member.USERNAME}</strong></a></td>

replace with:

Code: Select all

<td class="name">{member.USERNAME_FULL}</td>

Open: /styles/prosilver/template/ucp_pm_viewmessage.html

search:

Code: Select all

	<!-- IF S_TO_RECIPIENT --><br /><strong>{L_TO}:</strong> <!-- BEGIN to_recipient --><a href="{to_recipient.U_VIEW}" style="color:<!-- IF to_recipient.COLOUR -->{to_recipient.COLOUR}<!-- ELSEIF to_recipient.IS_GROUP -->#0000FF<!-- ENDIF -->;">{to_recipient.NAME}</a> <!-- END to_recipient --><!-- ENDIF -->
			<!-- IF S_BCC_RECIPIENT --><br /><strong>{L_BCC}:</strong> <!-- BEGIN bcc_recipient --><a href="{bcc_recipient.U_VIEW}" style="color:<!-- IF bcc_recipient.COLOUR -->{bcc_recipient.COLOUR}<!-- ELSEIF bcc_recipient.IS_GROUP -->#0000FF<!-- ENDIF -->;">{bcc_recipient.NAME}</a> <!-- END bcc_recipient --><!-- ENDIF -->

replace with:

Code: Select all

<!-- IF S_TO_RECIPIENT --><br /><strong>{L_TO}:</strong> <!-- BEGIN to_recipient --><!-- IF to_recipient.NAME_FULL -->{to_recipient.NAME_FULL}<!-- ELSE --><a href="{to_recipient.U_VIEW}" style="color:<!-- IF to_recipient.COLOUR -->{to_recipient.COLOUR}<!-- ELSEIF to_recipient.IS_GROUP -->#0000FF<!-- ENDIF -->;">{to_recipient.NAME}</a><!-- ENDIF --> <!-- END to_recipient --><!-- ENDIF -->
			<!-- IF S_BCC_RECIPIENT --><br /><strong>{L_BCC}:</strong> <!-- BEGIN bcc_recipient --><!-- IF bcc_recipient.NAME_FULL -->{bcc_recipient.NAME_FULL}<!-- ELSE --><a href="{bcc_recipient.U_VIEW}" style="color:<!-- IF bcc_recipient.COLOUR -->{bcc_recipient.COLOUR}<!-- ELSEIF bcc_recipient.IS_GROUP -->#0000FF<!-- ENDIF -->;">{bcc_recipient.NAME}</a><!-- ENDIF --> <!-- END bcc_recipient --><!-- ENDIF -->

search:

Code: Select all

<!-- IF not S_UNREAD --><label for="dest_folder"><!-- IF S_VIEW_MESSAGE -->{L_MOVE_TO_FOLDER}: <!-- ELSE -->{L_MOVE_MARKED_TO_FOLDER}<!-- ENDIF --> <select name="dest_folder" id="dest_folder">{S_TO_FOLDER_OPTIONS}</select></label> <input class="button2" type="submit" name="move_pm" value="{L_GO}" /><!-- ENDIF -->

replace with:

Code: Select all

	<!-- IF not S_UNREAD and not S_SPECIAL_FOLDER --><label for="dest_folder"><!-- IF S_VIEW_MESSAGE -->{L_MOVE_TO_FOLDER}: <!-- ELSE -->{L_MOVE_MARKED_TO_FOLDER}<!-- ENDIF --> <select name="dest_folder" id="dest_folder">{S_TO_FOLDER_OPTIONS}</select></label> <input class="button2" type="submit" name="move_pm" value="{L_GO}" /><!-- ENDIF -->

Open: /styles/prosilver/template/ucp_pm_viewmessage_print.html

search:

Code: Select all

	<td colspan="2" align="center"><span class="gensmall">Powered by phpBB {PHPBB_VERSION} &copy; 2000, 2002, 2005, 2007 phpBB Group<br />http://www.phpbb.com/</span></td>

replace with:

Code: Select all

<td colspan="2" align="center"><span class="gensmall">Powered by phpBB &copy; 2000, 2002, 2005, 2007 phpBB Group<br />http://www.phpbb.com/</span></td>
Open: /styles/prosilver/template/ucp_profile_profile_info.html

search:

Code: Select all

	<dl>
		<dt><label for="bday_day">{L_BIRTHDAY}:</label><br /><span>{L_BIRTHDAY_EXPLAIN}</span></dt>
		<dd>
			<label for="bday_day">{L_DAY}: <select name="bday_day" id="bday_day" style="width: 40px;">{S_BIRTHDAY_DAY_OPTIONS}</select></label> 
			<label for="bday_month">{L_MONTH}: <select name="bday_month" id="bday_month" style="width: 40px;">{S_BIRTHDAY_MONTH_OPTIONS}</select></label> 
			<label for="bday_year">{L_YEAR}: <select name="bday_year" id="bday_year" style="width: 60px;">{S_BIRTHDAY_YEAR_OPTIONS}</select></label>
		</dd>
	</dl>
replace with:

Code: Select all

<!-- IF S_BIRTHDAYS_ENABLED -->
		<dl>
			<dt><label for="bday_day">{L_BIRTHDAY}:</label><br /><span>{L_BIRTHDAY_EXPLAIN}</span></dt>
			<dd>
				<label for="bday_day">{L_DAY}: <select name="bday_day" id="bday_day" style="width: 40px;">{S_BIRTHDAY_DAY_OPTIONS}</select></label> 
				<label for="bday_month">{L_MONTH}: <select name="bday_month" id="bday_month" style="width: 40px;">{S_BIRTHDAY_MONTH_OPTIONS}</select></label> 
				<label for="bday_year">{L_YEAR}: <select name="bday_year" id="bday_year" style="width: 60px;">{S_BIRTHDAY_YEAR_OPTIONS}</select></label>
			</dd>
		</dl>
	<!-- ENDIF -->
search:

Code: Select all

<dt><label for="{profile_fields.FIELD_ID}">{profile_fields.LANG_NAME}:<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --></label>

replace with:

Code: Select all

<dt><label <!-- IF profile_fields.FIELD_ID -->for="{profile_fields.FIELD_ID}"<!-- ENDIF -->>{profile_fields.LANG_NAME}:<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --></label>
Open: /styles/prosilver/template/ucp_register.html

search:

Code: Select all

<dt><label for="{profile_fields.FIELD_ID}">{profile_fields.LANG_NAME}:<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --></label>


replace with:

Code: Select all

<dt><label <!-- IF profile_fields.FIELD_ID -->for="{profile_fields.FIELD_ID}" <!-- ENDIF -->>{profile_fields.LANG_NAME}:<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --></label>
Open: /styles/prosilver/template/viewforum_body.html

search:

Code: Select all

<li class="rightside"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
replace with:

Code: Select all

<li class="rightside"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
search:

Code: Select all

<!-- IF U_POST_REPLY_TOPIC or S_IS_POSTABLE or PAGINATION or TOTAL_POSTS or TOTAL_TOPICS -->

replace with:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO or PAGINATION or TOTAL_POSTS or TOTAL_TOPICS -->

search:

Code: Select all

<!-- IF not S_IS_BOT -->
		<!-- IF U_POST_REPLY_TOPIC or S_IS_POSTABLE -->
			<div class="buttons">
				<div class="post-icon"><a href="{U_POST_NEW_TOPIC}" accesskey="n"><span>{L_POST_TOPIC}</span></a></div>
			</div>
		<!-- ENDIF -->
replace with:

Code: Select all

<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
		<div class="buttons">
			<div class="post-icon"><a href="{U_POST_NEW_TOPIC}" accesskey="n"><span>{L_POST_TOPIC}</span></a></div>
		</div>

search:

Code: Select all

<ul class="topiclist topics">
replace with:

Code: Select all

<ul class="topiclist">
search:

Code: Select all

<!-- ENDIF -->
<!-- END topicrow -->
replace with:

Code: Select all

<!-- END topicrow -->
search:

Code: Select all

<form method="post" action="{S_TOPIC_ACTION}">

replace with:

Code: Select all

<form method="post" action="{S_FORUM_ACTION}">
search:

Code: Select all

	<!-- IF S_IS_POSTABLE and not S_IS_BOT -->
		<div class="buttons">
			<div class="post-icon"><a href="{U_POST_NEW_TOPIC}"><span>{L_POST_REPLY}</span></a></div>
		</div>
replace with:

Code: Select all

<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
		<div class="buttons">
			<div class="post-icon"><a href="{U_POST_NEW_TOPIC}"><span>{L_POST_TOPIC}</span></a></div>
		</div>
search:

Code: Select all

<!-- IF not U_POST_REPLY_TOPIC and TOTAL_TOPICS and not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}">{L_MARK_TOPICS_READ}</a> &bull;  <!-- ENDIF -->


replace with:

Code: Select all

<!-- IF TOTAL_TOPICS and not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}">{L_MARK_TOPICS_READ}</a> &bull;  <!-- ENDIF -->
search:

Code: Select all

<!-- IF S_IS_POSTABLE -->
replace with:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO -->
open: /styles/prosilver/template/viewonline_body.html

search:

Code: Select all

<!-- INCLUDE simple_header.html -->

<h2>{L_WHOIS}</h2>

<div class="panel">
replace with:

Code: Select all

<!-- INCLUDE overall_header.html -->

<h2>{TOTAL_REGISTERED_USERS_ONLINE}</h2>
<p>{TOTAL_GUEST_USERS_ONLINE}<!-- IF S_SWITCH_GUEST_DISPLAY --> &bull; <a href="{U_SWITCH_GUEST_DISPLAY}">{L_SWITCH_GUEST_DISPLAY}</a><!-- ENDIF --></p>

<ul class="linklist">
	<li class="rightside pagination"><!-- IF PAGINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE -->{PAGE_NUMBER}<!-- ENDIF --></li>
</ul>

Code: Select all

<div class="forumbg">
search:

Code: Select all

<div class="content">
		<pre>{WHOIS}</pre>
	</div>
replace with:

Code: Select all

<table class="table1" cellspacing="1">

	<!-- IF .user_row -->
		<thead>
		<tr>
			<th class="name"><a href="{U_SORT_USERNAME}">{L_USERNAME}</a></th>
			<th class="info"><a href="{U_SORT_LOCATION}">{L_FORUM_LOCATION}</a></th>
			<th class="active"><a href="{U_SORT_UPDATED}">{L_LAST_UPDATED}</a></th>
		</tr>
		</thead>
		<tbody>
		<!-- BEGIN user_row -->
		<tr class="<!-- IF user_row.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
			<td>{user_row.USERNAME_FULL}<!-- IF user_row.USER_IP --> <span style="margin-left: 30px;">{L_IP}: <a href="{user_row.U_USER_IP}">{user_row.USER_IP}</a> &#187; <a href="{user_row.U_WHOIS}" onclick="popup('{user_row.U_WHOIS}', 750, 500);return false">{L_WHOIS}</a></span><!-- ENDIF -->
				<!-- IF user_row.USER_BROWSER --><br />{user_row.USER_BROWSER}<!-- ENDIF --></td>
			<td class="info"><a href="{user_row.U_FORUM_LOCATION}">{user_row.FORUM_LOCATION}</a></td>
			<td class="active">{user_row.LASTUPDATE}</td>
		</tr>
		<!-- END user_row -->
	<!-- ELSE -->
		<tbody>
		<tr class="bg1">
			<td colspan="3">{L_NO_ONLINE_USERS}<!-- IF S_SWITCH_GUEST_DISPLAY --> &bull; <a href="{U_SWITCH_GUEST_DISPLAY}">{L_SWITCH_GUEST_DISPLAY}</a><!-- ENDIF --></td>
		</tr>
	<!-- ENDIF -->
	</tbody>
	</table>

search:

Code: Select all

<!-- INCLUDE simple_footer.html -->
replace with:

Code: Select all

<!-- IF PREVIOUS_PAGE or NEXT_PAGE -->
<fieldset class="display-options right-box">
	<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="{S_CONTENT_FLOW_BEGIN}">{L_PREVIOUS}</a><!-- ELSE -->{L_PREVIOUS}<!-- ENDIF --> &bull; <!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="{S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ELSE -->{L_NEXT}<!-- ENDIF -->
</fieldset>
<!-- ENDIF -->

<!-- IF LEGEND --><p><em>{L_LEGEND}: {LEGEND}</em></p><!-- ENDIF -->

<ul class="linklist">
	<li class="rightside pagination"><!-- IF PAGINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE -->{PAGE_NUMBER}<!-- ENDIF --></li>
</ul>

<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
open: /styles/prosilver/template/viewtopic_body.html

search:

Code: Select all

	<!-- IF not S_IS_BOT -->
		<!-- IF U_POST_REPLY_TOPIC or S_IS_POSTABLE --><div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}"><span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></span></a></div><!-- ENDIF -->

replace with:

Code: Select all

<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
		<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}"><span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></span></a></div>


search:

Code: Select all

<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup('{postrow.U_JABBER}', 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
after add:

Code: Select all

</ul>
search:

Code: Select all

	<!-- IF not S_IS_BOT -->
		<!-- IF U_POST_REPLY_TOPIC or S_IS_POSTABLE --><div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}"><span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></span></a></div><!-- ENDIF -->

replace with:

Code: Select all

<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
		<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}"><span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></span></a></div>


search:

Code: Select all

<label>{L_QUICK_MOD}: {S_TOPIC_MOD}</label> <input type="submit" value="{L_GO}" class="button2" />

replcae with:

Code: Select all

<label>{L_QUICK_MOD}:</label>{S_TOPIC_MOD} <input type="submit" value="{L_GO}" class="button2" />

open: /styles/prosilver/template/viewtopic_print.html

search:

Code: Select all

<div class="copyright">Powered by phpBB {PHPBB_VERSION} &copy; 2000, 2002, 2005, 2007 phpBB Group<br />http://www.phpbb.com/</div>

replace with:

Code: Select all

<div class="copyright">Powered by phpBB &copy; 2000, 2002, 2005, 2007 phpBB Group<br />http://www.phpbb.com/</div>

i will add later the changes from subSilver2 (table style) to this guide , and olso the stylesheet changes from prosilver later today :mrgreen:
hmm i see its a very long treath new, somebody intresting in a MODx update template changes?
i believe when i posting the subsilver2 and stylesheet the treath going to be verry full :P
maby i can increase the topic than :P
Sorry for the long topic :oops:
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Re: [GUIDE] Template changes for phpBB3

Post by stickerboy » Mon Jul 30, 2007 2:54 pm

Haha, nice work Raimon.
All day i've been going to post about this :P
Eagerly awaiting your subSilver2 changes :twisted:
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [GUIDE] Template changes for phpBB3

Post by Raimon » Mon Jul 30, 2007 3:43 pm

Now the stylesheet changes off prosilver :mrgreen:

open /styles/prosilver/theme/buttons.css

search:

Code: Select all

a.sendemail {
	background-image: none;
	width: 22px;
}
after add:

Code: Select all

a.sendemail:hover {
	background-position: 0 -18px;
}
open /styles/prosilver/theme/common.css

search:

Code: Select all

ul.navlinks {
	padding-bottom: 1px;
after add:

Code: Select all

	margin-bottom: 1px;
find:

Code: Select all

p.rules {
add before:

Code: Select all

div.rules li {
	margin-left: 20px;
}
open /styles/prosilver/theme/forms.css

search:

Code: Select all

/* Specific layout 1 */
fieldset.fields1 dt {
	width: 10em;
replace with:

Code: Select all

/* Specific layout 1 */
fieldset.fields1 dt {
	width: 15em;
search:

Code: Select all

fieldset.fields1 dd {
	margin-left: 10em;
replace with:

Code: Select all

fieldset.fields1 dd {
	margin-left: 15em;
find:

Code: Select all

input.tiny		{ width: 110px; }
replace with:

Code: Select all

input.tiny		{ width: 125px; }
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [GUIDE] Template changes for phpBB3

Post by Raimon » Mon Jul 30, 2007 3:44 pm

cherokee red wrote:Haha, nice work Raimon.
All day i've been going to post about this :P
Eagerly awaiting your subSilver2 changes :twisted:
Yeah i beat Cherokee red :P :P
I going new to begin with the changes of subSilver2 :mrgreen:
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

User avatar
Ladysarajane
Registered User
Posts: 441
Joined: Sat Feb 18, 2006 10:05 pm

Re: [GUIDE] Template changes for phpBB3

Post by Ladysarajane » Mon Jul 30, 2007 10:19 pm

Thank you....I need this! And I eagerly await the subsilver2 changes also. :D
When all else fails, read the instructions

psm
Registered User
Posts: 76
Joined: Thu Apr 24, 2003 3:00 pm

Re: [GUIDE] Template changes for phpBB3

Post by psm » Mon Jul 30, 2007 10:51 pm

Open: /styles/prosilver/template/viewforum_body.html
*SNIP*
search:

Code: Select all

    <!-- IF S_IS_POSTABLE -->
replace with:

Code: Select all

    <!-- IF S_DISPLAY_POST_INFO -->
This one is a bit ackward... I found the <!-- IF S_IS_POSTABLE --> part twice and was unsure, wether to change both (which i did)
Image

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [GUIDE] Template changes for phpBB3

Post by Raimon » Mon Jul 30, 2007 10:57 pm

New for the subSilver2 (table style) changes ;) ;

open: /styles/subSilver2/template/index_body.html

search:

Code: Select all

		<td class="cat" colspan="2"><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4></td>

replace with:

Code: Select all

<td class="cat" colspan="2"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></td>
search:

Code: Select all

<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" />&nbsp; <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" />&nbsp; <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>

replace with:

Code: Select all

<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" />&nbsp; <!-- IF S_AUTOLOGIN_ENABLED --> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF -->&nbsp; <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>

open: /styles/subSilver2/template/mcp_approve.html

search:

Code: Select all

<span class="gen" style="color:red">{ADDITIONAL_MSG}</span><br />

replace with:

Code: Select all

<span class="gen error">{ADDITIONAL_MSG}</span><br />
open: /styles/subSilver2/template/mcp_logs.html

search:

Code: Select all

		<td class="cat" colspan="5" align="center"><input class="btnlite" type="submit" name="action[del_marked]" value="{L_DELETE_MARKED}" />&nbsp; <input class="btnlite" type="submit" name="action[del_all]" value="{L_DELETE_ALL}" /></td>

replace with:

Code: Select all

		<td class="cat" colspan="5" align="center"><input class="btnlite" type="submit" name="action[del_all]" value="{L_DELETE_ALL}" />&nbsp; <input class="btnlite" type="submit" name="action[del_marked]" value="{L_DELETE_MARKED}" /></td>
		
open: /styles/subSilver2/template/mcp_move.html

search:

Code: Select all

<span class="gen" style="color:red">{ADDITIONAL_MSG}</span><br />

replace with:

Code: Select all

<span class="gen error">{ADDITIONAL_MSG}</span><br />

open: /styles/subSilver2/template/mcp_notes_user.html

search:

Code: Select all

<td class="cat" colspan="5" align="center"><input class="btnlite" type="submit" name="action[del_marked]" value="{L_DELETE_MARKED}" />&nbsp; <input class="btnlite" type="submit" name="action[del_all]" value="{L_DELETE_ALL}" /></td>

replace with:

Code: Select all

		[code]<td class="cat" colspan="5" align="center"><input class="btnlite" type="submit" name="action[del_all]" value="{L_DELETE_ALL}" />&nbsp; <input class="btnlite" type="submit" name="action[del_marked]" value="{L_DELETE_MARKED}" /></td>
[/code]

open: /styles/subSilver2/template/mcp_topic.html

search:

Code: Select all

		<td><span class="genmed nowrap"><input type="radio" class="radio" name="icon" value="0"<!-- IF not S_TOPIC_ICON --> checked="checked"<!-- ENDIF --> />{L_NO_TOPIC_ICON}</span> <!-- BEGIN topic_icon --><span class="nowrap"><input type="radio" class="radio" name="icon" value="{topic_icon.ICON_ID}"<!-- IF topic_icon.S_CHECKED --> checked="checked"<!-- ENDIF --> /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" hspace="2" vspace="2" /></span><!-- END topic_icon --></td>

replace with:

Code: Select all

		<td><span class="genmed nowrap"><input type="radio" class="radio" name="icon" value="0"<!-- IF not S_TOPIC_ICON --> checked="checked"<!-- ENDIF --> />{L_NO_TOPIC_ICON}</span> <!-- BEGIN topic_icon --><span class="nowrap"><input type="radio" class="radio" name="icon" value="{topic_icon.ICON_ID}"<!-- IF topic_icon.S_CHECKED --> checked="checked"<!-- ENDIF --> /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" hspace="2" vspace="2" /></span> <!-- END topic_icon --></td>
open: /styles/subSilver2/template/memberlist_view.html

search:

Code: Select all

	<tr>
				<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_AGE}: </td>
				<td><!-- IF AGE --><b class="genmed">{AGE}</b><!-- ENDIF --></td>
			</tr>
replace with:

Code: Select all

	<!-- IF AGE -->
			<tr>
				<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_AGE}: </td>
				<td><b class="genmed"><!-- IF AGE -->{AGE}<!-- ELSE --> - <!-- ENDIF --></b></td>
			</tr>
			<!-- ENDIF -->

open: /styles/subSilver2/template/overall_header.html

search:

Code: Select all

<!-- IF T_STYLESHEET_LINK -->
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<!-- ELSE -->
<style type="text/css">
{T_THEME_DATA}
</style>
<!-- ENDIF -->
replace with:

Code: Select all

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

open: /styles/subSilver2/template/posting_body.html

search:

Code: Select all

	<h3 style="color:red">{L_FORUM_RULES}</h3><br />

replace with:

Code: Select all

<h3>{L_FORUM_RULES}</h3><br />
search:

Code: Select all

<h3 style="color:red">{L_FORUM_RULES}</h3><br />

replace with:

Code: Select all

<h3>{L_FORUM_RULES}</h3><br />
search:

Code: Select all

<td class="row2" colspan="2" align="center"><span class="genmed" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

		<td class="row2" colspan="2" align="center"><span class="genmed error">{ERROR}</span></td>

open: /styles/subSilver2/template/posting_review.html

search:

Code: Select all

<tr> 
	<th>{L_PREVIEW}</th>
replace with:

Code: Select all

<tr>
	<th align="center">{L_POST_REVIEW}</th>
</tr>
<tr>
	<td class="row1" align="center"><span class="gen">{L_POST_REVIEW_EXPLAIN}</span></td>

search:

Code: Select all

<tr> 
	<td class="row1">{MINI_POST_IMG}<span class="postdetails">{L_POSTED}: {POST_DATE} &nbsp;&nbsp;&nbsp; {L_POST_SUBJECT}: {PREVIEW_SUBJECT}</span></td>
replace with:

Code: Select all

<tr>
	<td class="spacer"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
search:

Code: Select all

<!-- IF S_HAS_POLL_OPTIONS -->
	<tr>
		<td class="row2" colspan="2" align="center"><br clear="all" />
			<table cellspacing="0" cellpadding="4" border="0" align="center">
			<tr>
				<td align="center"><span class="gen"><b>{POLL_QUESTION}</b></span><br /><span class="gensmall">{L_POLL_LENGTH}</span></td>
replace with:

Code: Select all

<tr>
	<td class="row1">
		<table class="tablebg" width="100%" cellspacing="1">
		<tr>
			<th width="22%">{L_AUTHOR}</th>
			<th>{L_MESSAGE}</th>
		</tr>
		<!-- BEGIN post_review_row -->

			<!-- IF post_review_row.S_ROW_COUNT is even -->	<tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->

				<td rowspan="2" align="{S_CONTENT_FLOW_BEGIN}" valign="top"><a id="pr{post_review_row.POST_ID}"></a>
					<table width="150" cellspacing="0" cellpadding="4" border="0">
					<tr>
						<td align="center"><b class="postauthor">{post_review_row.POST_AUTHOR_FULL}</b></td>
					</tr>
					</table>
				</td>
				<td width="100%">
					<table width="100%" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td>&nbsp;</td>
						<td class="gensmall" valign="middle" nowrap="nowrap"><b>{L_POST_SUBJECT}:</b>&nbsp;</td>
						<td class="gensmall" width="100%" valign="middle">{post_review_row.POST_SUBJECT}</td>
						<td>&nbsp;</td>
					</tr>
					</table>
				</td>
search:

Code: Select all

<tr>
				<td align="center">
					<table cellspacing="0" cellpadding="2" border="0">
					<!-- BEGIN poll_option -->
						<tr>
							<td>
							<!-- IF S_IS_MULTI_CHOICE -->
								<input type="checkbox" class="radio" name="vote_id" value="" />
							<!-- ELSE -->
								<input type="radio" class="radio" name="vote_id" value="" />
							<!-- ENDIF -->
							</td>
							<td><span class="gen">{poll_option.POLL_OPTION_CAPTION}</span></td>
						</tr>
					<!-- END poll_option -->
replace with:

Code: Select all

<!-- IF post_review_row.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->

				<td valign="top">
					<table width="100%" cellspacing="0">
					<tr>
						<td valign="top">
							<table width="100%" cellspacing="0" cellpadding="2">
							<tr>
								<td><div class="postbody">{post_review_row.MESSAGE}</div>

								<!-- IF post_review_row.S_HAS_ATTACHMENTS -->
									<br clear="all" /><br />

									<table class="tablebg" width="100%" cellspacing="1">
									<tr>
										<td class="row3"><b class="genmed">{L_ATTACHMENTS}: </b></td>
									</tr>
									<!-- BEGIN attachment -->
										<tr>
											<!-- IF post_review_row.attachment.S_ROW_COUNT is even --><td class="row2"><!-- ELSE --><td class="row1"><!-- ENDIF -->{post_review_row.attachment.DISPLAY_ATTACHMENT}</td>
										</tr>
									<!-- END attachment -->
									</table>
								<!-- ENDIF -->
								
								</td>
							</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table width="100%" cellspacing="0" cellpadding="0" border="0">
							<tr valign="middle">
								<td width="100%">&nbsp;</td>
								<td width="10" nowrap="nowrap"><!-- IF S_IS_BOT -->{post_review_row.MINI_POST_IMG}<!-- ELSE --><a href="{post_review_row.U_MINI_POST}">{post_review_row.MINI_POST_IMG}</a><!-- ENDIF --></td>
								<td class="gensmall" nowrap="nowrap"><b>{L_POSTED}:</b> {post_review_row.POST_DATE}</td>
							</tr>
							</table>
						</td>
					</tr>
search:

Code: Select all

<td align="center"><span class="gensmall">{L_MAX_VOTES}</span></td>

replace with:

Code: Select all

	<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>


search:

Code: Select all

</table>
		</td>
	</tr>
<!-- ENDIF -->
<tr> 
	<td class="row1">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td><div class="postbody">{PREVIEW_MESSAGE}</div>
			<!-- IF .attachment -->
				<br clear="all" /><br />

				<table class="tablebg" width="100%" cellspacing="1">
				<tr>
					<td class="row3"><b class="genmed">{L_ATTACHMENTS}: </b></td>
				</tr>
				<!-- BEGIN attachment -->
					<tr>
						<td class="row2">{attachment.DISPLAY_ATTACHMENT}</td>
					</tr>
				<!-- END attachment -->
				</table>
			<!-- ENDIF -->
			<!-- IF PREVIEW_SIGNATURE --><span class="postbody"><br />_________________<br />{PREVIEW_SIGNATURE}</span><!-- ENDIF --></td>
		</tr>
replace with:

Code: Select all

<!-- END post_review_row -->
search:

Code: Select all

	<tr>
	<td class="spacer"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
and delete


open: /styles/subSilver2/template/ucp_groups_manage.html

search:

Code: Select all

<td class="row2"><input class="button2" type="submit" name="display_gallery" value="{L_DISPLAY_GALLERY}" /></td>

replace with:

Code: Select all

<td class="row2"><input class="btnmain" type="submit" name="display_gallery" value="{L_DISPLAY_GALLERY}" /></td>


search:

Code: Select all

	<td class="row2"><select name="category" id="category">{S_CAT_OPTIONS}</select>&nbsp;<input class="button2" type="submit" value="{L_GO}" name="display_gallery" /></td>

replace with:

Code: Select all

		<td class="row2"><select name="category" id="category">{S_CAT_OPTIONS}</select>&nbsp;<input class="btnmain" type="submit" value="{L_GO}" name="display_gallery" /></td>

search:

Code: Select all

<td class="row2"><input class="button2" type="submit" name="cancel" value="{L_CANCEL}" /></td>
		
replace with:

Code: Select all

		<td class="row2"><input class="btnmain" type="submit" name="cancel" value="{L_CANCEL}" /></td>
		
search:

Code: Select all

	<td class="cat" colspan="2" align="center"><input class="button1" type="submit" id="submit" name="update" value="{L_SUBMIT}" />&nbsp;
		<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" /></td>

replace with:

Code: Select all

<td class="cat" colspan="2" align="center"><input class="btnlite" type="submit" id="submit" name="update" value="{L_SUBMIT}" />&nbsp;
		<input class="btnmain" type="reset" id="reset" name="reset" value="{L_RESET}" /></td>

search:

Code: Select all

<td><a href="{leader.U_USER_VIEW}">{leader.USERNAME}</a></td>

replace with:

Code: Select all

<td>{leader.USERNAME_FULL}</td>

search:

Code: Select all

<td><a href="{member.U_USER_VIEW}">{member.USERNAME}</a></td>

replace with:

Code: Select all

<td>{member.USERNAME_FULL}</td>

search:

Code: Select all

	<td class="cat" colspan="5" align="center"><div style="float: {S_CONTENT_FLOW_END};"><span class="small"><a href="#" onclick="marklist('ucp', 'mark', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('ucp', 'mark', false); return false;">{L_UNMARK_ALL}</a></span></div><div style="float: {S_CONTENT_FLOW_BEGIN};"><select name="action"><option class="sep" value="">{L_SELECT_OPTION}</option>{S_ACTION_OPTIONS}</select> <input class="button2" type="submit" name="update" value="{L_SUBMIT}" /></div></td>

replace with:

Code: Select all

	<td class="cat" colspan="5" align="center"><div style="float: {S_CONTENT_FLOW_END};"><span class="small"><a href="#" onclick="marklist('ucp', 'mark', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('ucp', 'mark', false); return false;">{L_UNMARK_ALL}</a></span></div><div style="float: {S_CONTENT_FLOW_BEGIN};"><select name="action"><option class="sep" value="">{L_SELECT_OPTION}</option>{S_ACTION_OPTIONS}</select> <input class="btnmain" type="submit" name="update" value="{L_SUBMIT}" /></div></td>


search:

Code: Select all

<td class="cat" colspan="2" align="center"><input class="button2" type="submit" name="addusers" value="{L_SUBMIT}" /></td>


replace with:

Code: Select all

		<td class="cat" colspan="2" align="center"><input class="btnmain" type="submit" name="addusers" value="{L_SUBMIT}" /></td>


open: /styles/subSilver2/template/ucp_main_drafts.html

search:

Code: Select all

<td class="row1" colspan="2" align="center"><span class="genmed" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

<td class="row1" colspan="2" align="center"><span class="genmed error">{ERROR}</span></td>

open: /styles/subSilver2/template/ucp_main_front.html

search:

Code: Select all

		<td><!-- IF POSTS_PCT --><b class="gen">{POSTS}</b><br /><span class="genmed">[{POSTS_PCT} / {POSTS_DAY}]<br /><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></span><!-- ELSE --><b class="gen">{POSTS}<b><!-- ENDIF --></td>

replace with:

Code: Select all

		<td><!-- IF POSTS_PCT --><b class="gen">{POSTS}</b><br /><span class="genmed">[{POSTS_PCT} / {POSTS_DAY}]<br /><a href="{U_SEARCH_SELF}">{L_SEARCH_YOUR_POSTS}</a></span><!-- ELSE --><b class="gen">{POSTS}<b><!-- ENDIF --></td>

open: /styles/subSilver2/template/ucp_pm_message_footer.html

search:

Code: Select all

	<form name="movepm" method="post" action="{S_PM_ACTION}" style="margin:0px">
						<input type="hidden" name="marked_msg_id[]" value="{MSG_ID}" />
						<input type="hidden" name="cur_folder_id" value="{CUR_FOLDER_ID}" />
						<input type="hidden" name="p" value="{MSG_ID}" />
						<select name="dest_folder">{S_TO_FOLDER_OPTIONS}</select>&nbsp;<input class="btnlite" type="submit" name="move_pm" value="{L_MOVE_TO_FOLDER}" />
					</form>
replace with:

Code: Select all

<!-- IF not S_SPECIAL_FOLDER -->
						<form name="movepm" method="post" action="{S_PM_ACTION}" style="margin:0px">
							<input type="hidden" name="marked_msg_id[]" value="{MSG_ID}" />
							<input type="hidden" name="cur_folder_id" value="{CUR_FOLDER_ID}" />
							<input type="hidden" name="p" value="{MSG_ID}" />
							<select name="dest_folder">{S_TO_FOLDER_OPTIONS}</select>&nbsp;<input class="btnlite" type="submit" name="move_pm" value="{L_MOVE_TO_FOLDER}" />
						</form>
					<!-- ENDIF -->
open: /styles/subSilver2/template/ucp_pm_options.html

search:

Code: Select all

		<!-- IF ERROR_MESSAGE --><span class="genmed" style="color:red">{ERROR_MESSAGE}</span><!-- ENDIF -->
			<!-- IF NOTIFICATION_MESSAGE --><span class="genmed" style="color:red">{NOTIFICATION_MESSAGE}</span><!-- ENDIF -->


replace with:

Code: Select all

		<!-- IF ERROR_MESSAGE --><span class="genmed error">{ERROR_MESSAGE}</span><!-- ENDIF -->
			<!-- IF NOTIFICATION_MESSAGE --><span class="genmed error">{NOTIFICATION_MESSAGE}</span><!-- ENDIF -->

open: /styles/subSilver2/template/ucp_pm_viewmessage.html

search:

Code: Select all

<span class="gensmall" style="color:red;"><br /><br />{L_DOWNLOAD_NOTICE}</span>

replace with:

Code: Select all

		<span class="gensmall error"><br /><br />{L_DOWNLOAD_NOTICE}</span>


open: /styles/subSilver2/template/ucp_prefs_personal.html

search:

Code: Select all

		<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</span></td>


replace with:

Code: Select all

		<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>


open: /styles/subSilver2/template/ucp_prefs_post.html

search:

Code: Select all

	<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
	
open: /styles/subSilver2/template/ucp_prefs_view.html

search:

Code: Select all

<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
	

open: /styles/subSilver2/template/ucp_profile_avatar.html

search:

Code: Select all

<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

		<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
	
open: /styles/subSilver2/template/ucp_profile_profile_info.html

search:

Code: Select all

	<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
	
search:

Code: Select all

<tr> 
	<td class="row1" width="35%"><b class="genmed">{L_BIRTHDAY}: </b><br /><span class="gensmall">{L_BIRTHDAY_EXPLAIN}</span></td>
	<td class="row2"><span class="genmed">{L_DAY}:</span> <select name="bday_day">{S_BIRTHDAY_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="bday_month">{S_BIRTHDAY_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="bday_year">{S_BIRTHDAY_YEAR_OPTIONS}</select></td>
</tr>
replace with:

Code: Select all

<!-- IF S_BIRTHDAYS_ENABLED -->
	<tr> 
		<td class="row1" width="35%"><b class="genmed">{L_BIRTHDAY}: </b><br /><span class="gensmall">{L_BIRTHDAY_EXPLAIN}</span></td>
		<td class="row2"><span class="genmed">{L_DAY}:</span> <select name="bday_day">{S_BIRTHDAY_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="bday_month">{S_BIRTHDAY_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="bday_year">{S_BIRTHDAY_YEAR_OPTIONS}</select></td>
	</tr>
<!-- ENDIF -->
search:

Code: Select all

	<td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall" style="color:red">{profile_fields.ERROR}</span><!-- ENDIF --></td>

replace with:

Code: Select all

		<td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall error">{profile_fields.ERROR}</span><!-- ENDIF --></td>

open: /styles/subSilver2/template/ucp_profile_reg_details.html

search:

Code: Select all

	<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

	<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
	
open: /styles/subSilver2/template/ucp_register.html

search:

Code: Select all

	<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</td>

replace with:

Code: Select all

<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</td>

search:

Code: Select all

	<td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall" style="color:red">{profile_fields.ERROR}</span><!-- ENDIF --></td>

replace with:

Code: Select all

		<td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall error">{profile_fields.ERROR}</span><!-- ENDIF --></td>


open: /styles/subSilver2/template/ucp_zebra_foes.html

search:

Code: Select all

	<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

	<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
	
open: /styles/subSilver2/template/ucp_zebra_friends.html

search:

Code: Select all

		<td class="row3" colspan="2" align="center"><span class="gensmall" style="color:red">{ERROR}</span></td>

replace with:

Code: Select all

		<td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>

open: /styles/subSilver2/template/viewforum_body.html

search:

Code: Select all

	<h3 style="color:red">{L_FORUM_RULES}</h3><br />

replace with:

Code: Select all

<h3>{L_FORUM_RULES}</h3><br />
search:

Code: Select all

	<h3 style="color:red">{L_FORUM_RULES}</h3><br />

replace with:

Code: Select all

<h3>{L_FORUM_RULES}</h3><br />
search:

Code: Select all

<!-- IF S_IS_POSTABLE or TOTAL_TOPICS -->
replace with:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO or TOTAL_TOPICS -->

search:

Code: Select all

	<!-- IF S_IS_POSTABLE and not S_IS_BOT -->

replace with:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO and not S_IS_BOT -->

search:

Code: Select all

<!-- IF S_IS_POSTABLE -->
and deleted

search:

Code: Select all

<table width="100%" cellspacing="1">
		<tr>
			<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle"><!-- IF not S_IS_BOT --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a><!-- ENDIF --></td>
			<td class="nav" nowrap="nowrap">&nbsp;{PAGE_NUMBER}</td>
			<td class="gensmall" nowrap="nowrap">&nbsp;[ {TOTAL_TOPICS} ]</td>
			<td class="nav" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
replace with:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO or TOTAL_TOPICS -->
		<table width="100%" cellspacing="1">
		<tr>
			<!-- IF S_DISPLAY_POST_INFO and not S_IS_BOT -->
				<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle"><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a></td>
			<!-- ENDIF -->
			<!-- IF TOTAL_TOPICS -->
				<td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
				<td class="gensmall" nowrap="nowrap">&nbsp;[ {TOTAL_TOPICS} ]&nbsp;</td>
				<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
			<!-- ENDIF -->
search:

Code: Select all

<br clear="all" />
	<!-- ENDIF -->
replace with:

Code: Select all

	<!-- ENDIF -->

		<br clear="all" />
search:

Code: Select all

<!-- IF S_IS_POSTABLE -->
replace with:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO -->
open: /styles/subSilver2/template/viewonline_body.html

search:

Code: Select all

	<td class="row1"><p class="gen"><!-- IF user_row.U_USER_PROFILE --><a href="{user_row.U_USER_PROFILE}"><!-- ENDIF -->{user_row.USERNAME}<!-- IF user_row.U_USER_PROFILE --></a><!-- ENDIF --></p><!-- IF user_row.USER_IP --><p class="gensmall">{L_IP}: <a href="{user_row.U_USER_IP}">{user_row.USER_IP}</a> &#187; <a href="{user_row.U_WHOIS}" onclick="popup('{user_row.U_WHOIS}', 750, 500);return false">{L_WHOIS}</a></p><!-- ENDIF --></td>
replace with:

Code: Select all

	<td class="row1"><p class="gen">{user_row.USERNAME_FULL}</p><!-- IF user_row.USER_IP --><p class="gensmall">{L_IP}: <a href="{user_row.U_USER_IP}">{user_row.USER_IP}</a> &#187; <a href="{user_row.U_WHOIS}" onclick="popup('{user_row.U_WHOIS}', 750, 500);return false">{L_WHOIS}</a></p><!-- ENDIF -->
			<!-- IF user_row.USER_BROWSER -->{user_row.USER_BROWSER}<!-- ENDIF --></td>

open: /styles/subSilver2/template/viewtopic_body.html

search:

Code: Select all

	<h3 style="color:red">{L_FORUM_RULES}</h3><br />

replace with:

Code: Select all

<h3>{L_FORUM_RULES}</h3><br />
search:

Code: Select all

	<h3 style="color:red">{L_FORUM_RULES}</h3><br />

replace with:

Code: Select all

<h3>{L_FORUM_RULES}</h3><br />
search:

Code: Select all

	<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap"><!-- IF not S_IS_BOT --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF --></td>
replace with:

Code: Select all

<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
		<!-- IF not S_IS_BOT -->
			<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<!-- ENDIF -->
			<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
		<!-- ENDIF -->
		</td>
search:

Code: Select all

<span class="gensmall" style="color:red;"><br /><br />{L_DOWNLOAD_NOTICE}</span>

replace with:

Code: Select all

	<span class="gensmall error"><br /><br />{L_DOWNLOAD_NOTICE}</span>

search:

Code: Select all

	<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap"><!-- IF not S_IS_BOT --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF --></td>
replace with:

Code: Select all

<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
		<!-- IF not S_IS_BOT -->
			<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<!-- ENDIF -->
			<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
		<!-- ENDIF -->
		</td>
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [GUIDE] Template changes for phpBB3

Post by Raimon » Mon Jul 30, 2007 11:01 pm

psm wrote:
Open: /styles/prosilver/template/viewforum_body.html
*SNIP*
search:

Code: Select all

    <!-- IF S_IS_POSTABLE -->
replace with:

Code: Select all

    <!-- IF S_DISPLAY_POST_INFO -->
This one is a bit ackward... I found the <!-- IF S_IS_POSTABLE --> part twice and was unsure, wether to change both (which i did)
the full line of that code is:

Code: Select all

<!-- IF S_IS_POSTABLE -->
	<h3>{L_FORUM_PERMISSIONS}</h3>
	<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->
is it maby little easier to get :)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

psm
Registered User
Posts: 76
Joined: Thu Apr 24, 2003 3:00 pm

Re: [GUIDE] Template changes for phpBB3

Post by psm » Mon Jul 30, 2007 11:05 pm

so the second one can be left as is?
Image

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [GUIDE] Template changes for phpBB3

Post by Raimon » Mon Jul 30, 2007 11:19 pm

Yes, if it is not written that you must change, you don't have to change it ;)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

psm
Registered User
Posts: 76
Joined: Thu Apr 24, 2003 3:00 pm

Re: [GUIDE] Template changes for phpBB3

Post by psm » Tue Jul 31, 2007 5:53 am

Raimon wrote:Yes, if it is not written that you must change, you don't have to change it ;)
which is simply unclear. if you make a user search for a line, that occurs twice and one of them has to be changed, then you have to clarify that...


like so:

Search for:

Code: Select all

<!-- IF S_IS_POSTABLE -->
   <h3>{L_FORUM_PERMISSIONS}</h3>
   <p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->
change to:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO -->
   <h3>{L_FORUM_PERMISSIONS}</h3>
   <p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->
same effect, but nothing is unclear... this is especially essential with very common lines. don't forget, that there are enough users out there that just follow instructions and are unaware of code functions as such.


also, code-changes that does not make sense should not be included, it just add the possibility of failure...

again viewforum_body.html
search:

Code: Select all

    <li class="rightside"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
replace with:

Code: Select all

    <li class="rightside"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
they are exactly the same, so why change?
things like that are an issue with couple of codelines you posted. Don't take me wrong, I appreciate your work. And obviously I am following your instruction. But most users just follow them without doublechecking. so they are dependent on you instructions, which then turn out to be flawed...
Image

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [GUIDE] Template changes for phpBB3

Post by Raimon » Tue Jul 31, 2007 2:26 pm

psm wrote:
Raimon wrote:Yes, if it is not written that you must change, you don't have to change it ;)
which is simply unclear. if you make a user search for a line, that occurs twice and one of them has to be changed, then you have to clarify that...
what is unclear, its quite clear same for when you install a mod and you find 2 the same lines.

like so:

Search for:

Code: Select all

<!-- IF S_IS_POSTABLE -->
   <h3>{L_FORUM_PERMISSIONS}</h3>
   <p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->
change to:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO -->
   <h3>{L_FORUM_PERMISSIONS}</h3>
   <p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->
same effect, but nothing is unclear... this is especially essential with very common lines. don't forget, that there are enough users out there that just follow instructions and are unaware of code functions as such.
when you following my text, you find only one code that doing that, the first postable have you already change in a other code.

also, code-changes that does not make sense should not be included, it just add the possibility of failure...

again viewforum_body.html
search:

Code: Select all

    <li class="rightside"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
replace with:

Code: Select all

    <li class="rightside"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
they are exactly the same, so why change?
things like that are an issue with couple of code lines you posted. Don't take me wrong, I appreciate your work. And obviously I am following your instruction. But most users just follow them without double checking. so they are dependent on you instructions, which then turn out to be flawed...
Failure, must users always noticed over here, that code i have change because it have a more space ton RC3 and on RC4 not.
But for the nicer codes you can change it ;), but i get you point when you find 2 the same codes, you must always use the first code, until it is writing on the update text.
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

statm
Registered User
Posts: 447
Joined: Thu Jul 21, 2005 11:03 am
Location: NC, USA
Name: Matt
Contact:

Re: [GUIDE] Template changes for phpBB3

Post by statm » Wed Aug 01, 2007 9:49 am

Wow Raimon.. This is so useful thanks for doing this!

How I do it since my subsilver2-based style is so customized I find it MUCH easier to just compare vanilla previous version to vanilla latest version its much much easier to figure what needs to change. Especially if you use a program like WinMerge.

Thanks again!

eFantasy
Registered User
Posts: 34
Joined: Mon Jul 09, 2007 12:59 pm

Re: [GUIDE] Template changes for phpBB3

Post by eFantasy » Fri Aug 03, 2007 12:01 pm

I'm finally done updating my style :P , going to test it now :D
Edit: I get this when testing it, a blank page with this text:
Parse error: parse error, unexpected $ in /homepages/34/d210186478/htdocs/test/cache/tpl_proFantasy_index_body.html.php on line 30

eFantasy
Registered User
Posts: 34
Joined: Mon Jul 09, 2007 12:59 pm

Re: [GUIDE] Template changes for phpBB3

Post by eFantasy » Fri Aug 03, 2007 12:34 pm

Ok, I purged the cache, now I get this:
Parse error: parse error, unexpected $ in /homepages/34/d210186478/htdocs/test/includes/template.php(158) : eval()'d code on line 30

Locked

Return to “[3.0.x] Styles Support & Discussion”