vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Adding name to avatar box. (https://vborg.vbsupport.ru/showthread.php?t=294994)

Pop's Stang 02-11-2013 01:05 PM

Adding name to avatar box.
 
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 [DATE]1360633127[/DATE] at [TIME]1360633127[/TIME] ---------------

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:
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

Quote:

Originally Posted by Pop's Stang (Post 2403497)
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

.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

Quote:

Originally Posted by LifesGreatestGift (Post 2406511)
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!!!


All times are GMT. The time now is 10:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01152 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete