vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Subscribed Threads in Notifications (https://vborg.vbsupport.ru/showthread.php?t=250461)

MoMan 10-03-2010 02:47 AM

If it's global, then the phrase should be displaying properly.

jscieza 10-13-2010 05:19 AM

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

Thank you, thank you, thank you!

MoMan 10-19-2010 07:20 AM

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.

Alfa1 10-19-2010 08:58 AM

Thanks. I'll wait on that then.

jscieza 10-22-2010 04:23 PM

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 :)

MoMan 10-23-2010 04:50 AM

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 :p

jscieza 10-23-2010 05:03 PM

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

MoMan 10-24-2010 12:45 AM

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.

jscieza 10-24-2010 05:18 AM

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

MoMan 10-24-2010 05:15 PM

Quote:

Originally Posted by jscieza (Post 2113494)
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.


All times are GMT. The time now is 05:17 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.01038 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete