if (vB5_User::get('usergroupid') ==1) { echo 'You do not have permission to see this page';} else { /* This is the PHP you want to show to your logged in users. */}