Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2010, 01:42 AM
shawnkaycie shawnkaycie is offline
 
Join Date: Apr 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help in profile field input

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
Attached Images
File Type: jpg help.jpg (131.3 KB, 0 views)
Reply With Quote
  #2  
Old 11-10-2010, 01:52 AM
Michael.A's Avatar
Michael.A Michael.A is offline
 
Join Date: Dec 2008
Location: L.A
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #3  
Old 11-10-2010, 02:16 AM
shawnkaycie shawnkaycie is offline
 
Join Date: Apr 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I add this

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

Still nothing showing up.
Reply With Quote
  #4  
Old 11-10-2010, 02:18 AM
Michael.A's Avatar
Michael.A Michael.A is offline
 
Join Date: Dec 2008
Location: L.A
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do u have any thing in your field1?
Reply With Quote
  #5  
Old 11-10-2010, 08:28 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shawnkaycie View Post
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".
Reply With Quote
  #6  
Old 11-10-2010, 04:18 PM
shawnkaycie shawnkaycie is offline
 
Join Date: Apr 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MAD--DOG View Post
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 View Post
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?
Reply With Quote
  #7  
Old 11-10-2010, 04:35 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shawnkaycie View Post
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.
Reply With Quote
  #8  
Old 11-12-2010, 12:35 AM
shawnkaycie shawnkaycie is offline
 
Join Date: Apr 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05273 seconds
  • Memory Usage 2,253KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete