vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to display a value from the custom fields? (https://vborg.vbsupport.ru/showthread.php?t=72334)

mahiraminc 11-30-2004 11:45 AM

How to display a value from the custom fields?
 
I added a custom field to my forum. Its is called field7 and is a option button for Male or Female. I am able to display this on the postbit template simply by typing "Gender: $post[field7]" in the postbit template.

I tried posting the same thing in the Who's Online page and it doesn't work. Anybody good at PHP can tell me what code I need to write to display field7's value on the Who's Online page?

Thanks!

sabret00the 11-30-2004 12:05 PM

the WOL doesn't have the $post array, for that you're best off trying $bbuserinfo[field7] or something similar :)

Andreas 11-30-2004 12:54 PM

Should be $userinfo[field7] - if custom fields are being loaded there (not sure)

mahiraminc 12-01-2004 04:43 AM

$bbuserinfo displays my gender on everybody's column... so that won't work.

My first guess was $userinfo but it doesn't work. Yes, you are right... the custom fields are not loaded on that page. Does anyboyd know how to get this working?

Help is very much appreciated.


All times are GMT. The time now is 04:23 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.01124 seconds
  • Memory Usage 1,704KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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