vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add Profile Field to Postbit (https://vborg.vbsupport.ru/showthread.php?t=212491)

forum4 04-30-2009 01:33 AM

Add Profile Field to Postbit
 
Is it possible to show an added profile field in the postbit under location or posts? I've added the user profile field with radio buttons and would like to show it with the other member info.

Cryo 04-30-2009 01:36 AM

Yes. Go to your postbit template and add the following code where you want it to be displayed...

Code:

<if condition="$post[fieldXX]">
$post[fieldXX]
</if>

Replace "XX" with the field number. If you'd like you can put stuff before or after the field (ie. Age: $post[fieldXX]).

forum4 04-30-2009 02:29 AM

OK, I see. What if it's a radio button option? For some reason, field5 isn't working. I did the same as field2 (location) right above it, but nothing.

Sorry....My bad. I was trying to edit the postbit template instead of the postbitlegacy template....ugh.

I'll get the hang of this one day :D

Thank you so much! It works great.

Lynne 04-30-2009 02:45 AM

This is pretty general, but you didn't give details on your radio button, so...
HTML Code:

<if condition="$post[field5] == 'whatever'">
do something if it is set to whatever
<else />
else do something else
</if>


forum4 04-30-2009 03:13 AM

Thank you so much. I'm adding moods by hand and it works....Hurray!

It's a bit of work, but more fun than installing a mod :D

jluerken 10-12-2009 11:08 AM

I want to include this in my board.
I created a new profile field with two radiobuttons.
The user can select option1, option2 or both.
How can I manage to show all options the users selected in the postbit?

Lynne 10-12-2009 03:10 PM

You cannot select both options when using radio buttons.


All times are GMT. The time now is 03:53 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.01072 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_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