Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 11-27-2002, 08:04 PM
todd.o.callen's Avatar
todd.o.callen todd.o.callen is offline
 
Join Date: Oct 2002
Location: Indiana, USA
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Mandatory Subscriptions be User Group

As an administrator, I want to be able to "force" subscriptions by user group? In vB2.2.8 I can hardcode email addresses within a forum definition so that they always receive notice on new posts/threads, but I need to manage secure forums by user groups.

This would be IMMENSELY helpful for my company's supplier transactions. We give each contact at a supplier an ID, already set up, and assign that ID to the corresponding user group for that company. We expect those users to receive notices whenever new posts are made by us (or by any of that group's users), but this becomes more prone to failure if it can't be enforced.

I am begging!!!!!
Reply With Quote
  #2  
Old 11-27-2002, 10:50 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont understand whether you are after a mandatory forum subscription (which by default have no mail notification) or mandatory thread subscription, but why don't use some kind of mailing lists as a solution?

vb (2.x.x) subscription system is not designed to handle mass amount of subscribers and if you force mass amounts of mandatory mail notifications inside vb, you might end up slowness or even timout errors in postings..
Reply With Quote
  #3  
Old 12-02-2002, 12:01 PM
todd.o.callen's Avatar
todd.o.callen todd.o.callen is offline
 
Join Date: Oct 2002
Location: Indiana, USA
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. In a nutshell, I am am trying to link mailing lists to forum posting. Since I always want certain users notified about new threads and posts in a given forum, it makes sense to automate it.

As to slowing the system down, the total of emails generated should never exceed 500 at a time. Normally it would be more like 10.
Reply With Quote
  #4  
Old 12-08-2002, 12:39 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not tested:

edit newthread.php, find:
PHP Code:
 // send email to moderators 
Before that add:
PHP Code:
//Logician Send Mail to Usergroup if Forum is X Hack
$email_usergroup=X;
$email_forumid=Y;
if (
$visible==AND $email_forumid==$forumid
{
     
$emailusersDB=$DB_site->query("SELECT username,email FROM user WHERE usergroup=$email_usergroup");
         while(
$emailusers=$DB_site->fetch_array($emailusersDB)) 
             {
             eval(
"\$emailmsg = \"".gettemplate("email_notifyusergroup",1,0)."\";");
             eval(
"\$emailsubject = \"".gettemplate("emailsubject_notifyusergroup",1,0)."\";");
             
mail($emailusers[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
                unset(
$emailmsg);unset($emailsubject);
             }
}
//Logician Send Mail to Usergroup if Forum is X Hack 
(Replace X with the usergroup to mail and Y with the forumid. )

Create 2 new templates named "email_notifyusergroup" and "emailsubject_notifyusergroup".

What does it do?
It sends a notification mail (content is from "email_notifyusergroup" template) to all users in usergroup X whenever a newthread (not a reply!) is send to forum Y..

And you are warned about performance above if email number is high.

Enjoy..
Reply With Quote
  #5  
Old 12-10-2002, 12:12 PM
todd.o.callen's Avatar
todd.o.callen todd.o.callen is offline
 
Join Date: Oct 2002
Location: Indiana, USA
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks cool.

What about for replies? Do you think that this is just begging for a lot of trouble?
Reply With Quote
  #6  
Old 12-16-2002, 08:55 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

umm I didnt check it out but I believe it should work with replies if you add the same code to newreply.php (same location)
Reply With Quote
  #7  
Old 06-25-2009, 11:31 PM
emanSickelsburg emanSickelsburg is offline
 
Join Date: Feb 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to do something like this that includes all the subforums. Basically, anything that a usergroup has permission to access without having to code for each forum.

Is that posible?
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:58 PM.


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.04740 seconds
  • Memory Usage 2,225KB
  • Queries Executed 13 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete