You're including global.php, right? Or at least I remember you asking about limiting it to members. If you include vbulletin's global.php in showcase.php, then you can get the username from $vbulletin->userinfo['username']. And I think the file upload fields are a form, so if you add a text field to that form you should be able to get the contents of it in $_POST['name'] (using whatever name you put in the text field tag, of course).
I guess getting it back is the hard part. If you store it in the db you could write a php script to get it back, then call that php script from jquery using the file name as a key? Or else save the filename in the db as well, then change your javascript to get the filename from the same php script that is getting the username. (I hope that makes some sense).
|