<?php If ($vbulletin->userinfo['userid']!=0) { echo "logged in link here"; } else { echo "register link here"; } ?>