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?


All times are GMT. The time now is 01:41 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.01109 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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