Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Subscribed Threads in Notifications Details »»
Subscribed Threads in Notifications
Version: 1.1.1, by MoMan MoMan is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 09-13-2010 Last Update: 08-08-2011 Installs: 50
Uses Plugins
 
No support by the author.

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

File Type: xml product-adam_subsct.xml (3.0 KB, 236 views)

Screenshots

File Type: png adams_new_thread_notifications.png (12.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
hhwforum, markoroots

Comments
  #62  
Old 11-15-2010, 04:39 AM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, because the last read time is stored in memcache, and updated when you mark forums read
Reply With Quote
  #63  
Old 11-16-2010, 11:52 AM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do have another question regarding your memcache enabled version. You said:

Quote:
The memcached-enabled version caches the new thread count for 5 minutes
So do it means that the notifications aren't going to be in "real time" and there could be a delay of 5 minutes?
Reply With Quote
  #64  
Old 11-16-2010, 03:01 PM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right, it can take up to 5 minutes for a notification to pop up after a reply has been made to a subscribed thread. However, once you open the thread, the notification is cleared immediately.
Reply With Quote
  #65  
Old 11-21-2010, 01:42 PM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is another annoying bug in the NOMEMCACHED version.

Sometimes the product is adding notifications properly but sometimes when a subscribed thread gets updated (someone replies to it) the product isn't adding notifications. So in other words, sometimes it work and sometimes it doesn't. It appears to be a random behavior.

I don't know if the memcache-enabled version of your product is better or doesn't have this bug and I'd like to use the memcache-enabled one instead of the NOMEMCACHED version but as I already told you I'm running xCache not Memcache so let allow me to insist with this:

Quote:
Instead of making use of Memcache specific code why don't you simply make use of vBulletin cache, and if your vB uses xCache/Memcache/etc., then the hack will get advantage of this? Also if you go in this way you will not need two versions of your mod anymore as because if your vB doesn't make use of any cache then nothing will be cached.
https://vborg.vbsupport.ru/showpost....8&postcount=25

Quote:
Is there any documentation on that? I'll gladly tweak the public version of this mod to use the vBulletin interface if such an interface is available.
https://vborg.vbsupport.ru/showpost....2&postcount=26

I was talking about this.
Reply With Quote
  #66  
Old 11-21-2010, 01:56 PM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just updating the bugs in the NOMEMCACHED version for anyone interested:

Quote:
Originally Posted by jscieza View Post
Bug #1 - Status: the bug is still present. Note: programmer is unable to reproduce this bug.
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 - Status: this has been fixed (check here and here)
After marking all forums read the subscribed threads notification is still present (it's always 1).

Bug #3 - Status: Awaiting reply from the programmer
Sometimes the product is adding notifications properly but sometimes when a subscribed thread gets updated (someone replies to it) the product isn't adding notifications. So in other words, sometimes it work and sometimes it doesn't. It appears to be a random behavior.
Reply With Quote
  #67  
Old 11-30-2010, 03:20 PM
MjrNuT's Avatar
MjrNuT MjrNuT is offline
 
Join Date: Jun 2008
Location: NorCal
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can confirm Bug #2 in the one day of using the Non-memcached version.

I tried the memcached version but do not have a memcacher server available to me.

uninstalled
Reply With Quote
  #68  
Old 11-30-2010, 08:03 PM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bug #2 has been already fixed by the programmer.
Quote:
Note that now the notifications will clear when you mark all forums read, but not when you mark an individual forum.
And it's working fine now.

Issue here are bugs #1 and #3.
Reply With Quote
  #69  
Old 12-01-2010, 03:47 AM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to remind you that the non-memcached version isn't supported, and that I use the memcached version of this on my own site with no problems. If there were bugs, my members would have complained.

Perhaps there's some sort of setting conflict with your particular installations (this goes back to the cookie-based vs database thread marking), I'm not sure.
Reply With Quote
  #70  
Old 12-14-2010, 11:49 PM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've updated both versions of this mod:

If a soft-deleted thread was still unread, a notification would be shown even though the thread wouldn't be visible to the user. I've now added an AND visible = 1 statement to the query to avoid such conflicts. I recommend you upgrade to 1.0.3 if you're using the non-memcached version of the mod.
Reply With Quote
  #71  
Old 12-15-2010, 01:17 PM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi MoMan,

Now all the bugs listed here are resolved.

Thanks for updating your hack

Regards,
Jonathan
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04885 seconds
  • Memory Usage 2,341KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete