Add Hit count back to article.php3
Brought to you by:
joestewart,
nhruby
Interim addition to article.php3. The hit count was not being incremented on each view.
265a266,273
> /* increment the hit counter */
>
> $q = "UPDATE psl_story
> SET hits = hits + 1
> WHERE story_id = $story_id";
>
> $sl_q->query($q);
>
Do you mean the logging mod?
patched in, but I'm leaving this bug open because we shouuld really make a variable. I personally don't want to run an update everytime an article is loaded.
closing bug because I added a variable called 'updatearticlehits' which article.php3 now checks before updating the table.