vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Parsing Multiple Choice Custom Profile Fields for the postbit (https://vborg.vbsupport.ru/showthread.php?t=70538)

Limey-YMR 10-13-2004 07:57 PM

Parsing Multiple Choice Custom Profile Fields for the postbit
 
Hi,
This might be a really simple question, but I have tried RTFM and reverse engineering installed hacks and not figured this out.

How do I parse out the results of a custom profile field multiple choice item.

I have "Shows attended" and have populated about 12 different choices, here is the code I have in the postbit to try to display the results:
Code:

<if condition="$post[field67]>0">
<div><span class="smallfont"><strong>Shows Attended:</strong> $post[field67]</span></div>
</if>

I'm getting just a two digit representation from the database instead of the correlating text of which shows the number i.e. "15" equates to.

User Profile handles this by simply dumping $customprofile but I only want to dump the one custom field, (field67) into my postbit and nothing if it's not populated, hence the if condition.
Is it some kind of phrase addition to add the field as a variable for parsing?

cheers.
Mark

Limey-YMR 10-14-2004 02:53 AM

Nvermind - found the answer - fairly complex!

answered by Jack Bunce Here:
http://www.vbulletin.com/forum/showt...845#post725845

involves a lot of integer based if variables in the postbit itself to reconstruct the numeric output back into the multiple choice values.


All times are GMT. The time now is 05:03 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.01020 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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