vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do I show a custom field (https://vborg.vbsupport.ru/showthread.php?t=148447)

dannylin3000 05-30-2007 01:24 AM

How do I show a custom field
 
Currently vBulletin was displaying a user's ID.

I've created a custom field "field5" as a required field to ask users to enter their nicknames. I was able to display a user's nickname by doing so in the postbit & postbit_legacy template:

Code:

<if condition="$post['field5']">$post[field5]<else />$post[musername]</if>
However, I was unable to show their nickname (field5) on the forumhome, and showthread.

Is there anyone know how to do this?

sonichero 05-30-2007 02:31 AM

what you have to do is (for Forumhome) find where $activeusers is defined and alter it there. If you can find where it is defined in a PHP file i can then help you.

dannylin3000 05-30-2007 03:26 AM

Quote:

Originally Posted by sonichero (Post 1257310)
what you have to do is (for Forumhome) find where $activeusers is defined and alter it there. If you can find where it is defined in a PHP file i can then help you.

$activeusers?

Isn't $activeusers defined as currently online users?

what I want to do is to replace every userid with their nickname (field5) - not sure if this is clear?

sonichero 05-30-2007 03:59 AM

For this, you'd have to find the musername variable and redefine it.

dannylin3000 05-30-2007 06:05 AM

Quote:

Originally Posted by sonichero (Post 1257354)
For this, you'd have to find the musername variable and redefine it.

can you please shed some lights on this? how do I redefine musername to do this?

dannylin3000 06-03-2007 12:47 AM

bump


All times are GMT. The time now is 10:46 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.01991 seconds
  • Memory Usage 1,720KB
  • 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
  • (6)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