vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custom field under post count number (https://vborg.vbsupport.ru/showthread.php?t=77894)

MichaelJM13k 03-11-2005 03:28 AM

Custom field under post count number
 
Is there a way i can place a users custom field appear under the users post count if its filled out in their profile?

Jolten 03-11-2005 07:44 AM

yeah add the following to the post bit template

PHP Code:

$post[fieldx]; 

replace the x with the number of the field you want to show.

MichaelJM13k 03-11-2005 03:33 PM

ok...I went to: Admincp > Stlye Manager > Edit Templates > postbit templates > postbit then i added your code right under

Code:

$post[musername] $post[onlinestatus]  vbmenu_register("postmenu_$post[postid]", true); $post[musername]

$post[usertitle]

$post[rank]

And it isnt working.. Is that right?

Marco van Herwaarden 03-11-2005 03:52 PM

Are you using normal postbit (above the post) or legacy (left to the post)?

If legacy, you will need to edit postbit_legacy

MichaelJM13k 03-11-2005 04:43 PM

Alright, I got half of it working.. if i do
Code:

XBL Gamertag: $post[field5]
Then it shows up right but
Code:

XBL Gamertag:
Still shows if you have nothing in that field...
If i do
Code:

$vbphrase[XBL_Gamertag]: $post[field5]
all that shows up is
Code:

:

Slapyo 03-11-2005 05:25 PM

Code:

<if condition="$post[field5]">XBL Gamertag: $post[field5]</if>
i think that is right. but you need to put it in and if, if you want it to only display IF they filled it out.

MichaelJM13k 03-11-2005 05:53 PM

worked =) Thanks Slapyo!


All times are GMT. The time now is 01:02 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.01190 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_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