this is the below code, is it compatible?
PHP Code:
$message = $bbuserinfo['username'] . " feels that you may be interested in joining one of the " . $vboptions['hometitle'] . " Groups, this one in particular [url=" . $vboptions['homeurl'] . "/groups/groups.php?" . $session[sessionurl] . "g=" . $groupid . "]" . $grps_showgroup['title'] . "[/url]: " . $grps_showgroup['description'];
if ($include_message)
{
$message .= "\n\nThey also included this message:\n=========================\n\n$personal_message\n\n=========================";
}
$message .= "\n\n Please take a look at the group, review it and then join.\n\nIf you'd like to just join straight away, please click this link [url=" . $vboptions['homeurl'] . "/groups/membership.php?" . $session['sessionurl'] . "g=" . $groupid . "][b]JOIN NOW[/b][/url]";
while ($receipant = $DB_site->fetch_array($receipants))
{
$sendto["$username"] = true;
$tostring["$receipant[userid]"] = $receipant['username'];
$newpmtitle = "You've Been Invited To Join " . $grps_showgroup['title'];
echo "<br />We got username $receipant[username] with userid: $receipant[userid]";
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "pmtext(fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature)
VALUES($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) . "', '" . addslashes($newpmtitle) . "', '".addslashes($message)."', '" . addslashes(serialize($tostring)) . "', 0, '" . TIMENOW . "', 1)
");
$pmtextid = $DB_site->insert_id();
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "pm (pmtextid, userid, messageread)
VALUES ($pmtextid, $receipant[userid], 0)
");
$DB_site->shutdown_query("
UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $receipant[userid]
");
}
//redirect
$url = "groups.php?$session[sessionurl]g=$groupid";
$_REQUEST['forceredirect'] = true;
eval(print_standard_redirect('grps_invitesent'));
}