vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Userfield ? (https://vborg.vbsupport.ru/showthread.php?t=219585)

LieuR 07-27-2009 04:48 PM

Userfield ?
 
Hi,

I want to ad userfield that will show up when a user have made any post, for example

My name (username)
Junior Member (usergroup)

Join Date: Jul 2009
Posts: 2
My userfield (right under posts)

I created a new userfield and people now have a few options to choose between, but it dosent show up under Posts

How do i do so it shows right under Posts ?

Thanks

James Birkett 07-27-2009 05:52 PM

You need to add it to the template.
Look for the posts, add under it:
<if condition="$post['field5']">$post[field5]</if>
That should work fine, giving it's your first custom field. If it isn't - replace 5 with the field number in Admin CP

Lynne 07-27-2009 06:28 PM

Search for "profile" in "articles" "titles only" and you should find an article telling you how to add the profile field to the postbit.

LieuR 07-27-2009 07:37 PM

Tyvm both off you :)

--------------- Added [DATE]1248806574[/DATE] at [TIME]1248806574[/TIME] ---------------

Would this be okey for a usefield ?

<if condition="$post[fieldx]"><div class="smallfont">Label for text: $post[fieldx]</div></if>

Its working fine when people watch in posts but is it good to use ?


All times are GMT. The time now is 07:18 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.00895 seconds
  • Memory Usage 1,709KB
  • 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