Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show Profile Fields In Postbit, Zero Query & Template Edit! Details »»
Show Profile Fields In Postbit, Zero Query & Template Edit!
Version: 2.1.0, by Milad Milad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 03-13-2009 Last Update: Never Installs: 171
Uses Plugins Auto-Templates
Translations  
No support by the author.

Brought to you by Milad's vBulletin Services!

Introduction & Description:
This product allows you to choose which profile fields you want to show in the postbit / postbit_legacy, and adds them automatically without any query or any template edit.

Features:
  • Zero Query!
  • Zero Template Edit!
  • Set it once, and forget it.
  • Choose which profile fields to show by entering their names (ex: field1) in the option (Profile Fields To Show In Postbit).
  • Set the display order in the option (Profile Fields To Show In Postbit).
  • Choose to show titles for profile fields or not.
    • If not, profile fields' values will be separated by dash - and shown in one line Attachment 78860.
    • Otherwise every profile field will be shown in its own line (in the format title: value) Attachment 78861.
  • Choose to show the profile fields in one of current seven supported locations:
    • Under the user name, user title and user rank Attachment 78860.
    • Right Under the number of user posts Attachment 78861.
    • Under the infractions and reputation.
    • Start of Message Area
    • Start of Signature
    • End of Signature
    • Postbit Controls
  • Option to add custom non-profile-field content, to serve requests like this. see this post to know how to use it
  • An option to style the profile fields in the psotbit.
  • Support for Multiple-Selection Checkbox and Multiple-Selection Menu.

How comes you don't use any query or any template edit even?
When you set your options, a template will be modified to suit your new options, and will be cached, eval()ed and used to show the profile fields.

Installation & Upgrade: 3.8.0 at least is required.
  • Import the product file product-profile_fields_in_postbit.xml and you're done.
  • Choose yes to overwrite for upgrading.
  • Now modify the settings in (Thread Display Options (showthread)) according to your needs.
  • When you upgrade, make sure you hit the save button in the Thread Display Options (showthread) page.

Settings:
See the screen shot, settings explain themselves.

Change log:
  • 2.0.0 first public release, on April, 17 2008
  • 2.0.1 released on May, 17 2008
    • Performance optimized: I don't create a template on the fly anymore, the template will be updated once upon saving the Thread Display Options (showthread) options.
  • 2.0.2 released on May, 24 2008
    • Bug fixed: Profile fields' titles aren't shown in quick replies, announcements and PMS. 1, 2 and 3.
    • Experimental fix for this bug
    • uncached template had been fixed.
  • 2.1.0 released on May, 14 2009
    • Added an options to define a CSS class to style the profile field, such a functionality has been required by many users: 1, 2, 3 and 4.
    • Bug fixed.
    • New option to add custom non-profile-field content, to serve requests like this.
    • New postbit locations: Start of Message Area, Start of Signature, End of Signature and Postbit Controls.
    • Support for Multiple-Selection Checkbox and Multiple-Selection Menu

Click install to receive support & updates.

You like it? nominate it.

Download Now

File Type: xml product-profile_fields_in_postbit.xml (12.6 KB, 885 views)

Screenshots

File Type: jpg 20090314_123739.jpg (101.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Fashel.Net

Comments
  #42  
Old 07-01-2009, 01:02 AM
pmflav1 pmflav1 is offline
 
Join Date: Feb 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but still coming up with the error
Reply With Quote
  #43  
Old 07-21-2009, 12:23 PM
jankoalek jankoalek is offline
 
Join Date: Mar 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod...installed........nominated

future request: more custom fields

custom1
custom2
custom3

Is possibile to make this?

Thanks
Reply With Quote
  #44  
Old 07-25-2009, 02:24 AM
samuelflo samuelflo is offline
 
Join Date: Jul 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a nice hack!!! They should add this to the default options.

As a notice you need to type field numbers, not their titles. Say "field6" not "Design"
Reply With Quote
  #45  
Old 10-13-2009, 04:51 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
See the version for 3.8, it has this function implemented already.
Many thanks Milad,

its working fine but I still have an issue.
If you have a multioption field like
OPTION1
OPTION2 etc.
its displayed in the postbit like this
option1, option2 .....

Is there a way to make a line break before the next option?

Because I am using postbit_legacy I need a construct like this:
Code:
<if condition="$post['field19']"><div class="smallfont">$vbphrase[field19_title]:</div>
<div class="smallfont">$post[field19]-option1</div>
<div class="smallfont">$post[field19]-option2</div>
....
</if>
Reply With Quote
  #46  
Old 10-13-2009, 01:02 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's possible of course, but you have to edit the hack code.
Reply With Quote
  #47  
Old 10-14-2009, 04:42 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
It's possible of course, but you have to edit the hack code.
I was sure you say this *g*
Can you please tell me what to change into what?
Reply With Quote
  #48  
Old 10-16-2009, 02:06 AM
DynaMow DynaMow is offline
 
Join Date: Jun 2009
Location: NE Ohio, USA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know. I am certainly no expert. It seems to work for many others and everybody seems to like it.

I imported the file. I am supposed to go to settings. I do not see any place for settings.

I assume they would be under vbulletin options but nope. Can anybody help me? Thanks.
Reply With Quote
  #49  
Old 10-19-2009, 01:26 AM
ShadowStalker ShadowStalker is offline
 
Join Date: May 2009
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an excellent mod
Reply With Quote
  #50  
Old 11-14-2009, 06:29 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DynaMow View Post
I assume they would be under vbulletin options but nope. Can anybody help me? Thanks.
You want to see Thread Display Options (showthread) below in the page. I looked for it some time as I forgot where it is.
Reply With Quote
  #51  
Old 11-15-2009, 02:11 AM
bluej bluej is offline
 
Join Date: Jan 2007
Location: U.S.A.
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi milad, thank you for a great mod...

i have added a profile field for gender that members chose at registration...

what is showing now of course is either Gender: female or male

what would i need to do to be able to have an 'image' for female or male instead of the text?
(would like to have just the image and not the word Gender either)

thanks for any help in this
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 11:36 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.06724 seconds
  • Memory Usage 2,345KB
  • 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
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete