Can you help ?
EDIT
Well after searching my old site I finally found the coding. I'm just posting this if any one else would want it.
#
#-----[ OPEN ]------------------------------------------------
#
modules/Forums/viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_views = topic_views + 1
WHERE topic_id = '$topic_id'";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql);
}
#
#-----[ REPLACE WITH ]-----------------------------------------
#
/*****[BEGIN]*****************************************
[ Mod: Stop Author View Increase v1.0.1 ]
******************************************************/
if (!($postrow[0]['user_id'] == $userdata['user_id'])) {
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_views = topic_views + 1
WHERE topic_id = '$topic_id'";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql);
}
}
/*****[END]*******************************************
[ Mod: Stop Author View Increase v1.0.1 ]
******************************************************/
#
#-----[ SAVE/CLOSE/UPLOAD THE FILE ]--------------------------
Sign In
Create Account










Back to top








