The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Subscribed Threads in Notifications Details »» | |||||||||||||||||||||||||||||
As seen on www.pentaxforums.com/forums/ , I'm bringing you a handy mod that adds the number of new subscribed threads to the notifications area, as well as a link to subscription.php. This means that whenever someone replies to one of your subscribed threads, you don't have to check your user cp or your e-mail inbox- just click on the notification! Notifications can also be reset via the User CP (memcached version only*).
This mod is provided free of charge, but I ask that the copyright and contact information be retained within the SOURCE. There are no visible copyrights for this mod. Furthermore, I ask that you do not re-use this code without my permission. Non-Memcached Version: Time to install: <1 minute (upload 1 product file) Current Version: 1.1.0 Queries: 1 per pageload for logged in users Templates: 0 New Phrases: 1 Compatibility: vB 3.7.x-4.x Love this mod? Support further projects by donating: http://www.pentaxforums.com/forums/donations/ Enjoy and don't forget to mark this as installed if you decide to use it! Limited support will be offered to those who click install. Note to owners of large forums: I also offer a version of this mod that does not add any global queries and instead utilizes memcached. I can install this premium version on your site for an hourly charge, assuming your server already has memcached installed. Send me a PM for details. Download Now
Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
hhwforum, markoroots |
Comments |
#52
|
|||
|
|||
I've updated the original post with the latest version of the memcache version of this modification, which uses memcache for both count tracking and thread read times. In the future, I may release the further-improved version which uses memcache only for count tracking.
The non-memcache version of this mod is provided as-is and is not supported. It uses the same queries as the other version, however, so it really should work. I had a look at the code, and saw no problems. There must be something wrong with your forum's read marking- it must not be properly updating the threadread table. |
#53
|
|||
|
|||
Well, there are two bugs in this product:
Bug #1 There aren't notifications for email based subscriptions. I mean, members only get notifications of threads subscriptions made with the option "without email notification". If someone has a thread subscribed with instant/daily/weekly email notification then they will not receive notifications in the top right corner but email notifications will be dispatched to the member's inbox as usual. Bug #2 (strange) After marking all forums read the subscribed threads notification is still present (it's always 1). I remember it was working fine but now it isn't. That's why I'm marking this bug as strange. I'm talking about the NOMEMCACHED version running in a vB 3.8.5 forum. The programmer already said that that version is provided as-is so we can't expect any further updates |
#54
|
|||
|
|||
I don't believe this is an issue with the plugin itself. I've tested both of these things successfully on two separate forums. All I can think of is that other settings/plugins are conflicting with it. I also use is on my own site, on which the users aren't reporting any problems (at least after I introduced the "clear notifications" feature )
To debug bug #2, go into the threadread table and see if all records for your username have the same timestamp. If not, then the discrepancy is what the system is picking up as a new thread. Try the memcached version- it's a lot better! |
#55
|
|||
|
|||
Quote:
First of all thank you for the useful info. I went ahead and performed the following SQL query: Code:
SELECT * FROM `threadread` ORDER BY `threadread`.`userid` ASC LIMIT 0 , 30 Is 'readtime' the timestamp that you're talking about? If so, is there anything wrong with my threadread table? |
#56
|
|||
|
|||
Now you should run a similar query on the subscription table to see which threads you're subscribed to. Then we can take a look and compare.
|
#57
|
|||
|
|||
I ran this:
Code:
SELECT * FROM `subscribethread` ORDER BY `subscribethread`.`userid` ASC LIMIT 0 , 30 It looks like the subscribethread table doesn't have a timestamp column so how to compare against the threadread table? If I read the thread then the notification disappear (as designed). Issue here is that after marking all threads as read (mark forums as read) the notifications for subscribed threads don't disappear. |
#58
|
|||
|
|||
I even performed the following SQL queries:
Code:
DELETE FROM subscribethread; DELETE FROM threadread; |
#59
|
|||
|
|||
Quote:
I see two solutions: 1. Checking the last time the forum was marked read before running the subscribed thread query 2. Updating threadread where userid = $vbulletin->userinfo['userid'] with TIMENOW when $_REQUEST['do'] == 'markread' by adding code to the plugin |
#60
|
|||
|
|||
Since forumcache doesn't store the forum read time, I went with #2 and implemented that. Note that now the notifications will clear when you mark all forums read, but not when you mark an individual forum.
|
#61
|
|||
|
|||
Thanks for the workaround. I'll try it soon.
Uhm... the memcache enabled version doesn't have this issue, right? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|