vb.org Archive

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

flyrib 05-06-2012 07:49 PM

How do I show a custom profile field
 
Hello, How do I get custom profile field to show up under the username when they post?

I've just added a new mandatory profile field that members have to fill in. But how can I make this field is always visible in posts, showing under their username?

thank you in advance :up:

kh99 05-06-2012 07:58 PM

There's an article on how to do this: https://vborg.vbsupport.ru/showthread.php?t=250418 . (It's a vb4 article but I believe it will still work if you use vb3 template syntax).

The short answer is that if your profile field is text or single selection (menu or radio button), then you just need to put $post[fieldX] in your postbit or postbit_legacy template.

JacquiiDesigns 05-06-2012 10:15 PM

Hmmm - I don't think vB 4.x syntax will work with vB 3.x
The following code may be of help though:

Code:

<if condition="$post['fieldX']"> <strong>Field Name:</strong> $post[fieldX]</if>
where "X" is the number of your new custom field.

HTH ;)

J.

kh99 05-06-2012 10:43 PM

Quote:

Originally Posted by JacquiiDesigns (Post 2326877)
Hmmm - I don't think vB 4.x syntax will work with vB 3.x

You're right, that's why I mentioned that you'd need to use vb3 template syntax. I wanted to point out the article anyway because if you want to use a multiple selection profile field it gets a little more complicated.

flyrib 05-07-2012 04:40 AM

thank you for your answers, should be a lot of people that have done this with their forums right? Will try this code during the day.

JacquiiDesigns 05-07-2012 04:45 AM

Quote:

Originally Posted by kh99 (Post 2326879)
You're right, that's why I mentioned that you'd need to use vb3 template syntax. I wanted to point out the article anyway because if you want to use a multiple selection profile field it gets a little more complicated.

Ah okay...
Just as an FYI - here's a list vB 3.x template conditionals. I've bookmarked it and have used it as a resource dozens of times. Should be helpful ;)

J.

Xp.Warrior 05-10-2012 01:08 AM

Use This Coding
Code:

<if condition="$post['fieldX']"> <strong>Field Name:</strong> $post[fieldX]</if>
And [fieldX] Clear X And write Your Field Number
And Use This Code In Your admincp --> Styles & Templates --> Search in Templates --> postbit_lagacy And Add This Coding Where You Want To Look
i Hope This Is Usefull For You

JacquiiDesigns 05-10-2012 04:55 PM

Quote:

Originally Posted by Xp.Warrior (Post 2327873)
Use This Coding
Code:

<if condition="$post['fieldX']"> <strong>Field Name:</strong> $post[fieldX]</if>
And [fieldX] Clear X And write Your Field Number
And Use This Code In Your admincp --> Styles & Templates --> Search in Templates --> postbit_lagacy And Add This Coding Where You Want To Look
i Hope This Is Usefull For You

Um- You copy/pasted part of my post as if it's new information how...?https://vborg.vbsupport.ru/

J.

Xp.Warrior 05-10-2012 11:55 PM

Quote:

Originally Posted by JacquiiDesigns (Post 2328132)
Um- You copy/pasted part of my post as if it's new information how...?http://img821.imageshack.us/img821/1364/wildeyed.gif

J.

admincp --> Styles & Templates --> Search in Templates --> postbit_lagacy And Add This Coding This Is New Information

JacquiiDesigns 05-11-2012 03:08 PM

oh. okay.
Thanks :)


All times are GMT. The time now is 10:46 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.01076 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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