PDA

View Full Version : Links in PM?


TheInsaneManiac
08-31-2013, 08:34 PM
Is it possible to link in the php version of private messaging?
$message = "<a href=\"member.php?u=$vbulletin->userinfo['userid']\">" . htmlspecialchars_uni($vbulletin->userinfo['username']) . "</a>";
$fromuser = fetch_userinfo(1);
$subject = $vbulletin->userinfo['username'];
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_SILENT);
$pmdm->set('fromuserid', $fromuser['userid']);
$pmdm->set('fromusername', $fromuser['username']);
$pmdm->set_info('reciept', false);
$pmdm->set_info('savecopy', false);
$pmdm->set('title', $subject);
$pmdm->set('message', $message);
$pmdm->set_recipients(Admin, $fromuser['permissions']);
$pmdm->set('dateline', TIMENOW);
$pmdm->save();

--------------- Added 1378020435 at 1378020435 ---------------

Nvm I figured it out, had to use BBcode and escape it.