vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help in profile field input (https://vborg.vbsupport.ru/showthread.php?t=253434)

shawnkaycie 11-10-2010 01:42 AM

Help in profile field input
 
1 Attachment(s)
Im trying to add user profile field (id: 1 - input) in a users post. Is there a way to do this?
Thank you for any help!

Shawn

Michael.A 11-10-2010 01:52 AM

ok here it goes:

Go to:
{
> admincp
> Styles & Templates
> Style Manager
> MASTER STYLE or pick that style you want the field to show up on..
> edit Templates

find:
> Postbit Templates

Enter:
> postbit_legacy

Find:
>
Code:

$vbphrase[age]: $post[age]
under it add:
>
Code:

$vbphrase[fielduser field ID]: $post[fielduser field ID]
replace the red with the user field ID

oo ya add if you want to show it when the user have something in the field just use this code..
Code:

<if condition="$post['fielduser field ID']"><div>$vbphrase[fielduser field ID]: $post[fielduser field ID]</div></if>
done...

shawnkaycie 11-10-2010 02:16 AM

Ok I add this

<if condition="$post['field1']"><div>$vbphrase[field1]: $post[field1]</div></if>

Still nothing showing up.

Michael.A 11-10-2010 02:18 AM

do u have any thing in your field1?

kh99 11-10-2010 08:28 AM

Quote:

Originally Posted by shawnkaycie (Post 2120112)
Ok I add this

<if condition="$post['field1']"><div>$vbphrase[field1]: $post[field1]</div></if>

Still nothing showing up.

Based on the screencap you posted, it looks like you should edit the template "postbit" instead of "postbit_legacy".

shawnkaycie 11-10-2010 04:18 PM

Quote:

Originally Posted by MAD--DOG (Post 2120114)
do u have any thing in your field1?

I do have field1. Field1 answer is what kind of car you own.

--------------- Added [DATE]1289413145[/DATE] at [TIME]1289413145[/TIME] ---------------

Quote:

Originally Posted by kh99 (Post 2120136)
Based on the screencap you posted, it looks like you should edit the template "postbit" instead of "postbit_legacy".

If I edit postbit were would I edit it?

kh99 11-10-2010 04:35 PM

Quote:

Originally Posted by shawnkaycie (Post 2120270)
If I edit postbit were would I edit it?

It looks like the Casioo Cash and Thanks things are mods, right? So I don't know how to tell you where to add it because I don't have those. Maybe if you look through the template and find something that says "casino" you can add it above or below that.

shawnkaycie 11-12-2010 12:35 AM

Thank you! I got it. Found the Casino in Postbit an add this
<if condition="$post['field1']"><div>$vbphrase[field1]: $post[field1]</div></if>
An it worked great!
Again Thank You!


All times are GMT. The time now is 01: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.01016 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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