View Full Version : Adding name to avatar box.
Pop's Stang
02-11-2013, 01:05 PM
Could someone give me a hand. I would like to add the users real name under the post count in the users avatar box. Could someone tell me where I can do this?
https://vborg.vbsupport.ru/external/2013/02/31.png
LifesGreatestGift
02-12-2013, 12:31 AM
you would first need to make a custom profile field, then you would insert the proper code in postbit_legacy in the same format as your userinfo bit.
--------------- Added 1360633127 at 1360633127 ---------------
once you make the custom profile field, make note of the id (example field7)
Create a new plugin
Product: vBulletin
Hook Location: postbit_display_complete
Title: Add Real Name to postbit userinfo
Code:
$template_hook['postbit_userinfo_right_after_posts'] .= '<dt>Real Name</dt> <dd>' .$post[field7]. '</dd>';
Plugin is Active: Yes
Then Save. Done.
Be sure to change the '7' in field7 to your profile field id for 'Real Name'
Lee Roberts
02-26-2013, 03:50 PM
Could someone give me a hand. I would like to add the users real name under the post count in the users avatar box. Could someone tell me where I can do this?
Stang, there is a MOD for this: Real Name In Profile And Postbit (https://vborg.vbsupport.ru/showthread.php?t=228961)
.Me
LifesGreatestGift
02-26-2013, 04:50 PM
pretty much the same thing I said, its just wrapped up all nice and 'pretty' :)
Lee Roberts
02-26-2013, 05:12 PM
pretty much the same thing I said, its just wrapped up all nice and 'pretty' :)
lol if you say so, "field7" gave it away, why didnt you just link him to the MOD !
.Me
LifesGreatestGift
02-26-2013, 05:47 PM
well, if you cared to try, the next available field after the defaults is 7. i did it on my test board so that is why 7 was in my code. :) I just now downloaded his mod and reviewed the code. I was unaware of his mod. I write most anything I need. ;)
Pop's Stang
02-26-2013, 07:18 PM
Thanks everyone for the tips. I installed the hack and it works great!! Thanks again!!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.