|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
Some posts are persistently display new post icon although they have been viewed already. The new post dissapears after the viewing then after log off log on it shows that it is new post again but it is not. And no, the posts have not been edited in between.
Has anyone noticed the same? It happens on my board and on this board. I am using Firefox 1.0.
|
|
|
|
Joined: Jun 2006
Posts: 182
member
|
member
Joined: Jun 2006
Posts: 182 |
This has been a well known persistant long standing never solved bug since 6.5 .
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
Really? Do you know what causing it?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
This is one of those things that I've *never* had happen to me. Usually I can isolate and fix a bug fairly easily but when I can't duplicate it do debug what's causing it, it makes it almost impossible <img src="https://www.ubbcentral.com/boards/images/graemlins/frown.gif" alt="" />
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
I have a similar problem here in this board. Every day I see the yellow light bulb on for the classic to threads boards. The last new post schould be in the thread ' Re: Renaming URL's in MYSQ... '
If I enter this forum there is no new or unread for me and if I go back to main Index the light bulb switches to off.
I can repeat this nearly every day. I try to clear the cookies but this doesn't help. I use FireFox too, but I think its not browser related.
|
|
|
|
Joined: Jun 2006
Posts: 182
member
|
member
Joined: Jun 2006
Posts: 182 |
[]This is one of those things that I've *never* had happen to me. Usually I can isolate and fix a bug fairly easily but when I can't duplicate it do debug what's causing it, it makes it almost impossible <img src="https://www.ubbcentral.com/boards/images/graemlins/frown.gif" alt="" /> [/]
It goes like this for me: Locate a forum that has one new thread or post in it, and access it via ubbthreads.php last post.
Then close the browser and reload ubbthreads.php. The forum will be marked as having new posts, albeit it doesn't, since you took a look at that one post already.
As soon you access the forum via postlit.php, then the forum is marked as having no new posts.
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
Same here, if you do not load postlist and go directly to showflat (which the last post links to) then it stays unread. I've looked into the code and OMG, I am surprised it is actually working. For example there is variable $notread = ''; But there are no more $notread variables anywhere instead there are $unread, well same thing really but try to explain this to php interpreter <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" /> then there is $read variable which get passed to a function but does not exist in the function anywhere. Then there is $color variable and $Color variable, this just tells me it's a recipe for disaster. Lots of stuff is commented off so I wonder, maybe something was commented off by mistake?
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
postlist
if ( (isset($Main,$_SESSION['topicread'])) && $Sticky == '2')
should it be
if ( (isset($_SESSION['topicread'][$Main])) && $Sticky == '2')
instead?
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
showflat
is this correct
$query = " SELECT COUNT(*) FROM {$config['tbprefix']}Posts WHERE B_Main = '$current' ";
should $current be not included in '' ?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Yes, that's a definite buggie, refering to the postlist.php one.
Last edited by Rick Baker; 05/11/2006 3:22 PM.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
$current being surround in quotes is fine. It doesn't have to be since it is an int value but doesn't cause any problems when it is.
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
[]This is one of those things that I've *never* had happen to me. Usually I can isolate and fix a bug fairly easily but when I can't duplicate it do debug what's causing it, it makes it almost impossible <img src="https://www.ubbcentral.com/boards/images/graemlins/frown.gif" alt="" /> [/]
I may have found what was causing this...need to test a bit more though.
|
|
|
|
Joined: Jun 2006
Posts: 869
old hand
|
old hand
Joined: Jun 2006
Posts: 869 |
[]showflat
is this correct
$query = " SELECT COUNT(*) FROM {$config['tbprefix']}Posts WHERE B_Main = '$current' ";
should $current be not included in '' ? [/]
So what should this look like???
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
This should look exactly as it looks at the moment.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (1 invisible),
631
guests, and
152
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|