PDA

View Full Version : [fixed] E-Mail confirmation with private forum...


Joshs
Fri 11th May '01, 9:08pm
Just received this email:

---

Hello Joshs,

JimF has just replied to a thread you have subscribed to entitled - nice site - in the Moderators Lounge forum of vBulletin Community Forum.

This thread is located at:
http://www.vbulletin.com/forum/showthread.php?threadid=16574&goto=newpost

There may be other replies also, but you will not receive any more notifications until you visit the board again.

Yours,
vBulletin Community Forum team

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

To unsubscribe from this thread, please visit this page:
http://www.vbulletin.com/forum/member2.php?action=usub&threadid=16574

To unsubscribe from ALL threads, please visit this page:
http://www.vbulletin.com/forum/member2.php?action=usub&type=allthread

---

So I clicked the link, and I didnt have permission to view the thread. There shouldnt be an email confirmation with a private thread!

tubedogg
Fri 11th May '01, 9:33pm
It was probably moved to a private forum between the time the email was sent and you came to look it.

Mike Sullivan
Fri 11th May '01, 10:05pm
Fixed.

postings.php, added code in blue:
$users=$DB_site->query("SELECT user.userid,usergroupid FROM subscribethread,user WHERE subscribethread.userid=user.userid AND subscribethread.threadid='$threadid'");
$deleteuser = '0';
while($thisuser=$DB_site->fetch_array($users)) {
$perms=getpermissions($forumid, $thisuser['userid'], $thisuser['usergroupid']);
if (!$perms['canview']) {
$deleteuser .= ",$thisuser[userid]";
}
}

if ($deleteuser) {
$DB_site->query("DELETE FROM subscribethread WHERE threadid='$threadid' AND userid IN ($deleteuser)");
}

eval("standardredirect(\"".gettemplate("redirect_movethread")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");");