Unread Post Count

Unread Post Count 1.2.0

No permission to download
So that was weird. I uninstalled from ACP. Reinstalled and it kicked me back to 1.0.11 -- and older version than what I was even on. I made sure I overwrote all the files in server when uploading. But just to try everything, I totally deleted the files in my server, and reuploaded. THAT did the job! Crazy how one little thing, that seemingly shouldn't matter as long as you are rewriting files can maybe screw up a whole heck of a lot! Thanks for the idea to uninstall though, because after it kicked me back, it made me go to the drawing board and totally delete the old (yet rewritten) Unread Post Count files in server as well.
 
@Chris D - is this error connected with this Mod?

Code:
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Incorrect key file for table '/tmp/#sql_51c0_2.MYI'; try to repair it - library/Zend/Db/Statement/Mysqli.php:214
Generated By: Vodenazvir, 22 minutes ago
Stack Trace

#0 /home/pijanitv/public_html/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/pijanitv/public_html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/pijanitv/public_html/library/XenForo/Model.php(219): Zend_Db_Adapter_Abstract->query('??????SELECT po...', Array, 2)
#3 /home/pijanitv/public_html/library/XenForo/Model/Post.php(385): XenForo_Model->fetchAllKeyed('??????SELECT po...', 'post_id', Array)
#4 /home/pijanitv/public_html/library/XenForo/ControllerPublic/Thread.php(636): XenForo_Model_Post->getNewestPostsInThreadAfterDate(10648, 1326462719, Array)
#5 /home/pijanitv/public_html/library/XenForo/ControllerPublic/Thread.php(614): XenForo_ControllerPublic_Thread->_getNewPosts(Array, Array, 1326462719, 3)
#6 /home/pijanitv/public_html/library/DoublePost/ControllerPublic/Thread.php(42): XenForo_ControllerPublic_Thread->actionAddReply()
#7 /home/pijanitv/public_html/library/XenForo/FrontController.php(347): DoublePost_ControllerPublic_Thread->actionAddReply()
#8 /home/pijanitv/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/pijanitv/public_html/index.php(13): XenForo_FrontController->run()
#10 {main}

Request State

array(3) {
  ["url"] => string(59) "http://www.pijanitvor.com/index.php?threads/10648/add-reply"
  ["_GET"] => array(1) {
    ["threads/10648/add-reply"] => string(0) ""
  }
  ["_POST"] => array(8) {
    ["message_html"] => string(168) "<p>Pozdrav svima iz Splita,</p><p>Tu sam prvenstveno zbog ribolova do vas sam dosao preko interneta, nadam se dobrim savjetima i razmjenama iskustava. :)</p><p><br></p>"
    ["_xfRelativeResolver"] => string(50) "http://www.pijanitvor.com/index.php?threads/10648/"
    ["last_date"] => string(10) "1326462719"
    ["last_known_date"] => string(10) "1397567255"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(25) "/index.php?threads/10648/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
No

Why would it be? :)

It looks like MySQL has a crashed table. Doesn't necessarily seem to be add-on related. More server related. You should probably speak to your host or server person.
 
I have members coming to me saying that the counter shows they still have X number of unread posts, however they have none. Could it be that it's counting messages in private forums (ie that these members have no access to, such as reports etc) ?
 
No. It's what's discussed a page or two back.

It's where threads have been deleted. It still counts the posts within them as unread.

I have fixed this already but haven't released it yet. I'm currently testing it but I've had feedback that there are some other bugs (exclusive to the new version) so I am trying to fix those.
 
Ok thanks Chris, as I always hard delete any moderated posts, I thought this could be another issue. Perhaps some of my moderators have soft deleted some posts , I'll try and get rid of them :)
 
It's nothing to do with soft deleted or hard deleted or moderated posts. It's all to do with threads.

When a thread is soft deleted or moderated, the posts become inaccessible, but their state in the database remains as "visible". In the next version, the query that ascertains the number of unread posts also checks the thread status. It will only count posts if the thread they are in is visible.

There's probably nothing simple you can do to resolve this. Just tell people to Mark Forums Read if the count is incorrect.
 
I think we're describing the same problem though. If a thread gets hard-deleted, then it's gone , right? Therefore, it won't add to the counter. This issue only occurs when there's a moderated thread with soft-deleted posts.
 
Yeah it's nothing to do with hard deleted threads. The posts are deleted in that case.

If posts are soft deleted before the thread is moderated or deleted (soft deleted) then they will not be counted. If the posts are visible before the thread is moderated or deleted then they will be counted. And that's the issue.

No further discussion needed to be honest. As I say I've already fixed the issue. The only solution you have right now is to advise your members to use the Mark Forums Read link.
 
It looks like you need to use some CSS to float it to the right. Copy the CSS that is used in the drop down of the forum menu that works correctly.
 
It looks like you need to use some CSS to float it to the right. Copy the CSS that is used in the drop down of the forum menu that works correctly.
What templates and code do I need to be looking for. Kind of retarded when it comes to template edits. Sorry!
 
Haven't you already edited the templates yourself to put the count in the Shoutbox navigation? It seems like you would know better than me which templates you've edited so far.
 
Haven't you already edited the templates yourself to put the count in the Shoutbox navigation? It seems like you would know better than me which templates you've edited so far.
I probably did but it was like a year or so ago lol I will try to find em
 
Looks like this was the code I added to dark_taigachat_links
Code:
<li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>

    <xen:include template="unread_posts_count" />
</ul>
 
This is the correct position:
Code:
<li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}<xen:include template="unread_posts_count" /></a></li>

You may need to add some CSS to EXTRA.css too:

Code:
.taigachatTabLinks .postItemCount {
    position: relative;
    top: 0px;
}
 
This is the correct position:
Code:
<li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}<xen:include template="unread_posts_count" /></a></li>

You may need to add some CSS to EXTRA.css too:

Code:
.taigachatTabLinks .postItemCount {
    position: relative;
    top: 0px;
}
Awesome that did the trick!
 
Back
Top Bottom