Quote:
Originally Posted by Alfa1
While the user has not been invited before. It should be:
|
The phrase is returned when the entered email is found in the user table. There is currently no check if a the userid is also found in the invitation table. I'll modify the query and add another phrase to distinguish between mebers and invited members.
Quote:
Originally Posted by Alfa1
If a invited person is not a member yet, ezbounce does not work. So if I am not mistaken there is no use for this text.
|
ezbounce adds the link even if the email is not registered. Can be easily fixed.
You need change the "EZ Bounce Management - construct code" plugin, so that it does only attach the link when the email is also registered on your forum:
The following code should do the trick. If the email is not found in the user table, the outgoing message is not touched. Give it a try. I haven't ezbounce installed therefore this is not tested. I added a simple IF-Statement around the code right after the query.
PHP Code:
global $vbphrase, $db;
$buser = $vbulletin->db->query_first("
SELECT * FROM " . TABLE_PREFIX . "user
WHERE email LIKE '%" . $vbulletin->db->escape_string_like($toemail) . "%'
");
if ( $buser['userid'] ) {
$bounceurl = $vbulletin->options['ezb_admincpurl'] . "/ezbounce.php?u=" . $buser['userid'];
$bouncestring = "<a href=\"$bounceurl\" target=\"_blank\">$bounceurl </a>";
if (!$vbulletin->options['ezb_showezbouncelink'])
{
// if turned off, put bounce url into header (default option)
$headers .= 'X-EZbouncer: ' . $bounceurl . $delimiter;
/* replace above line with following line if the url in bouncing email header is not displaying as a link
$headers .= 'X-EZbouncer: ' . $bouncestring . $delimiter;
*/
}
else
{
// if turned on, construct bounce code & place in email message body
$bouncecode = construct_phrase($vbphrase['anti_bounce_message'], $bounceurl);
/* replace above line with following line if the url in bouncing email body is not displaying as a link
$bouncecode = construct_phrase($vbphrase['anti_bounce_message'], $bouncestring);
*/
$message .= $bouncecode;
}
}
Quote:
Originally Posted by Alfa1
Does this modification list the invitation link somewhere?
|
Was previously removed. I'll add an option to make the invitation code a link. I previously removed it because it didn't display the invitation code correct.
I'll post an update later that takes care of your requests.