News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Bug in post indicators for recycle bin

Started by Douglas, June 13, 2011, 02:20:57 AM

Previous topic - Next topic

Douglas

When you click on MARK READ, it actually sets them as new topics so the new post indicators don't go away.

This is done after the posts are removed.  Click on "MARK READ" and the "new posts" indicator comes on and doesn't go away.

2.0 Gold, only one mod installed (Twitter integration).
Using quick checkboxes for moderation. No errors in error log
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

emanuele

The problem is that when the topic is moved to the recycle board, maxMsgID is updated to the last message id excluding the recycle board, so when the mark as read button is used in the recycle board before another post is made, the recycle board is marked as unread.

The question is why the maxMsgID is changed when a post is deleted?
It's almost useless because anyway the new id_msg (and so id_last_msg) will always be higher then the previous one...am I wrong?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Illori

this is still happening? should this be tracked if so?

emanuele

Bump to get opinions in order to avoid break anything...more than I usually do! :P

So a fix would be to remove the change of maxMsgID when a post is deleted and including the recycle board in the counts of mark as read.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Spuds

I honestly don't know ... seems worrisome to me  :-X 

Would really need to look at the code to see how and where that is used.  Maybe someone familiar with that one can comment on how that var is used. 

Arantor

Holder of controversial views, all of which my own.


Advertisement: