Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2001, 01:40 PM
claytonp claytonp is offline
 
Join Date: Nov 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #2  
Old 11-22-2001, 02:06 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 11-23-2001, 11:31 AM
claytonp claytonp is offline
 
Join Date: Nov 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 11-23-2001, 11:46 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 11-23-2001, 12:13 PM
vanye vanye is offline
 
Join Date: Nov 2001
Location: Frampton Cotterell
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-23-2001, 12:15 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vanye, please show you are a licensed user by going to this page and entering your Customer number and Password. Thanks.
Reply With Quote
  #7  
Old 11-23-2001, 12:21 PM
vanye vanye is offline
 
Join Date: Nov 2001
Location: Frampton Cotterell
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As requested
Reply With Quote
  #8  
Old 11-23-2001, 12:27 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 11-23-2001, 01:35 PM
claytonp claytonp is offline
 
Join Date: Nov 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 11-23-2001, 01:52 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05524 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete