PDA

View Full Version : How do I show a custom field


dannylin3000
05-30-2007, 01:24 AM
Currently vBulletin was displaying a user's ID.

I've created a custom field "field5" as a required field to ask users to enter their nicknames. I was able to display a user's nickname by doing so in the postbit & postbit_legacy template:

<if condition="$post['field5']">$post[field5]<else />$post[musername]</if>

However, I was unable to show their nickname (field5) on the forumhome, and showthread.

Is there anyone know how to do this?

sonichero
05-30-2007, 02:31 AM
what you have to do is (for Forumhome) find where $activeusers is defined and alter it there. If you can find where it is defined in a PHP file i can then help you.

dannylin3000
05-30-2007, 03:26 AM
what you have to do is (for Forumhome) find where $activeusers is defined and alter it there. If you can find where it is defined in a PHP file i can then help you.

$activeusers?

Isn't $activeusers defined as currently online users?

what I want to do is to replace every userid with their nickname (field5) - not sure if this is clear?

sonichero
05-30-2007, 03:59 AM
For this, you'd have to find the musername variable and redefine it.

dannylin3000
05-30-2007, 06:05 AM
For this, you'd have to find the musername variable and redefine it.

can you please shed some lights on this? how do I redefine musername to do this?

dannylin3000
06-03-2007, 12:47 AM
bump