|
|
Views: 1
Posted under Development by Glenn on Monday May 28 2001 @ 12:32PM EDT
|
I know, picky, picky, picky.. :-)
When I contribute a story for the first time and click submit I'm taken to stories.php with the new item first in line (I'm signed in as the Admin when I post it) but the views already shows as 1 despite the fact that noone has clicked to read the full story as yet.
Glenn
|
|
|
|
John writes on Monday May 28 2001 @ 04:48PM EDT: [ reply | parent ]
Hrm, sounds to me, like you're taking your work with you on your holidays. The PHB will be pleased. =)
The problem is on line 67 of preview.php, at the end of the INSERT sql query, where the initial value for the number of 'hits' is set to 1, instead of 0:
$sql .= "1,";
should read:
$sql .= "0,";
if you'd like the count to start at 0. (I guess it starts at 1 hit, to count your previewing of the story before you submit it - so I'm not sure if a fix to the release is required, but if you want to mod. it yourself, that should be all you need..)
-John
|
|
|
Glenn writes on Monday May 28 2001 @ 05:41PM EDT: [ reply | parent ]
The PHB wouldn't be pleased if...
Nah, nevermind.
But as far as taking work to the beach, check the logs dude...nothing from this kid. Not on that 'blog anyhoo.
Good eye though, I'll edit this one if you edit that one. :-)
Glenn
|
|
|
|
|
|