View Full Version : VBGallery Userid code
futuredood
07-29-2006, 10:30 PM
I would've put this in the Photopost forums, but nobody seems to reply over their. I'm trying to do some custom coding for the template, and I can't seem to call the $userinfo[userid] anywhere in the template. I've tried $cats[userid], $post[userid], etc. but can't seem to get it.
Does anyone know how to call it? Thanks in advance.
Freesteyelz
07-29-2006, 10:49 PM
I haven't tried a template conditional but in uploadphoto.php I used:
$User['userid']
To call UserIDs. I did post a hack in PhotoPost to allow only selected users (via Userid) to upload multimedia files but no one replied. :D
futuredood
07-29-2006, 11:03 PM
I haven't tried a template conditional but in uploadphoto.php I used:
$User['userid']
To call UserIDs. I did post a hack in PhotoPost to allow only selected users (via Userid) to upload multimedia files but no one replied. :D
Hmm I'm looking for the template file mainly, thanks though.
Freesteyelz
07-30-2006, 03:36 AM
That's basically the same code you'd use in the templates. I'm not exactly sure what you're trying to call but if you go to showproduct.tmpl and in the comment codes add the above code it will display the user's ID #.
futuredood
08-02-2006, 10:48 AM
That's basically the same code you'd use in the templates. I'm not exactly sure what you're trying to call but if you go to showproduct.tmpl and in the comment codes add the above code it will display the user's ID #.
I'm not sure if you're using the same VBGallery b/c their isn't any shotproduct.tmpl. In the browseimage template, I'm trying to call the $user[userid] function to convert the drop down sort fields into links users can click. I can't seem to get the userid to show up for some reason, links only show up as u="blank" even though I put u=$user[userid].
Am I doing something wrong?
Freesteyelz
08-02-2006, 11:16 PM
Ahh...I am using PhotoPost Pro. I should have read your title better. Sorry about that. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.