vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Subscribed threads in notifications (https://vborg.vbsupport.ru/showthread.php?t=267329)

MoMan 07-23-2011 10:00 PM

Subscribed threads in notifications
 
1 Attachment(s)
This is a re-release of my subscribed threads mod for vb 3.8: https://vborg.vbsupport.ru/showthread.php?t=250461 It has been reported to work on vB 4.x.

What does it do?

It adds a notification whenever any of your subscribed threads are updated (i.e. they contain unread posts). These notifications make it much easier for users to find what's new on the forum.

It uses the same code as the native vbulletin thread marking system, and supports cookie-based marking as well as database marking.

How do I install?

Upload the attached product file via the admin control panel.

------------------

Enjoy!

https://vborg.vbsupport.ru/attachmen...1&d=1284434953

chriske 07-24-2011 12:21 PM

Will try this out! Thanks :)

Edit:
Is it possible to make an option so that members can choose (in usercp) if they want to receive these notifications?

MoMan 07-24-2011 01:15 PM

Quote:

Originally Posted by chriske (Post 2224278)
Will try this out! Thanks :)

Edit:
Is it possible to make an option so that members can choose (in usercp) if they want to receive these notifications?

Yes it is- in fact, I have such an option on my site. Just add a new profile field (preferebly a checkbox labeled as "disable notifications") via your admin cp, and then change one line in the plugin:

PHP Code:

if ($vbulletin->userinfo['userid'] > 0)



PHP Code:

if ($vbulletin->userinfo['userid'] > AND !$vbulletin->userinfo['fieldX'])



where X is the number of the custom profile field you just added.

LOGECT 07-24-2011 01:25 PM

1 Attachment(s)
Great mod, thanks a lot.
Please let me know why that 'New Subscribed Threads' phrase doesn't appear here ?

https://vborg.vbsupport.ru/attachmen...1&d=1311517497

Thank you.

chriske 07-24-2011 02:11 PM

Quote:

Originally Posted by MoMan (Post 2224298)
Yes it is- in fact, I have such an option on my site. Just add a new profile field (preferebly a checkbox labeled as "disable notifications") via your admin cp, and then change one line in the plugin:

PHP Code:

if ($vbulletin->userinfo['userid'] > 0)



PHP Code:

if ($vbulletin->userinfo['userid'] > AND !$vbulletin->userinfo['fieldX'])



where X is the number of the custom profile field you just added.

Thanks for the fast reply :)

Does this disable all notifications?
I don't want my users to be able to disable all notifications.

For instance I use this mod:
FractalizeR: Show items, awaiting moderation in notifications area

BlueCheri 07-24-2011 02:47 PM

Very good mod.

Thanx

rajubd 07-24-2011 03:35 PM

is it possible to add disable mail in subscription thread ? so member can choice which way they want to notify?

MoMan 07-24-2011 06:17 PM

Quote:

Does this disable all notifications?
I don't want my users to be able to disable all notifications.
No, just this one.

Quote:

is it possible to add disable mail in subscription thread ? so member can choice which way they want to notify?
Not currently a feature of this plugin. I don't think very many users would need that.

Quote:

Great mod, thanks a lot.
Please let me know why that 'New Subscribed Threads' phrase doesn't appear here ?
That's weird- check in your phrase manager if the phrase new_subscribed_threads is there, and if not, add it as a global phrase.

Also try changing $vbphrase[new_subscribed_threads] to $vbphrase['new_subscribed_threads'] in the plugin itself, as the former is technically incorrect (I've now fixed this in the xml file).

LOGECT 07-25-2011 06:59 AM

Quote:

Originally Posted by MoMan (Post 2224429)
That's weird- check in your phrase manager if the phrase new_subscribed_threads is there, and if not, add it as a global phrase.

Also try changing $vbphrase[new_subscribed_threads] to $vbphrase['new_subscribed_threads'] in the plugin itself, as the former is technically incorrect (I've now fixed this in the xml file).

Thanks for your reply, the phrase is there and changing $vbphrase[new_subscribed_threads] to $vbphrase['new_subscribed_threads'] doesn't fix the issue.

MoMan 07-25-2011 07:56 AM

Try putting global $vbphrase; in the plugin file, or just hard-code the text if you want it to "just work".


All times are GMT. The time now is 04:08 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.02053 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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