Quote:
Originally Posted by Alfa1
How do i change the sender's userID?
|
If you're referring to the sender of the Private Message which is sent to the user who's being managed for bouncing, you'll have to modify the code within admincp/ezbounce.php which uses the PM datamanager:
The PM is generated in the following manner, setting the sentfrom userid and username to that of the administrator who clicked on the ezbouncelink within the email header:
PHP Code:
// Set other funky stuff for PM
$pmdm->set('fromuserid', $vbulletin->userinfo['userid']);
$pmdm->set('fromusername', $vbulletin->userinfo['username']);
$pmdm->overridequota = true;
$pmdm->set('title', $vbphrase['anti_your_email_bounced_sub']);
$pmdm->set('message', construct_phrase($vbphrase['anti_your_email_bounced_body'], $buser['username'], $vbulletin->userinfo['username'], $updatelink));
$pmdm->set_recipients($buser['username'], $botpermissions);
$pmdm->set('dateline', TIMENOW);
$pmdm->pre_save();
To modify this, you'll need to change all occurrences of $vbulletin->userinfo['userid'] and $vbulletin->userinfo['username'] to the info for the new sender. Also, I am pretty sure the userid needs to match that of the username otherwise the datamanager will throw an error.