The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have added the option in the User Control Panel to select whether or not you want an email response each time some one replies to a thread you have requested email notifications on or just the one time (as is vBulletin's default).
I have added a row to the User table called allemail and then in the email notification section of the functions.php file I added if ($bbuserinfo['allemail']==0) { $useremails=$DB_site->query("SELECT user.* FROM subscribethread,user WHERE subscribethread.threadid='$threadid' AND subscribethread.userid=user.userid AND user.userid<>'$userid' AND user.lastactivity>'$lastposttime[dateline]'"); } else { $useremails=$DB_site->query("SELECT user.* FROM subscribethread,user WHERE subscribethread.threadid='$threadid' AND subscribethread.userid=user.userid AND user.userid<>'$userid'"); } When they select "No" the value is zero and they should just get one response. If "Yes" they should get a response each time. As it is working now though they get a response each time. So it appears to me that the if statement isn't working and it just defaults to the last statement. Allemail is getting set to 1 or 0 just fine from the user control panel but the script does not appear to recognize the if else routine. Any ideas on how to get this to work? Thanks, Parker |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|