What you did right here:
PHP Code:
$row['author_id']=$vbulletin->userinfo['userid'];
echo " Author: ".$vbulletin->userinfo['username']."</H2></P>";
You just set $row['author_id'] to *your* userid. Why? And then you spit out your username. I thought you wanted to use the userid from the query and get the username associated with it from the vbulletin database?
You need to do a quick query to the vbulletin user table to grab the username associated with the userid of $row['author_id']. I think you can do a JOIN in your original query for it, but I'm not sure of the exact syntax with it being to another database.