I'm sure $vbulletin->userinfo['userid'] is available on any file in the forum folder. Perhaps you have a typo.
I would try this:
PHP Code:
if($vbulletin->userinfo['userid'] == ### PUT YOUR USERID HERE ###)
{
if($_REQUEST['do'] == 'postreply')
{
echo "usable hook";
}
}
Try this in various hooks in newreply.php, I would guess the first hook available would do it. Then post test replies to a test thread.