vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding Custom Profile Fields into Thread? (https://vborg.vbsupport.ru/showthread.php?t=182509)

interfx 06-14-2008 11:06 PM

Adding Custom Profile Fields into Thread?
 
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


Google is your friend. :)

interfx 06-15-2008 10:19 AM

Thanks, got the first half my question answered, thanks for the quick reply.

Quote:

Originally Posted by interfx (Post 1549527)
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.


All times are GMT. The time now is 06:39 AM.

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.00964 seconds
  • Memory Usage 1,718KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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