Quote:
Originally Posted by James Birkett
Notices are HTML-only. In order to execute PHP in notices you're going to have to modify the notices code to accept PHP.
Which notices? The ones you declare conditions for (Admin CP notices) or the guest welcome message notices?
|
It's not true that they are HTML only, because you can add the username, userid, etc to the text
PHP Code:
$notice_html = str_replace(array('{musername}', '{username}', '{userid}', '{sessionurl}'), array($vbulletin->userinfo['musername'], $vbulletin->userinfo['username'], $vbulletin->userinfo['userid'], $vbulletin->session->vars['sessionurl']), $vbphrase["notice_{$_noticeid}_html"]);
($hook = vBulletinHook::fetch_hook('notices_noticebit')) ? eval($hook) : false;
So you can use the notices_noticebit to replace youre own "aliases" with php variables