Include your forums global.php file.
Then start with the example/examples below.
For html code:
Code:
<?php
If ($vbulletin->userinfo['userid']!=0) {
?>
Enter Html code here
<?php
} else {
echo '<center><span style="color:#FF0000;"><b>You must be a registered member to view this page.</b></span><br /><a href="javascript:history.go(-1)">GO BACK</a></center>';
}
?>
For php code:
Code:
<?php
If ($vbulletin->userinfo['userid']!=0) {
Enter php code here
} else {
echo '<center><span style="color:#FF0000;"><b>You must be a registered member to view this page.</b></span><br /><a href="javascript:history.go(-1)">GO BACK</a></center>';
}
?>