Log in

View Full Version : Adding Custom Profile Fields into Thread?


interfx
06-14-2008, 11:06 PM
How do I add a users custom profile fields into the screen that has the users message on it? ie/. right next to Join Date, Number of Posts?

ie. want a user to enter his car type during registration, then be able to show that next to their posts?

Is this possible?

Lastly, also have a custom profile filed that is the "number of years", and would like to add up all of the users number of years to have a "sum" of the number of years of experience to be include in my community statistics...

Thanks in advance -
InterFX

Dismounted
06-15-2008, 04:27 AM
Edit the postbit(_legacy) template, adding the variable $post[fieldX], where "X" is the field number shown in the profile fields manager.

Opserty
06-15-2008, 07:37 AM
How To Add A Profile Field To The Postbit - vBulletin Community Forum (http://www.vbulletin.com/forum/showthread.php?t=108785)


Google is your friend. :)

interfx
06-15-2008, 10:19 AM
Thanks, got the first half my question answered, thanks for the quick reply.


Lastly, also have a custom profile filed that is the "number of years", and would like to add up all of the users number of years to have a "sum" of the number of years of experience to be include in my community statistics...


Any ideas on the second part of this question?

Dismounted
06-15-2008, 11:01 AM
You'll need to create a plugin that queries the database to collect the sum. Alternatively, you could create a scheduled task that does this once every half hour and store it in the datastore - saving you one query every time it is used.