PDA

View Full Version : Double thread views count


Outlaw
11-10-2002, 08:42 PM
I was wondering what part of the software code if changed will produce a double thread views count?
is it the $noshutdownfunc? if so, in this case the value should be set to 1 or 0?

It sounds a little awkward, but we need to do this for a while for publicity reasons.

We used to have this as an error, and now when we want it I can't figure it out! :rolleyes:

JulianD
11-11-2002, 02:12 AM
in showthread.php find:


if ($noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}


Modify those two queries, I guess you know what to edit to achieve a double thread view :)

Outlaw
11-11-2002, 03:56 AM
Thanks JulianD

so

if ($noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+2 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+2 WHERE threadid='$threadid'";
}


is that it?

JulianD
11-11-2002, 05:09 AM
Yeap.... It should do the job!