I would LOVE to see this! I'm trying to port about 4000 users from a Yahoo group to a REAL forum, and many of them are holding on to the Yahoo group because they can receive all posts in their email.
Would there be a way to create a new custom profile field that either sets a variable or adds a user to a new group, and then have that specific group subscribed to ALL threads with instant email notification, including the text of the posts?
The key has to be in here somewhere (functions_newpost.php):
Code:
// ### DO THREAD SUBSCRIPTION ###
if ($vbulletin->userinfo['userid'] != 0)
{
require_once(DIR . '/includes/functions_misc.php');
$post['emailupdate'] = verify_subscription_choice($post['emailupdate'], $vbulletin->userinfo, 9999);
($hook = vBulletinHook::fetch_hook('newpost_subscribe')) ? eval($hook) : false;
if (!$threadinfo['issubscribed'] AND $post['emailupdate'] != 9999)
{ // user is not subscribed to this thread so insert it
/*insert query*/
$vbulletin->db->query_write("INSERT IGNORE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview)
VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], $post[emailupdate], $post[folderid], 1)");
}
else
{ // User is subscribed, see if they changed the settings for this thread
if ($post['emailupdate'] == 9999)
{ // Remove this subscription, user chose 'No Subscription'
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "subscribethread WHERE threadid = $threadinfo[threadid] AND userid = " . $vbulletin->userinfo['userid']);
}
else if ($threadinfo['emailupdate'] != $post['emailupdate'] OR $threadinfo['folderid'] != $post['folderid'])
{
// User changed the settings so update the current record
/*insert query*/
$vbulletin->db->query_write("REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview)
VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], $post[emailupdate], $post[folderid], 1)");
}
}
}
I just figured out that there's a manual way of doing this, but for large boards it might be a bit of a pain...
In the Forum Manager, edit your top level categories (or whatever forums you want people to get instant notifications on). There is the option "Email Addresses to Notify When there is a New Post " and you can add them manually.
I'm sure there has got to be a better and more automatic way, but at least this is an option.
**New**
I think I'm onto something...I just need a little guidence.