##############################################################
## :
## :
## .
##
## :
## : ~ 5 .
##
## :
## -> index.php,
## -> templates/subSilver/index_body.tpl
##
## :
##
##############################################################
## Back Up
##############################################################
##
#
#-----[ ]-----------------------------------------
#
index.php

#
#-----[ ]-----------------------------------------
#
//
// Find which forums are visible for this user
//

#
#-----[ ]------------------------------
#
//MOD : Forum Views Counter - Start
$sql = "SELECT forum_id, SUM(topic_views) AS topic_views
FROM " . TOPICS_TABLE . "
GROUP BY forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forum counter information', '', __LINE__, __FILE__, $sql);
}
$topic_views = array();
while( $row = $db->sql_fetchrow($result) )
{
$topic_views[$row['forum_id'] ][] = $row['topic_views'];
}
$db->sql_freeresult($result);
// MOD : Forum Views Counter - End

#
#-----[ ]------------------------------------------
#
if ( count($forum_moderators[$forum_id]) > 0 )
#
#-----[ ]-------------------------------
#
// MOD : Forum Views Counter - Start
$forum_views = 0;
for ($fv=0; $fv < count($topic_views); $fv++)
{
$forum_views += $topic_views[$forum_id][$fv];
}
// MOD : Forum Views Counter - End


#
#-----[ ]------------------------------------------
#
'LAST_POST' => $last_post,

#
#-----[ ]-------------------------------
#
// MOD : Forum Views Counter - Start
'VIEWS' => $forum_views,
// MOD : Forum Views Counter - End

#
#-----[ ]-----------------------------------------
#
templates/subSilver/index_body.tpl

#
#-----[ ]-----------------------------------------
# : :
# <td class="rowpic" colspan="3" align="right"></td>
#
<td class="rowpic" colspan="{%:1}" align="right"></td>

#
#-----[ ]-------------------------------------
# : 1 colspan:
# <td class="rowpic" colspan="4" align="right"></td>
#
%:1 +1

#
#-----[ ]------------------------------------------
#
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>

#
#-----[ ]-------------------------------
#
<!-- MOD : Forum Views Counter - Start -->
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.VIEWS}</span></td>
<!-- MOD : Forum Views Counter - End -->


#
#-----[ ]------------------------------------------
#
<th class="thCornerR" nowrap="nowrap">{L_LASTPOST}</th>

#
#-----[ ]-------------------------------
#
<!-- MOD : Forum Views Counter - Start -->
<th width="50" class="thTop" nowrap="nowrap">{L_VIEWS}</th>
<!-- MOD : Forum Views Counter - End -->

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

- : --> 1<--

. !










/ /