The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What extra code do I need to add?
I have some custom fields set up for my site. For example, field6 is the member's real name.
If I type $post[field6] in the membersinfo template, their name appears. With other templates I've tried this with, the name doesn't appear. It just leaves a blank space. Is there some coding in membersinfo that I can copy into other templates? It's vital for my site that I can use the member's real name in different places. What code do I need to add to the other files and/or templates? Thanks, Chris |
#2
|
|||
|
|||
Code:
$userinfo[fieldx] Code:
$bbuserinfo[fieldx] Code:
$post[fieldx] Hope this helps |
#3
|
|||
|
|||
I have tried all three versions in my who's online template, and none of them work for me at the moment.
$post[fieldX] and $userinfo[fieldX] both show nothing and $bbuserinfo[fieldX] shows the data for the member viewing the page. Any ideas? |
#4
|
|||
|
|||
I checked my postbit_legacy template where I have information from my custom field displayed at. I used $post[field5] for it. So that should work. I would recommend that you do a print_r on the $post array to see what is contained, it may be a possibility that you don't have that array avialable on that page currently.
|
#5
|
|||
|
|||
I want this to work on the who's online page. It already works on postbit.
What does that mean? What's a print_r? |
#6
|
|||
|
|||
anyone know?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|