The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
profile field
I added a custom profile field called zipcode which I wanna use to display weather specific to peoples location. I used the default 'custom profile fields' for this. So far so good, but how do I use this in the template? The customfield id is 7
is it something like this? PHP Code:
|
#2
|
|||
|
|||
if this isn't possible, what query do i use to retrieve this from the db and add it? It's on the vbhome index, and it shouldn't be too hard right? My php isn't too good though. Can anyone help?
|
#3
|
||||
|
||||
PHP Code:
|
#4
|
|||
|
|||
that works excellently
danke shon |
#5
|
||||
|
||||
Np m8, you're welcome
|
#6
|
|||
|
|||
Reviving this post.... How would i get this info for members of a certain group.
|
#7
|
|||
|
|||
If the members who's profile is being viewed is a member of a usergroup where the code is to be visable use:
Code:
<if condition="$userinfo[usergroupid]=x">$userinfo[fieldy]</if> If the viewing member is to have permission to view the field regardless of who's profile use: Code:
<if condition="$bbuserinfo[usergroupid]=x">$userinfo[fieldy]</if> If you want to do it in the postbit, then use Code:
$post[fieldy] |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|