Previous Thread
Next Thread
Print Thread
Hop To
#128802 05/10/2006 5:21 PM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
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
A
member
member
A Offline
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
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Really? Do you know what causing it?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 182
A
member
member
A Offline
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
F
member
member
F Offline
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
F
member
member
F Offline
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
F
member
member
F Offline
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
R
Former Developer
Former Developer
R Offline
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
R
Former Developer
Former Developer
R Offline
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
F
member
member
F Offline
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???


http://clubadventist.com/forums

No longer following the carrot
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
This should look exactly as it looks at the moment.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 631 guests, and 152 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)