Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by chrispadfield chrispadfield is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-29-2001 Last Update: Never Installs: 7
 
No support by the author.

A few have requested this, me especially so i made it.

What it does: Emails all those who have subscribed to a forum an email telling them about a new thread.

Extra queries: 1 upon every new thread. Extra time processing new threads as emails must be sent.

code changes, 1 in newthread.php and 2 new templates.




CODE CHANGE:

Add:

PHP Code:
// This emails a new thread notification to those subscribed to the forum
    
if ($enableemail) {
      
// do emails

      
$useremails=$DB_site->query("SELECT user.*
                                   FROM subscribeforum,user
                                   WHERE subscribeforum.forumid='
$forumid'
                                     AND subscribeforum.userid=user.userid
                                     AND user.userid<>'
$bbuserinfo[userid]'
                                    "
);

              
$toemail=$val;
              
$forumtitle $foruminfo['title'];
              
$threadinfo['title'] = $subject;

      
$bbuserinfo['username']=unhtmlspecialchars($bbuserinfo['username']);
      while (
$touser=$DB_site->fetch_array($useremails)) {
        
$touser['username']=unhtmlspecialchars($touser['username']);

        eval(
"\$emailmsg = \"".gettemplate("email_newthread",1,0)."\";");
        eval(
"\$emailsubject = \"".gettemplate("email_newthreadsubject",1,0)."\";");

        
mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
      }

below the section //send email to moderators which ends with

}
}
}
}

add two templates:

i) email_newthread

Code:
Hello $touser[username],

$bbuserinfo[username] has just started a new thread: in $foruminfo[title]
This is a forum you have subscribed to at $bbtitle

The thread title is: $threadinfo[title] 
This thread is located at:
$bburl/showthread.php?threadid=$threadid&goto=newpost

Yours,
$bbtitle team

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:

You are receiving these "new thread" notifications because 
you are subscribed to the $foruminfo[title] forum. 

To unsubscribe, please visit:
$bburl/usercp.php
and secondly

email_newthreadsubject

Code:
New Thread in $foruminfo[title]
any you are away

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 11-15-2001, 06:01 PM
WizyWyg's Avatar
WizyWyg WizyWyg is offline
 
Join Date: Oct 2001
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by chrispadfield
- I have not tested it on 2.2
- Remember when testing it that it will not send you notifications if you are the one that started the thread, you need to test with 2 people.
- You can not distribute it as a hacked file if you got it to work.


When i do the almighty upgrade to 2.2 I will revisit the hack.
I am testing it with 2 different id's

One id is "subscribed" to the foum
The other isn't.
The other posts a new thread in the forum.
The first id doesn't get any notices via email saying that there is a "new thread" in that subscribed forum.
Reply With Quote
  #33  
Old 03-05-2002, 04:52 PM
hadley hadley is offline
 
Join Date: Mar 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chris, I just want to add my voice (whine?) to those who hope you revisit this hack soon. It's very cool -- exactly what my users are clamoring for -- and, unfortunately, I found out about your hack after I upgraded to vB 2.2.

(No thanks to vB support on that :cry: -- had I known about your hack, I wouldn't have upgraded. E-mail notification to forum subscribers is far more important to me than the minor fixes I got with 2.2.)

Anyway -- godspeed, break a leg, bless you, and all of that.

Bruce Hadley
www.softwareCEO.com
Reply With Quote
  #34  
Old 03-13-2002, 08:26 PM
kippesp kippesp is offline
 
Join Date: Jan 2002
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone installed this hack where a subscription would trigger 500 or so emails? Have there been any problems?

I've considered modifying it so that emails go out as a single BCCed email.

Quote:
Originally posted by hadley
[B]...unfortunately, I found out about your hack after I upgraded to vB 2.2.

(No thanks to vB support on that :cry: -- had I known about your hack, I wouldn't have upgraded. E-mail notification to forum subscribers is far more important to me than the minor fixes I got with 2.2.)
Can someone elaborate on this comment? I have no knowledge of anything prior to 2.2.1. Were forum subscriptions once implemented in vB pre-2.2.0? And it was removed?
Reply With Quote
  #35  
Old 03-13-2002, 09:28 PM
hadley hadley is offline
 
Join Date: Mar 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I meant by my comment is this:

Chris's hack did work on vB 2.1, so, had I stayed with that version of vB, I could now have email notification going out to my users who want that feature.

But I upgraded to vB 2.2 before I found out about Chris's hack, and from reading through this thread I discovered that it won't work with versions past 2.1. I am trying to beg or bribe Chris to update the hack to work on vB 2.2.4, but so far have had no luck. :cry:

My snipe at vB was this:
The sales conversation I had with them pre-purchase led me to believe that vB's "subscribe to forum" feature did exactly what I want: notify the person subscribed, via email, whenever there's a post to that forum. It makes sense; after all, that's what "subscribe to thread" does.

When I started talking to vB tech support about this issue a month ago, they told me the "subscribe to forum" feature does not provide any email notification -- it's only there so that users can build "hot lists" they can access directly through their control panels.

Now, had they told me a month ago that there was a hack out there, I would have grabbed Chris's hack, and it would have worked, because I was still running vB 2.1 quite happily. But vB tech didn't respond for weeks, until I finally prodded them with a follow-up email -- and it was only then that they suggested I look here for a hack. (Prior to that, I didn't even know about this board.) But by then I'd already upgraded to vB 2.2, which I didn't need -- I'd much rather have the hack.

Chris's hack does what I believed the vB product would do, and what I strongly think the vB product should do -- but in fact it was never built that way, at least not to my knowledge.
Reply With Quote
  #36  
Old 03-13-2002, 09:54 PM
kippesp kippesp is offline
 
Join Date: Jan 2002
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hadley
But I upgraded to vB 2.2 before I found out about Chris's hack, and from reading through this thread I discovered that it won't work with versions past 2.1.
Okay. That's a relief. I was worried that a major problem was found and vB just took out a feature.

I'm still testing this on my board and we're at 2.2.2. I have made some small modifications, but I didn't see any glaring issues that were 2.2.x specific. I can post my revision here if you like.

I've also looked at 2.2.4 to know there will be no problems once I upgrade. I still need to fix a few things to make this hack work like I want it to, but I can certainly release my revision. (But it would be done as a new hack to prevent confusion. I didn't make my extensions compatible with Chris's.)
Reply With Quote
  #37  
Old 03-13-2002, 10:21 PM
WizyWyg's Avatar
WizyWyg WizyWyg is offline
 
Join Date: Oct 2001
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hadley

My snipe at vB was this:
The sales conversation I had with them pre-purchase led me to believe that vB's "subscribe to forum" feature did exactly what I want: notify the person subscribed, via email, whenever there's a post to that forum. It makes sense; after all, that's what "subscribe to thread" does.
Then you're conclusions to this was wrong, because it was never mentioned specifically that an email would be sent out (dont you think it would have been stated?). When I read over the features, I never came to that conclusion.

Quote:
When I started talking to vB tech support about this issue a month ago, they told me the "subscribe to forum" feature does not provide any email notification -- it's only there so that users can build "hot lists" they can access directly through their control panels.
Exactly as it does and was said in the features of the software. Again, nowhere did it state that it would email anyone.

Quote:
Now, had they told me a month ago that there was a hack out there, I would have grabbed Chris's hack, and it would have worked, because I was still running vB 2.1 quite happily. But vB tech didn't respond for weeks, until I finally prodded them with a follow-up email -- and it was only then that they suggested I look here for a hack. (Prior to that, I didn't even know about this board.) But by then I'd already upgraded to vB 2.2, which I didn't need -- I'd much rather have the hack.
Please re=read Vb's policy about support to hacked boards (summarize, they dont offer it)
The Hack forum (on vb's site) has a direct link to this site.

Quote:
Chris's hack does what I believed the vB product would do, and what I strongly think the vB product should do -- but in fact it was never built that way, at least not to my knowledge.
What you believed it would do, and what it states in the features are two different things. You just came to the wrong conclusion.
Reply With Quote
  #38  
Old 03-14-2002, 02:35 PM
hadley hadley is offline
 
Join Date: Mar 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WoozyWog,
You were not, as far as I know, privvy to my e-mail and telephone conversations with the vB people -- you don't know what they told me re: features -- so your conclusions are just as flawed as mine. But, hey, if it makes you feel better to slog me in these boards, have at it -- I was just looking for a software enhancement, not an indictment of vB or its employees.
Reply With Quote
  #39  
Old 03-15-2002, 04:52 PM
hadley hadley is offline
 
Join Date: Mar 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kippesp,
I'm very interested in your hack -- I've got users screaming for e-mail notification, but I need something that works with vB 2.2.4.

Please let me know, either here or offline.

Many thanks,
hadley@softwareCEO.com
Reply With Quote
  #40  
Old 03-20-2002, 09:45 PM
kippesp kippesp is offline
 
Join Date: Jan 2002
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've post my variation on this. See this thread for how things differ:

https://vborg.vbsupport.ru/showthrea...threadid=36365
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 12:41 AM.


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.08705 seconds
  • Memory Usage 2,325KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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