The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I would like to notify certain usergroups via email when a new post is made in certain forums.
From what I see, I can type in individual email addresses followed by spaces in the admincp>forum manager>edit forum>Email Addresses to Notify When there is a New Post. This isn't favourable as members can change user groups and I would have to manually revise the list. Not to mention adding new users... Is there a hack that would allow me to just type in the user group in the email address to notify in admin cp? |
#2
|
|||
|
|||
![]()
I don't think there's a hack out for this, but it sounds pretty easy to code up if you have a comma-separated field in the forum editor. Here's some pseudo-code that you can put wherever the current e-mailing calls are made:
$usergroups = '(' . $usergroup_field . ')'; // you probably want to validate input for your actual implementation $emails = $vbulletin->db->query_read("SELECT email FROM _vbuser WHERE usergroupid IN $usergroups"); while($result = $vbulletin->db->fetch_row($emails)) { vbmail($result['email'],$title, $message); } |
#3
|
||||
|
||||
![]()
There's a mod that allows instant notification for forum subscriptions. But users have to subscribe to the forum themselves. And last I looked it had no options at all such as excluding forums or usergroups.
Note that subscribing people involuntarily like you're planning could quickly get you blacklisted. |
#4
|
|||
|
|||
![]()
thanks for the input...
Is there a way I can modify the text in the notification message? |
#5
|
||||
|
||||
![]()
Yes, virtually all text in vb is in AdminCP>Phrases.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|