Forum & Topic Icons
Posted: 10 Mar 2010, 22:17
The Forum Icons Table will add the forum icons on index and viewforum.
We only need a few file edits to achieve this.
See screenshots: Open index.php
Find:
Add after:
Open language/en/viewforum.php
Find:
Add after:
Open language/en/common.php
Find:
Add after:
Open styles/prosilver/template/index_body.html
Find:
Before add:
Open styles/prosilver/template/viewforum_body.html
Find:
Replace with:
Upload changed files and refresh template.
Enjoy!
We only need a few file edits to achieve this.
See screenshots: Open index.php
Find:
Code: Select all
'FORUM_NEW_LOCKED_IMG' => $user->img('forum_unread_locked', 'NO_NEW_POSTS_LOCKED'),
Code: Select all
'FORUM_LINK_IMG' => $user->img('forum_link', 'FORUM_LINK'),
'FORUM_NEW_SUBFORUM_IMG' => $user->img('forum_read_subforum', 'NO_NEW_POSTS'),
'FORUM_SUBFORUM_IMG' => $user->img('forum_unread_subforum', 'NEW_POSTS'),
Find:
Code: Select all
'VIEW_FORUM_TOPICS' => '%d topics',
Code: Select all
'TOPIC_ICONS' => 'Topic Icons',
Find:
Code: Select all
'FORUM_CAT' => 'Forum category',
Code: Select all
'FORUM_ICONS' => 'Forum Icons',
Find:
Code: Select all
<!-- INCLUDE overall_footer.html -->
Code: Select all
<!-- IF not S_IS_BOT -->
<div class="panel bg1">
<div class="inner"><span class="corners-top"><span></span></span>
<h3>{L_FORUM_ICONS}</h3>
<table style="width: 80%; margin-left: auto; margin-right: auto;" border="0" cellspacing="4">
<tr>
<td style="width:20px;" class="row1" align="center">{FORUM_NEW_IMG}</td>
<td class="row2"><span class="gensmall">{L_NEW_POSTS}</span></td>
<td style="width:20px;" class="row1" align="center">{FORUM_IMG}</td>
<td class="row2"><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td style="width:20px;" class="row1" align="center">{FORUM_LOCKED_IMG}</td>
<td class="row2"><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
<tr>
<td style="width:20px;" class="row1" align="center">{FORUM_SUBFORUM_IMG}</td>
<td class="row2"><span class="gensmall">{L_SUBFORUM} {L_NEW_POSTS}</span></td>
<td style="width:20px;" class="row1" align="center">{FORUM_NEW_SUBFORUM_IMG}</td>
<td class="row2"><span class="gensmall">{L_SUBFORUM} {L_NO_NEW_POSTS}</span></td>
<td style="width:20px;" class="row1" align="center">{FORUM_LINK_IMG}</td>
<td class="row2"><span class="gensmall">{L_FORUM_LINK}</span></td>
</tr>
</table>
</div><span class="corners-bottom"><span></span></span></div>
<!-- ENDIF -->
Find:
Code: Select all
<!-- IF S_DISPLAY_POST_INFO -->
<h3>{L_FORUM_PERMISSIONS}</h3>
<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->
Code: Select all
<!-- IF S_DISPLAY_POST_INFO -->
<div class="panel bg1">
<div class="inner"><span class="corners-top"><span></span></span>
<table width="100%" cellspacing="0">
<tr>
<td align="{S_CONTENT_FLOW_BEGIN}" valign="top"><h3>{L_TOPIC_ICONS}</h3>
<table cellspacing="4" border="0">
<tr>
<td style="text-align: center;">{FOLDER_NEW_IMG}</td>
<td class="gensmall">{L_NEW_POSTS}</td>
<td style="text-align: center;">{FOLDER_IMG}</td>
<td class="gensmall">{L_NO_NEW_POSTS}</td>
<td style="text-align: center;">{FOLDER_ANNOUNCE_IMG}</td>
<td class="gensmall">{L_ICON_ANNOUNCEMENT}</td>
</tr>
<tr>
<td style="text-align: center;">{FOLDER_HOT_NEW_IMG}</td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td style="text-align: center;">{FOLDER_HOT_IMG}</td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td style="text-align: center;">{FOLDER_STICKY_IMG}</td>
<td class="gensmall">{L_ICON_STICKY}</td>
</tr>
<tr>
<td style="text-align: center;">{FOLDER_LOCKED_NEW_IMG}</td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td style="text-align: center;">{FOLDER_LOCKED_IMG}</td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<td style="text-align: center;">{FOLDER_MOVED_IMG}</td>
<td class="gensmall">{L_TOPIC_MOVED}</td>
</tr>
</table>
</td>
<td align="{S_CONTENT_FLOW_END}" valign="top"><h3>{L_FORUM_PERMISSIONS}</h3>
<span class="gensmall"><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></span></td>
</tr>
</table>
</div><span class="corners-bottom"><span></span></span></div>
<!-- ENDIF -->
Enjoy!