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
  #22  
Old 10-03-2010, 02:47 AM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it's global, then the phrase should be displaying properly.
Reply With Quote
  #23  
Old 10-13-2010, 05:19 AM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you get a bit of free time, could you please please please make a xCache compatible version?

Thank you, thank you, thank you!
Reply With Quote
  #24  
Old 10-19-2010, 07:20 AM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I ever do get it installed on my server, I'll consider it. As I said earlier, it shouldn't be hard at all.

I've also developed an improved version of this mod for my purposes which uses an added database table instead of memcached to store read marking times. This is much more stable, and if I get time, I'll release it here as well.
Reply With Quote
  #25  
Old 10-19-2010, 08:58 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I'll wait on that then.
Reply With Quote
  #26  
Old 10-22-2010, 04:23 PM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Take in account that caching in memory is faster than storing the information on the database and both ways are stable.

My two cents
Reply With Quote
  #27  
Old 10-23-2010, 04:50 AM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

On my forum, I don't use vB_Datastore_Memcached as the database is actually faster for simple select queries from the datastore than memcached. I use memcached for mods whose queries take > 0.1s, such as iTrader, LXT, latest threads on forum home, and vBulletin's showgroups page, and the database for mods which spit out information that rarely or never changes. I'd still need two versions of the plugin
Reply With Quote
  #28  
Old 10-23-2010, 05:03 PM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will be any noticeable performance impact if we use the non-cache enabled version in a busy forum? Let's say, 250 members and 2,250 guests at the same time with a cookie timeout of 30 minutes.

Thank you,
Jonathan
Reply With Quote
  #29  
Old 10-24-2010, 12:45 AM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Probably not, as it doesn't add any queries for guests. It depends on whether or not mysql is the bottleneck on your site.

The queries in this mod are relatively light unless a user has hundreds of subscribed threads. It shouldn't add much load, but does add 1 query for all users, and 2 additional queries for users with subscribed threads. On my forum, the non-cached version of this mod added just under 0.01s to the generation time of each page. The memcached version, on the other had, doesn't add anything at all, since most of the time, the queries aren't run.
Reply With Quote
  #30  
Old 10-24-2010, 05:18 AM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Thanks for clearing things up.

I went ahead and installed the NOMEMCACHED version of your mod and it appears not to be working at all. There are two problems:
  1. There is no phrase for the notification but in usercp.php or subscription.php. Same problem reported by another user here. I don't know if phrase new_subscribed_threads is declared as global or not. Demo: http://img440.imageshack.us/img440/609/nophrase.jpg
  2. I'm not getting notifications when there are new replies to a subscribed thread.
I'm running vBulletin 3.8.5. Could you please check this?

EDIT: tested on another forum running vBulletin 3.8.1, same issues.

Thank you,
Jonathan
Reply With Quote
  #31  
Old 10-24-2010, 05:15 PM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jscieza View Post
Hello,

Thanks for clearing things up.

I went ahead and installed the NOMEMCACHED version of your mod and it appears not to be working at all. There are two problems:
  1. There is no phrase for the notification but in usercp.php or subscription.php. Same problem reported by another user here. I don't know if phrase new_subscribed_threads is declared as global or not. Demo: http://img440.imageshack.us/img440/609/nophrase.jpg
  2. I'm not getting notifications when there are new replies to a subscribed thread.
I'm running vBulletin 3.8.5. Could you please check this?

EDIT: tested on another forum running vBulletin 3.8.1, same issues.

Thank you,
Jonathan
You should probably add this to init_startup:

$phrasegroups[] = 'user';

OR add a new custom global phrase for the product with the correct key.

This will be included in the next version of the hack.

So you're getting notifications for new threads, but not for threads with replies? That shouldn't be the case. Let me try checking if there are any problems with the code in the simple version.
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 07:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04676 seconds
  • Memory Usage 2,340KB
  • Queries Executed 28 (?)
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
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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