vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Instant Thread Notification for Subscribed Forums (https://vborg.vbsupport.ru/showthread.php?t=98822)

FQ-Joseph 10-19-2005 10:00 PM

Instant Thread Notification for Subscribed Forums
 

Instant Thread Notification for Subscribed Forums

Purpose:
This plugin allows your members to select "Instant Email Notification" when they are subscribing to a forum, instead of just the default Daily/Weekly Digests. When a new thread is posted in a subscribed forum, all subscribed users are instantly sent an email alerting them.

Modifications:
Code Hacks: 0
New Products: 1
New Plugins: 1
New Phrases: 2
New Templates: 0
Template Changes: 1

Installation Instructions:

Step 1 (Template Change):
Find the following in the "subscribe_choosetype" template (located under "Subscribed Thread Templates" in the template manager):
Quote:

<if condition="$show['subscribetothread']">
<option value="1" $emailselected[1]>$vbphrase[instant_notification_by_email]</option>
</if>
Replace with:
Quote:

<option value="1" $emailselected[1]>$vbphrase[instant_notification_by_email]</option>
(Just remove the if statement)

Step 2 (install product):
Import the product-instantnotif.xml file into your Product Manager.

Enjoy! - It's installed! :D

Any users who were already subscribed to a forum will need to re-subscribe in order to select this new option. ;)

You can change the email subject & body by editing the "foruminstantnotify" phrases located under the "Email Body Text" & "Email Subject Text" phrase types. :)

Daniel 10-20-2005 02:06 AM

Installed, quite nice. Thank you.

Lea Verou 10-20-2005 06:31 AM

I really needed this! Thanks! :D

nexialys 10-20-2005 12:00 PM

the template alteration you suggest will deactivate the choice from the settings to display or not the subscription feature... so everybody will always have the right to subscribe, even if the admin set this to NO... not a good thing...

btw your hack work without the template alteration... and this is a good idea for small sites... but would have a heavy serverloads on websites that bring hundreds of posters each days...

Snake 10-20-2005 12:52 PM

Thanks for this!

FQ-Joseph 10-20-2005 05:24 PM

Quote:

Originally Posted by nexialys
the template alteration you suggest will deactivate the choice from the settings to display or not the subscription feature... so everybody will always have the right to subscribe, even if the admin set this to NO... not a good thing...

I don't think so... ? The template by default will only show the "Instant" option if the users clicked to subscribe to a thread. The alteration simply removes that check, and shows the "Instant" option on all subscribe options pages. If subscriptions are disabled, then that page shouldn't even be accessible (which would be detirmined by a higher "if" then the one I removed). :)

Quote:

Originally Posted by nexialys
this is a good idea for small sites... but would have a heavy serverloads on websites that bring hundreds of posters each days...

Again, I don't think this would be a big problem. My hack uses the mail queuing system, so if you've got a lot of topics being created (and a lot users subscribed to forums) simply activate the queue system and that should help with the load. Also, this plugin will only send an email when a new trhead is created, not when new posts are made. :)

CyberRanger 11-03-2005 01:54 PM

Thx! Exactly what I needed.

Thomas Muhr 01-11-2006 06:37 PM

Dear Joseph,
thanks for this great plug-in, we have successfully implemented it. However, there would be indefinite happiness if we could get the following:
1. When a forum is subscribed change Forum Tools menu item to "Unsubscribe from this Forum"
2. Somehow display the state of being subscribed to a specific forum on the forum's main page.
3. Include the body of the newly posted thread in the notification sent (as is done with thread level notifications) (shouldnt this be an accessible PHP variable??)
4. Being able to recursively un/subscribe to a forum and all its sub forums.

If you can give us any hint to accomplish this I would be very grateful.

Thanks in advance
- Thomas

Peter Walker 02-13-2006 01:30 PM

Hi,
I have installed this hack and find it useful. However, I would like to include the actual text of the new post in the Email.

Here is the contents of my $vbphrase[foruminstantnotify]

Quote:

Reply here: $vboptions[bburl]/showthread.php?p=$newpost[postid]
Posted by : $bbuserinfo[username]
$post[message] $pagetext
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DO NOT REPLY VIA EMAIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Replies sent by email will go to the administrator, not the original poster!
To send a private message to the poster, click on the "Reply here" link
(above) and then on $bbuserinfo[username].
Notes:
- This Topic Notification was sent to: $user[username],
- You are currently subscribed to the forum: $foruminfo[title_clean]
- To unsubscribe from this thread, please visit this page:
$vboptions[bburl]/subscription.php?do=usub&f=$foruminfo[forumid]
The Rife Forum - Instant Subscribed Forum Notify - English (US)
As you can see, I tried both $post[message] and $pagetext (which work with other Email templates), but neither of them will echo the post text.

I would appreciate it if this capability could be added, or someone can tell me how I can add it to my system.

Brock Hamilton 02-14-2006 05:36 AM

in case anyone else wants to know this, Like I just did,

You have to use $newpost[message]


All times are GMT. The time now is 11:45 AM.

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.01124 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
  • (5)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