View Full Version : Display Profile Field In Postbit
dieselpowered
07-21-2010, 09:41 PM
Ok I do not know if I am losing my mind or what...however, I simply want to create a customer member profile field, that when filled in on the members profile displays in the postbit. I cannot seem to find a template edit that does this.
I am sure it is super easy...maybe just too much computer work for the day.
Thanks in advance for your help!
CrashPush
07-21-2010, 10:56 PM
Are you using postbit or postbit legacy?
dieselpowered
07-21-2010, 11:01 PM
I will be using legacy.
CrashPush
07-21-2010, 11:21 PM
I will be using legacy.
Okay I use postbit but I guess I can show you how I do it in postbit and you can figure out how to stick the code into the postbit_legacy template. It shouldn't be that hard.
Below is the code that I use to achieve this:
<td width="50%"> </td>
<td valign="top" nowrap="nowrap">
<div class="smallfont">
<br />
<b>Favorite Baseball Team(s):</b> $post[fieldX]
<br />
<b>Favorite Football Team(s):</b> $post[fieldX]
<br />
<b>Favorite Basketball Team(s):</b> $post[fieldX]
<br />
<b>Favorite Hockey Team(s):</b> $post[fieldX]
<br />
<br />
</div>
Just change the fieldX with the custom profile field id number you want to use. You might have to remove a <br /> in the end and play around with the <td> codes because you're using postbit_legacy. I hope this is what you needed help with. If not I feel silly. :(
Harry
Hell Bomb
07-25-2010, 11:33 PM
I think this is what your looking for.
https://vborg.vbsupport.ru/showthread.php?t=113489
2. Conditional output based on user fields
For this code snippet, you will need to have set up some user profile fields that you can use. To edit or create new ones, in your ADMINCP go to "User Profile Fields" and click "User Profile Field Manager".
<if condition="$bbuserinfo['field7']=='Paid Member' OR $bbuserinfo['field7']=='Trial Member'>Output paid member only stuff here</if>
From that i think you wanna do something more along the lines of
<if condition="$bbuserinfo['field7']>$post[field7]</if>
dieselpowered
07-26-2010, 12:14 AM
Thanks everyone, really appreciate it!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.