[phpBB 2.0] Template code changes 2.0.17 -> 2.0.18

Tutorials for creation, installation and management of phpBB styles.

Moderator: Moderators

[phpBB 2.0] Template code changes 2.0.17 -> 2.0.18

Postby PostBot on Sun Oct 30, 2005 5:46 pm

This is code changes for subSilver.

When applying to other styles (especially styles on this website) you might not find some code. You shouldn't worry about it and ignore that code because those are tiny bug fixes. Make sure you make changes in directory "admin" and files login_body.tpl and autologin for index_body.tpl. Other changes are not so important.
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
admin/board_config_body.tpl

#
#-----[ FIND ]------------------------------------------
#
   <tr>
      <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>

#
#-----[ 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 ]------------------------------------------
#
admin/forum_admin_body.tpl

#
#-----[ FIND ]------------------------------------------
#
      <td class="catRight" align="center" valign="middle"><span class="gen">&nbsp</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <td class="catRight" align="center" valign="middle"><span class="gen">&nbsp;</span></td>

#
#-----[ OPEN ]------------------------------------------
#
admin/index_frameset.tpl

#
#-----[ FIND ]------------------------------------------
#
<html>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<html dir="{S_CONTENT_DIRECTION}">

#
#-----[ OPEN ]------------------------------------------
#
admin/page_header.tpl

#
#-----[ FIND ]------------------------------------------
#
<html>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<html dir="{S_CONTENT_DIRECTION}">

#
#-----[ OPEN ]------------------------------------------
#
admin/styles_addnew_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<P>{L_STYLES_ADD_TEXT}</p>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<p>{L_STYLES_ADD_TEXT}</p>

#
#-----[ FIND ]------------------------------------------
#
</table></form>

#
#-----[ REPLACE WITH ]------------------------------------------
#
</table>

#
#-----[ OPEN ]------------------------------------------
#
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>

#
#-----[ OPEN ]------------------------------------------
#
admin/styles_list_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<P>{L_STYLES_TEXT}</p>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<p>{L_STYLES_TEXT}</p>

#
#-----[ FIND ]------------------------------------------
#
</table></form>

#
#-----[ REPLACE WITH ]------------------------------------------
#
</table>

#
#-----[ OPEN ]------------------------------------------
#
admin/user_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#
      <input class="post" type="text" name="avatarurl" size="40" class="post" style="width: 200px"  />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input class="post" type="text" name="avatarurl" size="40" style="width: 200px"  />

#
#-----[ FIND ]------------------------------------------
#
      <input class="post" type="text" name="avatarremoteurl" size="40" class="post" style="width: 200px"  />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input class="post" type="text" name="avatarremoteurl" size="40" style="width: 200px"  />

#
#-----[ OPEN ]------------------------------------------
#
bbcode.tpl

#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->

#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</a><!-- END email -->

#
#-----[ OPEN ]------------------------------------------
#
groupcp_info_body.tpl

#
#-----[ FIND ]------------------------------------------
#
      <td class="row2"><span class="gen"><span class="gen">

#
#-----[ IN-LINE FIND ]------------------------------------------
#
<span class="gen"><span class="gen">

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<span class="gen">

#
#-----[ FIND ]------------------------------------------
#
      <td class="catBottom" colspan="8" align="right"><span class="cattitle">
         <input type="submit" name="remove" value="{L_REMOVE_SELECTED}" class="mainoption" />
      </td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <td class="catBottom" colspan="8" align="right">
         <span class="cattitle"><input type="submit" name="remove" value="{L_REMOVE_SELECTED}" class="mainoption" /></span>
      </td>

#
#-----[ OPEN ]------------------------------------------
#
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 ]------------------------------------------
#
      <input class="post" type="password" name="password" size="10" maxlength="32" />
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      &nbsp;&nbsp;&nbsp;

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input class="post" type="password" name="password" size="10" maxlength="32" />
      <!-- BEGIN switch_allow_autologin -->
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      <!-- END switch_allow_autologin -->
      &nbsp;&nbsp;&nbsp;

#
#-----[ OPEN ]------------------------------------------
#
login_body.tpl

#
#-----[ FIND ]------------------------------------------
#
        <tr align="center">
         <td colspan="2"><span class="gen">{L_AUTO_LOGIN}: <input type="checkbox" name="autologin" /></span></td>
        </tr>

#
#-----[ REPLACE WITH ]------------------------------------------
#
        <!-- BEGIN switch_allow_autologin -->
        <tr align="center">
         <td colspan="2"><span class="gen">{L_AUTO_LOGIN}: <input type="checkbox" name="autologin" /></span></td>
        </tr>
        <!-- END switch_allow_autologin -->

#
#-----[ OPEN ]------------------------------------------
#
overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}"

#
#-----[ IN-LINE FIND ]------------------------------------------
#
</span><span class="mainmenu">&nbsp; &nbsp;<a href="{U_SEARCH}"

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
&nbsp; &nbsp;<a href="{U_SEARCH}"

#
#-----[ FIND ]------------------------------------------
#
                  &nbsp;<a href="{U_REGISTER}" class="mainmenu">

#
#-----[ IN-LINE FIND ]------------------------------------------
#
{L_REGISTER}</a></span>&nbsp;

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
{L_REGISTER}</a>&nbsp;

#
#-----[ FIND ]------------------------------------------
#
                  <!-- END switch_user_logged_out -->
                  </td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
                  <!-- END switch_user_logged_out -->
                  </span></td>

#
#-----[ OPEN ]------------------------------------------
#
profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
#
      <input type="text" name="icq" class="post"style="width: 100px"  size="10" maxlength="15" value="{ICQ}" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input type="text" name="icq" class="post" style="width: 100px"  size="10" maxlength="15" value="{ICQ}" />

#
#-----[ FIND ]------------------------------------------
#
      <input type="text" class="post"style="width: 150px"  name="aim" size="20" maxlength="255" value="{AIM}" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input type="text" class="post" style="width: 150px"  name="aim" size="20" maxlength="255" value="{AIM}" />

#
#-----[ FIND ]------------------------------------------
#
      <input type="text" class="post"style="width: 150px"  name="msn" size="20" maxlength="255" value="{MSN}" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input type="text" class="post" style="width: 150px"  name="msn" size="20" maxlength="255" value="{MSN}" />

#
#-----[ FIND ]------------------------------------------
#
      <input type="text" class="post"style="width: 150px"  name="yim" size="20" maxlength="255" value="{YIM}" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input type="text" class="post" style="width: 150px"  name="yim" size="20" maxlength="255" value="{YIM}" />

#
#-----[ FIND ]------------------------------------------
#
      <input type="text" class="post"style="width: 200px"  name="website" size="25" maxlength="255" value="{WEBSITE}" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input type="text" class="post" style="width: 200px"  name="website" size="25" maxlength="255" value="{WEBSITE}" />

#
#-----[ FIND ]------------------------------------------
#
      <input type="text" class="post"style="width: 200px"  name="location" size="25" maxlength="100" value="{LOCATION}" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input type="text" class="post" style="width: 200px"  name="location" size="25" maxlength="100" value="{LOCATION}" />

#
#-----[ FIND ]------------------------------------------
#
      <input type="text" class="post"style="width: 200px"  name="occupation" size="25" maxlength="100" value="{OCCUPATION}" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input type="text" class="post" style="width: 200px"  name="occupation" size="25" maxlength="100" value="{OCCUPATION}" />

#
#-----[ FIND ]------------------------------------------
#
      <input type="text" class="post"style="width: 200px"  name="interests" size="35" maxlength="150" value="{INTERESTS}" />

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <input type="text" class="post" style="width: 200px"  name="interests" size="35" maxlength="150" value="{INTERESTS}" />

#
#-----[ FIND ]------------------------------------------
#
      <textarea name="signature"style="width: 300px"  rows="6" cols="30" class="post">{SIGNATURE}</textarea>

#
#-----[ REPLACE WITH ]------------------------------------------
#
      <textarea name="signature" style="width: 300px" rows="6" cols="30" class="post">{SIGNATURE}</textarea>

#
#-----[ OPEN ]------------------------------------------
#
search_body.tpl

#
#-----[ FIND ]------------------------------------------
#
      <td class="row2" valign="middle" nowrap="nowrap"><span class="genmed"><select class="post" name="sort_by">{S_SORT_OPTIONS}

#
#-----[ IN-LINE FIND ]------------------------------------------
#
checked />

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
checked="checked" />

#
#-----[ OPEN ]------------------------------------------
#
search_results_posts.tpl

#
#-----[ FIND ]------------------------------------------
#
   <td class="catHead" colspan="2" height="28"><span class="topictitle"><img src="templates/subSilver/images/folder.gif"

#
#-----[ IN-LINE FIND ]------------------------------------------
#
align="absmiddle">

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
align="absmiddle" />

#
#-----[ OPEN ]------------------------------------------
#
subSilver.cfg

#
#-----[ FIND ]------------------------------------------
#
$images['topic_watch'] = "";

#
#-----[ REPLACE WITH ]------------------------------------------
#
$images['Topic_watch'] = "";

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Return to phpBB Styles Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

cron