OK, so you have a function get_currentuserinfo that came with your script, however, it doesn't seem to be getting the current userinfo - correct? So, it seems that that function is missing something that it needs to work.
In vBulletin, if you want to do anything with the user information (userid, username, etc), then you need to include global.php somewhere in your script (or init.php) because it has the necessary functions to get that information. Is there some file with your script that you need to include and are not? You'll have to take a look at other pages used with that script to figure that out.
|