The Counter is to indicate how many views the user made in all forums
Example
Posts: 50
Views: 120
I found a guidance for the version 2
PHP Code:
Show amount of threads each user has viewed.
Execute the following mysql query:
-------------------------------
ALTER TABLE user ADD views MEDIUMINT UNSIGNED DEFAULT 0 NOT NULL;
-------------------------------
Edit showthread.php, find:
-------------------------------
if ($noshutdownfunc) {
-------------------------------
And add above that:
-------------------------------
if ($bbuserinfo['userid']!=0) {
if ($noshutdownfunc) {
$DB_site->query("UPDATE user SET views=views+1 WHERE userid='$bbuserinfo[userid]'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET views=views+1 WHERE userid='$bbuserinfo[userid]'";
}
}
-------------------------------
Edit the postbit template and find:
-------------------------------
Posts: $post[posts]
-------------------------------
And add after that:
-------------------------------
<br>Views: $post[views]
-------------------------------
Edit the getinfo template and find:
-------------------------------
<tr>
<td bgcolor="#1C5780"><normalfont><b>Total Posts:</b></normalfont></td>
<td bgcolor="#1C5780"><normalfont>$userinfo[posts] ($postsperday posts per day)</normalfont></td>
</tr>
-------------------------------
And add after that:
-------------------------------
<tr>
<td bgcolor="#1C5780"><normalfont><b>Total Views:</b></normalfont></td>
<td bgcolor="#1C5780"><normalfont>$userinfo[views]</normalfont></td>
</tr>
-------------------------------Show amount of threads each user has viewed.
Execute the following mysql query:
-------------------------------
ALTER TABLE user ADD views MEDIUMINT UNSIGNED DEFAULT 0 NOT NULL;
-------------------------------
Edit showthread.php, find:
-------------------------------
if ($noshutdownfunc) {
-------------------------------
And add above that:
-------------------------------
if ($bbuserinfo['userid']!=0) {
if ($noshutdownfunc) {
$DB_site->query("UPDATE user SET views=views+1 WHERE userid='$bbuserinfo[userid]'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET views=views+1 WHERE userid='$bbuserinfo[userid]'";
}
}
-------------------------------
Edit the postbit template and find:
-------------------------------
Posts: $post[posts]
-------------------------------
And add after that:
-------------------------------
<br>Views: $post[views]
-------------------------------
Edit the getinfo template and find:
-------------------------------
<tr>
<td bgcolor="#1C5780"><normalfont><b>Total Posts:</b></normalfont></td>
<td bgcolor="#1C5780"><normalfont>$userinfo[posts] ($postsperday posts per day)</normalfont></td>
</tr>
-------------------------------
And add after that:
-------------------------------
<tr>
<td bgcolor="#1C5780"><normalfont><b>Total Views:</b></normalfont></td>
<td bgcolor="#1C5780"><normalfont>$userinfo[views]</normalfont></td>
</tr>
-------------------------------