vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Display Profile Field In Postbit (https://vborg.vbsupport.ru/showthread.php?t=247027)

dieselpowered 07-21-2010 09:41 PM

Display Profile Field In Postbit
 
Ok I do not know if I am losing my mind or what...however, I simply want to create a customer member profile field, that when filled in on the members profile displays in the postbit. I cannot seem to find a template edit that does this.

I am sure it is super easy...maybe just too much computer work for the day.

Thanks in advance for your help!

CrashPush 07-21-2010 10:56 PM

Are you using postbit or postbit legacy?

dieselpowered 07-21-2010 11:01 PM

I will be using legacy.

CrashPush 07-21-2010 11:21 PM

Quote:

Originally Posted by dieselpowered (Post 2072661)
I will be using legacy.

Okay I use postbit but I guess I can show you how I do it in postbit and you can figure out how to stick the code into the postbit_legacy template. It shouldn't be that hard.

Below is the code that I use to achieve this:
Code:

<td width="50%">&nbsp;</td>
<td valign="top" nowrap="nowrap">
<div class="smallfont">
<br />
    <b>Favorite Baseball Team(s):</b> $post[fieldX]
<br />
    <b>Favorite Football Team(s):</b> $post[fieldX]
<br />
    <b>Favorite Basketball Team(s):</b> $post[fieldX]
<br />
    <b>Favorite Hockey Team(s):</b> $post[fieldX]
<br />
<br />
</div>

Just change the fieldX with the custom profile field id number you want to use. You might have to remove a <br /> in the end and play around with the <td> codes because you're using postbit_legacy. I hope this is what you needed help with. If not I feel silly. :(

Harry

Hell Bomb 07-25-2010 11:33 PM

I think this is what your looking for.

https://vborg.vbsupport.ru/showthread.php?t=113489

Quote:

Originally Posted by toolblast (Post 954385)

2. Conditional output based on user fields
For this code snippet, you will need to have set up some user profile fields that you can use. To edit or create new ones, in your ADMINCP go to "User Profile Fields" and click "User Profile Field Manager".

Code:

<if condition="$bbuserinfo['field7']=='Paid Member' OR $bbuserinfo['field7']=='Trial Member'>Output paid member only stuff here</if>

From that i think you wanna do something more along the lines of

<if condition="$bbuserinfo['field7']>$post[field7]</if>

dieselpowered 07-26-2010 12:14 AM

Thanks everyone, really appreciate it!


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