.

: 10

## index.php

## viewforum.php

## viewtopic.php

## admin/admin_forums.php

## language/lang_english/lang_admin.php

## templates/subSilver/admin/forum_admin_body.tpl

## templates/subSilver/admin/forum_edit_body.tpl

## templates/subSilver/index_body.tpl

## templates/subSilver/viewforum_body.tpl

## templates/subSilver/viewtopic_body.tpl






#-----[ SQL ]------------------------------------------

#

# phpBB

ALTER TABLE phpbb_forums ADD forum_icon VARCHAR(255) DEFAULT NULL;

#

#-----[ ]------------------------------------------

#

language/lang_english/lang_admin.php

#

#-----[ ]------------------------------------------

#

$lang['Forum_status']

#

#-----[ ]------------------------------------------

#

$lang['Forum_icon'] = 'Forum icon'; // Forum Icon MOD

$lang['Forum_icon_explain'] = 'e.g. If your image is at <b>http://yourdomain/forum_path/images/forum_icon/test.gif</b><br /> then set it as <b>images/forum_icon/test.gif</b>'; // Forum Icon MOD

#

#-----[ ]------------------------------------------

#

admin/admin_forums.php

#

#-----[ ]------------------------------------------

#

$forumstatus = $row['forum_status'];

#

#-----[ ]------------------------------------------

#

$forumicon = $row['forum_icon']; // Forum Icon MOD

#

#-----[ ]------------------------------------------

#

$forumstatus = FORUM_UNLOCKED;

#

#-----[ ]------------------------------------------

#

$forumicon = ''; // Forum Icon MOD

#

#-----[ ]------------------------------------------

#

'L_FORUM_STATUS' => $lang['Forum_status'],

#

#-----[ ]------------------------------------------

#

'L_FORUM_ICON' => $lang['Forum_icon'], // Forum Icon MOD

'L_FORUM_ICON_EXPLAIN' => $lang['Forum_icon_explain'], // Forum Icon MOD

#

#-----[ ]------------------------------------------

#

'DESCRIPTION' => $forumdesc)

#

#-----[ ]------------------------------------------

#

'DESCRIPTION' => $forumdesc,

'ICON' => ( $forumicon ) ? $forumicon : '', // Forum Icon MOD

'ICON_DISPLAY' => ( $forumicon ) ? '<img src="' . $phpbb_root_path . $forumicon . '" />' : '' // Forum Icon MOD

)

#

#-----[ ]------------------------------------------

#

$sql = "INSERT INTO " . FORUMS_TABLE

#

#-----[ ]------------------------------------------

#

, forum_status

#

#-----[ ]------------------------------------------

#

, forum_icon

#

#-----[ ]------------------------------------------

#

VALUES ('" . $next_id . "', '" .

#

#-----[ ]------------------------------------------

#

, " . intval($HTTP_POST_VARS['forumstatus']) . "

#

#-----[ ]------------------------------------------

#

, '" . str_replace("'", "''", $HTTP_POST_VARS['forumicon']) . "'

#

#-----[ ]------------------------------------------

#

SET forum_name = '" . str_replace("'", "''", $HTTP_POST_VARS['forumname']) . "'

#

#-----[ ]------------------------------------------

#

, forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "

#

#-----[ ]------------------------------------------

#

, forum_icon = '" . str_replace("'", "''", $HTTP_POST_VARS['forumicon']) . "'

#

#-----[ ]------------------------------------------

#

'FORUM_DESC' => $forum_rows[$j]['forum_desc'],

#

#-----[ ]------------------------------------------

#

'FORUM_ICON_IMG' => ( $forum_rows[$j]['forum_icon'] ) ? '<img src="' . $phpbb_root_path . $forum_rows[$j]['forum_icon'] . '" alt="'.$forum_data[$j]['forum_name'].'" title="'.$forum_data[$j]['forum_name'].'" border="0" />' : '', // Forum Icon Mod

#

#-----[ ]------------------------------------------

#

index.php

#

#-----[ ]------------------------------------------

#

$posts = $forum_data[$j]['forum_posts'];

$topics = $forum_data[$j]['forum_topics'];

#

#-----[ ]------------------------------------------

#

$icon = $forum_data[$j]['forum_icon']; // Forum Icon Mod

#

#-----[ ]------------------------------------------

#

'FORUM_FOLDER_IMG' => $folder_image,

#

#-----[ ]------------------------------------------

#

'FORUM_ICON_IMG' => ($icon) ? '<img src="' . $phpbb_root_path . $icon . '" alt="'.$forum_data[$j]['forum_name'].'" title="'.$forum_data[$j]['forum_name'].'" border="0" />' : '', // Forum Icon Mod

#

#-----[ ]------------------------------------------

#

viewforum.php

#

#-----[ ]------------------------------------------

#

'FORUM_NAME' => $forum_row['forum_name'],

#

#-----[ ]------------------------------------------

#

'FORUM_ICON_IMG' => ($forum_row['forum_icon']) ? '<img src="' . $phpbb_root_path . $forum_row['forum_icon'] . '" alt="'.$forum_row['forum_name'].'" title="'.$forum_row['forum_name'].'" border="0" /> ' : '', // Forum Icon Mod

#

#-----[ ]------------------------------------------

#

viewtopic.php

#

#-----[ ]------------------------------------------

#

//

// End auth check

//

#

#-----[ ]------------------------------------------

#

// Forum Icon Mod

$sql = "SELECT forum_icon

FROM " . FORUMS_TABLE . "

WHERE forum_id = $forum_id";

if ( !($result = $db->sql_query($sql)) )

{

message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);

}

$forum_row = $db->sql_fetchrow($result);

$forum_icon = $forum_row['forum_icon'];

#

#-----[ ]------------------------------------------

#

'FORUM_NAME' => $forum_name,

#

#-----[ ]------------------------------------------

#

'FORUM_ICON_IMG' => ($forum_icon) ? '<img src="' . $phpbb_root_path . $forum_icon . '" alt="'.$forum_name.'" title="'.$forum_name.'" border="0" /> ' : '', // Forum Icon Mod

#

#-----[ ]------------------------------------------

#

templates/subSilver/admin/forum_edit_body.tpl

#

#-----[ FIND ]------------------------------------------

#

<td class="row2"><input type="text" size="25" name="forumname" value="{FORUM_NAME}" class="post" /></td>

</tr>

#

#-----[ ]------------------------------------------

#

<tr>

<td class="row1">{L_FORUM_ICON}<br /><span class="gensmall">{L_FORUM_ICON_EXPLAIN}</span></td>

<td class="row2"><input type="text" size="35" name="forumicon" value="{ICON}" class="post" />   {ICON_DISPLAY}</td>

</tr>

#

#-----[ ]------------------------------------------

#

templates/subSilver/admin/forum_admin_body.tpl

#

#-----[ ]------------------------------------------

#

<td class="row2"><span class="gen"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span>

#

#-----[ ]------------------------------------------

#

<td class="row2"><span class="gen">

#

#-----[ ]------------------------------------------

#

{catrow.forumrow.FORUM_ICON_IMG}  

#

#-----[ ]------------------------------------------

#

templates/subSilver/index_body.tpl

#

#-----[ ]------------------------------------------

#

<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />

</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />

</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>

#

#-----[ ]------------------------------------------

#

<td class="row1" width="100%" height="50"><table width="100%" cellpadding="2" cellspacing="0" border="0">

<tr><td><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_ICON_IMG}</a></td>

<td width="100%"><span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />

</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />

</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span>

</td>

</tr>

</table></td>

#

#-----[ ]------------------------------------------

#

templates/subSilver/viewforum_body.tpl

#

#-----[ ]------------------------------------------

#

<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a>

#

#-----[ ]------------------------------------------

#

<td align="left" valign="bottom" colspan="2">

#

#-----[ IN-LINE AFTER, ADD ]------------------------------------------

#

<a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_ICON_IMG}</a>

#

#-----[ O ]------------------------------------------

#

templates/subSilver/viewtopic_body.tpl

#

#-----[ ]------------------------------------------

#

-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

#

#-----[ ]------------------------------------------

#

<a href="{U_VIEW_FORUM}" class="nav">

#

#-----[ ]------------------------------------------

#

<a href="{U_VIEW_FORUM}" class="nav">{FORUM_ICON_IMG}</a>

#

#-----[ / ]------------------------------------------












/ /