Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Showing Custom Profile Fields On Postbit And Postbit Legacy Details »»
Showing Custom Profile Fields On Postbit And Postbit Legacy
Version: 1.00, by Attila M. Attila M. is offline
Developer Last Online: Nov 2009 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 12-27-2007 Last Update: Never Installs: 29
Code Changes  
No support by the author.

So all day today I was trying to figure this out, so I decided to show it you guys as well. This is my first code or what ever you want to call it lol.

Anyways,

First make the custom profile field you want to show. To do that Admin CP > User Profile Fields > Add New User Field.

Fill out what fits right for your profile field. Just remember the field number.

Once you did that, go to Admin CP > Languages And Phrases > Phrase Manager > Add New Phrase.

Fill it out as:
Phrase Type: GLOBAL
Product: vBulletin
Varname: (What ever you want it to be)
Text: (Example: If your custom profile field was favorite athletes this should be Favorite Athletes
)

Once you did that go to Admin CP > Styles and Templates > Style Manager > (Skin you're editing) > Edit Templates > Postbit Templates > Postbit Legacy

Find:
Code:
<span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
Below It Add:
Code:
<if condition="$post['fieldx']"><div class="postinfo">$vbphrase[varnamehere]: $post[fieldx]</div></if>
Make sure to edit the bold letters/words in the code above.

Please don't be too harsh with this lol. I know there are newbies out there like me that didn't know how to do this.

Any problems, post it in here.

Click Install, and please visit my forum.

http://sport-gods.com/forums/index.php

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-03-2008, 12:07 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way you can add pictures ? instead of words ?
Reply With Quote
  #13  
Old 12-04-2008, 12:43 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind i figured it out but thank you
Reply With Quote
  #14  
Old 12-14-2008, 03:32 AM
PurpleButterfly's Avatar
PurpleButterfly PurpleButterfly is offline
 
Join Date: Sep 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wondering if someone can help me? Only the phrase is showing up in the postbit - the text entered by members only shows up on their profile, and the postbit shows the phrase and the number 1 next to it.

So my phrase is: On my Christmas wish list

What is on the postbit is: On my Christmas wish list: 1

The field number is 15, so I don't think that has anything to do with it?
Reply With Quote
  #15  
Old 01-05-2009, 09:03 PM
makofu makofu is offline
 
Join Date: Dec 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PurpleButterfly View Post
Wondering if someone can help me? Only the phrase is showing up in the postbit - the text entered by members only shows up on their profile, and the postbit shows the phrase and the number 1 next to it.

So my phrase is: On my Christmas wish list

What is on the postbit is: On my Christmas wish list: 1

The field number is 15, so I don't think that has anything to do with it?
Are you using a checkbox? If so, this probably won't work (somebody can correct me here). I believe the checkboxes would require a lot more code.
Reply With Quote
  #16  
Old 04-15-2009, 08:55 PM
Lyndon323 Lyndon323 is offline
 
Join Date: Sep 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did 3 of these and only 1 comes up right, the other 2, only the text entered by the user in the user settings shows up
Reply With Quote
  #17  
Old 05-02-2009, 11:09 AM
pooslokka pooslokka is offline
 
Join Date: Jun 2008
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really helpfull this one today ! Thank you.
Reply With Quote
  #18  
Old 05-04-2009, 06:31 AM
Danecookie Danecookie is offline
 
Join Date: Oct 2005
Location: France
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dsnt works
Reply With Quote
  #19  
Old 05-04-2009, 11:48 AM
Danecookie Danecookie is offline
 
Join Date: Oct 2005
Location: France
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working now
Reply With Quote
  #20  
Old 01-27-2010, 02:44 AM
RedHotChili's Avatar
RedHotChili RedHotChili is offline
 
Join Date: Mar 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:up:

Thanks for the useful information.

Just what I was looking for.
Reply With Quote
  #21  
Old 11-18-2010, 04:26 AM
Eplexx Eplexx is offline
 
Join Date: Nov 2010
Location: Toronto
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A very helpful tutorial thanks!
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 02:56 PM.


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.06213 seconds
  • Memory Usage 2,300KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete