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 add a profile field into the Postbit? (https://vborg.vbsupport.ru/showthread.php?t=102311)

Draken550 12-06-2005 01:38 AM

How do I add a profile field into the Postbit?
 
Ok, I have created a a custom profile field where users select the game they play most from a drop-down menu. I was wondering how I could get their selection to come up in the postbit? Any help would be great! Thanks in advance!

evenmonkeys 12-06-2005 02:22 AM

This is just an example. You can place it other places... but yeah...

FIND IN POSTBIT (LEGACY):
HTML Code:

<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
ADD BELOW:
HTML Code:

<if condition="$post['fieldx']"><div>Whatever: $post[fieldx]</div></if>
You need to replace "x" in the "fieldx" parts with the number of the custom profile field. Note that there's two. Then you can erase "Whatever:" or keep it and replace it with something else. Whatever makes ya happy.

Let me know how that goes for ya.

Draken550 12-06-2005 08:09 PM

Thanks man! Got it working like a charm! Got the most played game and their XFire username. I feel kind of dumb now, seeing as how it was so simple to do.... But it lokos great! Thanks again!

bada_bing 12-07-2005 02:03 AM

Quote:

Originally Posted by xYarub
This is just an example. You can place it other places... but yeah...

FIND IN POSTBIT (LEGACY):
HTML Code:

<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
ADD BELOW:
HTML Code:

<if condition="$post['fieldx']"><div>Whatever: $post[fieldx]</div></if>
You need to replace "x" in the "fieldx" parts with the number of the custom profile field. Note that there's two. Then you can erase "Whatever:" or keep it and replace it with something else. Whatever makes ya happy.

Let me know how that goes for ya.

Will this work in VB 3.0.7 also?


All times are GMT. The time now is 04:52 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.02016 seconds
  • Memory Usage 1,719KB
  • 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
  • (4)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (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