Page 1 of 1

Forum & Topic Icons

Posted: 10 Mar 2010, 22:17
by Stoker
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:
forum.png
forum2.png
Open index.php
Find:

Code: Select all

'FORUM_NEW_LOCKED_IMG'	=> $user->img('forum_unread_locked', 'NO_NEW_POSTS_LOCKED'),
Add after:

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'),
Open language/en/viewforum.php
Find:

Code: Select all

'VIEW_FORUM_TOPICS'		=> '%d topics',
Add after:

Code: Select all

'TOPIC_ICONS'			=> 'Topic Icons',
Open language/en/common.php
Find:

Code: Select all

'FORUM_CAT'				=> 'Forum category',
Add after:

Code: Select all

'FORUM_ICONS'			=> 'Forum Icons',
Open styles/prosilver/template/index_body.html
Find:

Code: Select all

<!-- INCLUDE overall_footer.html -->
Before add:

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 -->
Open styles/prosilver/template/viewforum_body.html
Find:

Code: Select all

<!-- IF S_DISPLAY_POST_INFO -->
	<h3>{L_FORUM_PERMISSIONS}</h3>
	<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
<!-- ENDIF -->
Replace with:

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 -->
Upload changed files and refresh template.
Enjoy!

Re: Forum & Topic Icons

Posted: 26 Apr 2010, 12:51
by Xsit3d
Not sure what you have done but I can only see the Topic Icons on THIS site when I am not signed in.

The mod worked perfectly though for my site. Thanks.

Re: Forum & Topic Icons

Posted: 03 Jul 2010, 20:35
by juanla
Not found in phpbb 3.0.7-Pl ?

Re: Forum & Topic Icons

Posted: 03 Jul 2010, 21:11
by cisco007
what is not found in 3.0.7? i can find all the edits!

Re: Forum & Topic Icons

Posted: 04 Jul 2010, 03:51
by juanla
Yes, sorry, im wrong. :$