<?php if (!$vbulletin->userinfo['userid']) { header("Location: http://www.redirected_page.com/"); exit; } ?>