View Full Version : profile blocks / statistics (3.8.1)
ccole513
02-02-2009, 10:15 PM
Could someone tell me how I can add a few custom profile fields to the mini stats block? Would I have to create a custom plugin to fetch the information for display? If so, what code should I enter?
Lynne
02-02-2009, 11:13 PM
You may create a new User Profile Field, and then add it to the memberinfo_block_ministatistics block using $userinfo[fieldx]
Dismounted
02-03-2009, 05:03 AM
You may have to use $prepared[fieldx] instead of $userinfo.
Lynne
02-03-2009, 02:46 PM
You may have to use $prepared[fieldx] instead of $userinfo.
I actually tried it and in this particular template (and maybe others), you need to use $userinfo[fieldx]. However, it could be in other profile templates, you need to use $prepared[fieldx] as you suggested.
ccole513
02-03-2009, 06:43 PM
Lol, that was much easier than I anticipated. As always, thanks Lynne... and thanks for the input Hanson.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.