The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey whats up
I want to access some of the custom user profile fields I made like this Code:
<if condition="$show['age']"> <tr> <td> <strong>$vbphrase[age]</strong>:<br /> $userinfo[age] </td> </tr> </if> Code:
$customfields Is there any way so that I can call these fields directly and use them like "age"? Thanks a ton john |
#2
|
||||
|
||||
![]()
Use $userinfo[fieldX] where fieldX is the custom field.
|
#3
|
|||
|
|||
![]()
So if I made a custom field with the title: Height
would I use $userinfo[fieldHeight] or $userinfo[Height] and if there were spaces in the custom fields title? Also, how do I do the $show[''] if conditions? Thanks a lot John |
#4
|
||||
|
||||
![]()
I think all custom fields are only referenced by the number.. I don't think you can rename (not title) them.. The name of the field is something like field7 the title is what shows up as the title in your edit profile page. The Number can be found when viewing the profiles fields manager..
|
#5
|
|||
|
|||
![]()
Ahh gotcha, and would the show condition be like $show['field7'] ??
Thanks a bunch |
#6
|
||||
|
||||
![]()
This part I am not sure on.. so don't trust me 100%.. lol but when I pulled info from custom fields.. I used $post[fieldX] where X is the field number... This works for me.. so you could give it a shot!.. lol
|
#7
|
|||
|
|||
![]()
Without an if condition? Do you think you could post your code for displaying one of your custom fields? Or modify the code (from memory) that I posted?
I just don't want the field to show if noone entered anything in it. Thanks John |
#8
|
||||
|
||||
![]()
Oh ok.. sorry.. I thought you just meant that little part.. Sorry! lol
Here is the basic code: PHP Code:
|
#9
|
|||
|
|||
![]()
Sweet man, I'll try that out, it looks like it will work. Thanks a lot to you both
![]() Cheers John |
#10
|
||||
|
||||
![]()
YW! Let me know how it works out for ya!!
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|