I want to use this hack as a php code in my non-vbulletin (global.php included) pages. Those pages don't support template conditinals so i need the <?php ?> tags version.
I'd be appreciated if anyone converts these codes to php:
PHP Code:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<link rel="stylesheet" href="http://www.msxlabs.com/forum/infobar.css" type="text/css" />
</if>
PHP Code:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar"><a href="http://www.msxlabs.com/forum/register.php"><p>To register please click here...</p></a></div>
</if>
Regards