View Full Version : User fields
psx-dude
Mon 5th Jan '04, 11:30pm
I added a user profile field of a radio button with two options, horizontal and vertical. It is field10, however, i have no idea how to write this in to a conditional, is it $user[field10] ? or something?
peterska2
Mon 5th Jan '04, 11:38pm
$post[field10]
this is what you are looking for
psx-dude
Tue 6th Jan '04, 12:08am
$post[field10]
this is what you are looking for
not for the user to change the way their post looks per post, but a user preference based on it.
Symen_4ab
Tue 6th Jan '04, 12:43am
A vbulletin dev (don't remember who, sorry) posted this somewhere on this forum :
if ($bbuserinfo['field6'] == 'Left')
{
$vboptions['legacypostbit'] = 1;
}
(in phpinclude_start)
That was for users to be able to choose if they want to use the new vb3 postbit layout (avatar and nickname on top of each post) or the vb2 style (avatar and nick on left).
So, $bbuserinfo['fieldx'] is probably what you're looking for.
psx-dude
Tue 6th Jan '04, 2:39am
A vbulletin dev (don't remember who, sorry) posted this somewhere on this forum :
if ($bbuserinfo['field6'] == 'Left')
{
$vboptions['legacypostbit'] = 1;
}
(in phpinclude_start)
That was for users to be able to choose if they want to use the new vb3 postbit layout (avatar and nickname on top of each post) or the vb2 style (avatar and nick on left).
So, $bbuserinfo['fieldx'] is probably what you're looking for.
That worked really well, thanks!
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights