Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 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.0.2, by Milad Milad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.0 Rating:
Released: 04-16-2008 Last Update: 05-22-2008 Installs: 187
Uses Plugins Auto-Templates
Translations  
No support by the author.

Brought to you by Syrian Medical Society & Milado

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 three supported locations:

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.7.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 Attachment 78859, 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.

Click install to receive support & updates.

You like it? nominate it.

Show Your Support

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

Comments
  #52  
Old 05-22-2008, 12:04 AM
Astrof Astrof is offline
 
Join Date: Apr 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
both of you: make sure you hit the save button in the Thread Display Options (showthread) page.
I did that.

Is there something else I might be doing wrong? Something with the Add field option or something?
Reply With Quote
  #53  
Old 05-22-2008, 12:19 AM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please try to replace the content of the hook: "Show Profile Fields In Postbit" at postbit_display_complete to the following:

PHP Code:
$in_template_hook $this->registry->options['profile_fields_place'];
eval(
'$template_hook["$in_template_hook"] .= "' fetch_template('postbit_profilefields') . '";'); 
and let me know if this solves your proplem.

Edit: don't forget to hit save button again!
Reply With Quote
  #54  
Old 05-22-2008, 08:19 AM
Stubbed's Avatar
Stubbed Stubbed is offline
 
Join Date: Dec 2007
Location: New Zealand
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When doing a quick reply, I get the field contents, but not the field name. If I refresh the page, it is fine however.

On legacy postbit.

Perfect otherwise..
Reply With Quote
  #55  
Old 05-22-2008, 09:28 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amm0 View Post
It happens directly after posting (sometimes) so it looks like this:



When it is meant to look like this:



After you refresh the page, the right details come up though.
i've got the same trouble in the Announces ... (on the new postbit)
Reply With Quote
  #56  
Old 05-22-2008, 09:52 AM
Stubbed's Avatar
Stubbed Stubbed is offline
 
Join Date: Dec 2007
Location: New Zealand
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amm0 and KURTZ's: Is it happening when you actually reply to a topic, or is it using quick reply? As it sounds like the same sort of issues that I'm having. You should double check, it would make the mod authors job easier
Reply With Quote
  #57  
Old 05-22-2008, 10:42 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ Stubbed: i saw this only onto the Annouces, not in the normal posts ...

@ Amm0: have you put in the postbit the xfire's img with this hack?
Reply With Quote
  #58  
Old 05-22-2008, 12:46 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
Please try to replace the content of the hook: "Show Profile Fields In Postbit" at postbit_display_complete to the following:

PHP Code:
$in_template_hook $this->registry->options['profile_fields_place'];
eval(
'$template_hook["$in_template_hook"] .= "' fetch_template('postbit_profilefields') . '";'); 
and let me know if this solves your proplem.

Edit: don't forget to hit save button again!
All problems had been solved, but I'm still waiting for a feedback on this from Astrof before I release the new version!
Reply With Quote
  #59  
Old 05-22-2008, 07:49 PM
GaiLoan GaiLoan is offline
 
Join Date: Dec 2007
Location: California,US
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, i got blank, didnt show anytin, why is that happen ?
Reply With Quote
  #60  
Old 05-22-2008, 08:59 PM
Astrof Astrof is offline
 
Join Date: Apr 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
All problems had been solved, but I'm still waiting for a feedback on this from Astrof before I release the new version!
Hey, Milad, sorry, couldn't reply sooner.

I tried looking for what you told me, but I simply can't find it.

Can you point me to where exactly I have to go to replace the content of the hook?

Thanks in advance.
Reply With Quote
  #61  
Old 05-23-2008, 12:52 AM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GaiLoan View Post
hi, i got blank, didnt show anytin, why is that happen ?
Did you modify the settings according to your needs?
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 03:37 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.05061 seconds
  • Memory Usage 2,323KB
  • Queries Executed 27 (?)
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_php
  • (5)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
  • (4)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete