vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   email notification on ALL replies (https://vborg.vbsupport.ru/showthread.php?t=32593)

claytonp 11-22-2001 01:40 PM

Hello,

If I subscribe to a thread, then I receive an email. Contained within this email is the link to that thread and the message:

"There may be other replies also, but you will not receive any more notifications until you visit the board again."

So, in other words if there are replies to the thread I have subscribed to, unless I go to the board (via the link), I will NOT receive any more emails.

Question: Is there a way of receiving emails on ALL replies to that subscribed thread even if I do not visit the board on some occasions ??

I would imagine there is an email check flag I can disable for this ?

Admin 11-22-2001 02:06 PM

Hi again. :)

In functions.php, replace this huge thing:
Code:

  // get last reply time
  if ($postid) {
    $dateline=$DB_site->query_first("SELECT dateline
                                    FROM post
                                    WHERE postid='$postid'");
    $lastposttime=$DB_site->query_first("SELECT dateline
                                        FROM post
                                        WHERE threadid = '$threadid'
                                              AND dateline < $dateline[dateline]
                                              AND visible = 1
                                        ORDER BY dateline DESC
                                        LIMIT 1");
  } else {
    $lastposttime=$DB_site->query_first("SELECT dateline
                                        FROM post
                                        WHERE threadid='$threadid'
                                        ORDER BY dateline DESC
                                        LIMIT 1");
  }

  $useremails=$DB_site->query("SELECT user.*
                              FROM subscribethread,user
                              WHERE subscribethread.threadid='$threadid'
                                AND subscribethread.userid=user.userid
                                AND user.userid<>'$userid'
                                AND user.lastactivity>'$lastposttime[dateline]'");

with just this:
Code:

  $useremails=$DB_site->query("SELECT user.*
                              FROM subscribethread,user
                              WHERE subscribethread.threadid='$threadid'
                                AND subscribethread.userid=user.userid
                                AND user.userid<>'$userid'");

that should be enough.

claytonp 11-23-2001 11:31 AM

Hello Firefly,

Many thanks for your reply.

A while back, I also asked if there was a hack available at forum level, ie. If I subscribe to a forum and requested email notification - whatever new threads or post replies were added to this forum, it would automatically be emailed to that list.

Is this a MAJOR hack ?

If it is, then I'll have to stick with the thread subscription level.

Apologies if this has been asked before.

Admin 11-23-2001 11:46 AM

There is not feature currently to allow getting e-mail notifications for subscribed forums.

But, I think there is a hack for this in the releases forum, by chrispadfield IIRC. :)

vanye 11-23-2001 12:13 PM

Hi Firefly the hack to which you refer we have implemented but it suffers from the same problem as the Thread subscription, ie. you if you subscribe to a Forum you get an email for new posts but if you do not go and read the post you will not get further emails.

So what we want is for users who subscribe to a Forum to get an email for every new thread & reply to a thread posted in that Forum regardless of whether they actually bother to go to the Forum.

I guess that means modifying the Forum hack in light of the hack you posted.

Admin 11-23-2001 12:15 PM

vanye, please show you are a licensed user by going to this page and entering your Customer number and Password. Thanks. :)

vanye 11-23-2001 12:21 PM

As requested

Admin 11-23-2001 12:27 PM

Thanks.

Looking at this code:
https://vborg.vbsupport.ru/showthrea...threadid=18718
it looks like it doesn't work like the threads, it sends you an e-mail every time there is a new thread.

I don't understand.

claytonp 11-23-2001 01:35 PM

Hello Firefly,

I have checked the file functions.php and I cannot locate the piece of code you kindly supplied in this thread...

Am I doing something wrong ?? Or could you tell me where this piece of code is in the file.

The file I checked was \admin\functions.php

Admin 11-23-2001 01:52 PM

The code I posted was added in version 2.2.0, are you still running an earlier version?

claytonp 11-23-2001 01:59 PM

Hello,

Many thanks for your prompt reply.

I am currently running version 2.0.3.

Should I upgrade ?? If I do, is that going to affect my styles and changes I have made ??

Admin 11-23-2001 03:02 PM

You don't have to upgrade, only if you want. :)
Read the announcements in vBulletin.com and decide for yourself.

Anyway, if you want to do this on your version, please find in newreply.php something like this:
Code:

FROM subscribethread,user
and attach in a file the 10 lines above and below.

Or you can just do it the easy way, and e-mail me your newreply.php so I can find it myself. :)

webswimr 01-25-2002 03:12 PM

Thanks for the quick and easy way to make this change. I did notice one problem with it, though. If someone on my Ignore List posts, I still get the email notification. I think that if someone bothers you enough to put them on your Ignore List, the LAST thing you want is to receive emails of their posts.

Any suggestions on how to integrate the Ignore List into this area?

Jim

jshafer817 10-22-2004 03:21 AM

Is there a way to do this with VB3.0.3?

:nervous:

jshafer817 10-22-2004 07:02 AM

OK. I got it working with VB3.0.3

The above mentioned code, works, but doesnt email the acutal post because $pagetext doesnt work, when removing parts of the code.

The attached file is my functions_newpost.php.

It will perform instant email notification to subscribed threads, no matter when the user logged on last.

So this message is now pointless, and has been removed.
"There may be other replies also, but you will not receive any more notifications until you visit the forum again."#

Edited by Dean C : Please do not attach whole vBulletin files, you are breaking your vBulletin license agreement by doing so :)

jshafer817 10-22-2004 01:37 PM

Oh!!! I will remember that!

:nervous:

misaochankun 01-24-2005 09:40 PM

I need something like this for 3.0.3 as well.
I'd like it to email everyone on the forum about a new thread or post to a thread, regardless of when they last looked at it.


All times are GMT. The time now is 03:51 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.01290 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete