UBB.Dev
Posted By: Extrm Bob Thread View Bug - 11/29/2000 12:16 AM
Attached is a screen shot of the PHP forum on my site. One of my users posted about it yesterday. Last night I changed a couple lines in addpost.php to fix the error when preview is off. I went to make a few test posts and noticed the post about the blacked out view field. I didn't see it and couldn't duplicate it so I thought maybe it was just my users browser acting up. Today I got 3 more mails about it and when I went to check the attachment is what I seen.
Thank you,
Bob

Extreme VB Forums - Visual Basic Help

Attached picture 21-25826-view.gif
Posted By: Rick Re: Thread View Bug - 11/29/2000 12:26 AM
Hmm, interesting. It looks like the views isn't incrementing so nothing gets printed out. And when nothing gets printed out it will do this in some browsers, usually netscape. It's not hard to fix by just printing a nonbreaking space in this column, but need to figure out why the Views aren't incrementing. Thanks for the report.

-------------------
Scream
WWWThreads Developer
Posted By: Rick Re: Thread View Bug - 11/29/2000 12:39 AM
Got a question for ya. How did you setup your tables? Did you do use the perl createtable? The B_Counter field in the w3t_Posts should have a default of '0' in the sql database, so even if there were no views it should show a 0. On your's when you view a post that has an empty thread counter it just shows blank.

-------------------
Scream
WWWThreads Developer
Posted By: Extrm Bob Re: Thread View Bug - 11/29/2000 12:50 AM
When I switched servers I updated the perl version to 5.12 and then installed the php version and used the same db. I used the altertable scripts. Somethings not right. The perl version shows the same and it doesn't seem like the count is incrementing. I dumped the post table just now I notice B_Counter is empty in all new posts. This just started today. But I also noticed if I view a thread from yesterday the count goes up. This seems to be affecting some of the new threads but not all of them.
Thank you,
Bob

Extreme VB Forums - Visual Basic Help
Posted By: Rick Re: Thread View Bug - 11/29/2000 12:53 AM
Ok, the PERL version used to have a problem with this in the initial createtable. What you will probably want to do is go into mysql directly and issue the following command:

ALTER TABLE w3t_Posts CHANGE B_Counter B_Counter INT(9) DEFAULT '0';

That should get it to where old and new threads increment properly.

-------------------
Scream
WWWThreads Developer
Posted By: Extrm Bob Re: Thread View Bug - 11/29/2000 12:55 AM
To see what I mean look here Some of the posts count up but some don't. This is really getting strange. In the mean time I'm going to set the count field to zero and refresh the db and see if that does anything.
I changed B_Counter and refreshed mysql and only some of the posts increment. I did notice now that when I check the post at the top the total views do increment but they don't show on main page. Some of the posts also seem to be stuck on 1 view which shouldn't be because there are 5 or 6 replies to them.
Thank you,
Bob

Extreme VB Forums - Visual Basic Help

Edited by Extrm Bob on 11/28/00 05:06 PM.

© UBB.Developers