Finally familiar enough with vBulletin to chew into this one...
Add colored text to sendmessage.php
Code:
// ############################### start mail member permissions ###############################
if ($_REQUEST['do'] == 'mailmember' OR $_POST['do'] == 'domailmember')
{
globalize($_REQUEST, array('userid' => INT));
//don't let people awaiting email confirmation use it either as their email may be fake
if (!$bbuserinfo['userid'] OR $bbuserinfo['usergroupid'] == 3 OR $bbuserinfo['usergroupid'] == 4)
{
print_no_permission();
}
// added to put ip numbers in vbphrase usermessage
$ip = IPADDRESS;
// end mod
// check that the requested user actually exists
if (!$destuserinfo = $DB_site->query_first("SELECT userid, username, usergroupid, email, (options & $_USEROPTIONS[showemail]) AS showemail, languageid FROM " . TABLE_PREFIX . "user WHERE userid = $userid"))
{
$idname = $vbphrase['user'];
eval(print_standard_error('error_invalidid'));
}
else if ($destuserinfo['usergroupid'] == 3 OR $destuserinfo['usergroupid'] == 4)
{ // user hasn't confirmed email address yet or is COPPA
eval(print_standard_error('error_usernoemail'));
}
}
// ############################### start mail member ###############################
Next, edit phrase usermessage and add colored text:
Code:
This is a message from $bbuserinfo[username] at $vboptions[bbtitle] ( $vboptions[bburl]/$vboptions[forumhome].php ). The $vboptions[bbtitle] owners cannot accept any responsibility for the contents of the email. Use these numbers to report abuse: $ip To email $bbuserinfo[username], you can use this online form: $vboptions[bburl]/sendmessage.php?do=mailmember&userid=$bbuserinfo[userid] OR, by email: mailto:$bbuserinfo[email] This is the message: $message
Moderator: Yes, I answered my own request. Please move if appropriate.