vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   "{vb:raw post.fieldx" for Multiple Choice Fields (https://vborg.vbsupport.ru/showthread.php?t=310170)

akxt660 04-03-2014 07:17 PM

"{vb:raw post.fieldx" for Multiple Choice Fields
 
Hi!

I have custom profile fields added to the user profile.

I added the following to the postbit_legacy template to display the fields, which is working:

<vb:if condition="$post['field5']"><dt>Model</dt> <dd>{vb:raw post.field5}</dd></vb:if>

However, two of the custom profile fields are "MULTIPLE SELECTION MENU" type fields, and they are displayed as the item number from the list of choices, instead of the text of the item choice.

The fields display correctly in the member list as well as the "about me" section of the user profile.

Is there a way to get the code in the postbit_legacy to display correctly the selected names?

Thanks for any info!

blind-eddie 04-03-2014 08:47 PM

I cant see your member list or profile pages without registering.
Set up a temp account, pm me info, and I will have a look....

Lynne 04-03-2014 10:13 PM

It is explained in here - https://vborg.vbsupport.ru/showthread.php?t=250418 which is just a vb4 rewrite of what is in here - http://www.vbulletin.com/forum/forum...o-The-Postbit=

akxt660 04-03-2014 11:39 PM

Thank for the information! I'll try to be more specific:

I want to show images in postbit, related to the selected options by the user in the Multiple Choice Menu.

The below code works just in "Single Selection Menu:

<vb:if condition="$post['fieldX']"> <img src="{vb:raw post.fieldX}.png" /> </ a> </ vb: if>

But how do I work on Multiple Choice Menus?

In the image below you can view the images, but it performed with the Single Choice Menus:

https://vborg.vbsupport.ru/external/2014/04/48.jpg

In this case the user should select four options in Multiple Choice Menu.
These images refer to flags that users rescued

ozzy47 04-03-2014 11:46 PM

Follow the guidelines for For Multiple-Selection Menu and Multiple-Selection Checkbox here, https://vborg.vbsupport.ru/showthread.php?t=250418 as Lynne suggested.


All times are GMT. The time now is 07:03 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.03618 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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