vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - Show Profile Fields In Postbit, Zero Query & Template Edit! (https://vborg.vbsupport.ru/showthread.php?t=176386)

Milad 04-16-2008 10:00 PM

Show Profile Fields In Postbit, Zero Query & Template Edit!
 
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.

SEOvB 04-17-2008 12:27 AM

you may want to upload a product to go with this?

Milad 04-17-2008 12:34 AM

I'm still writing the thread!

pollitus 04-17-2008 12:40 AM

Quote:

Originally Posted by Milad (Post 1492585)
I'm still writing the thread!

lol, thx in advance... :D

Parabellum 04-17-2008 12:46 AM

Is there a way to show the text from the Multiple-Selection Checkbox? As it is now it only shows the number of the checkbox marked. The only text that it does show now is from the Single-Line Text Box.

Thank You Nice hack!

Milad 04-17-2008 12:51 AM

Done and released, cheer up!

Cobro 04-17-2008 12:56 AM

thank you very much

Hasann 04-17-2008 05:50 AM

Salamaleikum buddy thanks a lot for that it's great :D:up:

KatieG 04-17-2008 05:53 AM

Very nice thankyou :)

Adem GEN? 04-17-2008 12:25 PM

Thank

Turkish files

NeuroLancer 04-17-2008 02:17 PM

this is very nice. its not the sort of thing for me, because i apply stuff like myspace id and facebook as images that link to a members profile, however this mod still will have its uses for me

:up: really good thanks again.

marcossalazar 04-17-2008 02:19 PM

This is a simple, but kick ass mod! Thanks so much for creating this...I am nominating it for MOM! :)

marcossalazar 04-17-2008 02:23 PM

So does this mean almost no stress on the server? Also, if it is creating a fake template on the fly, will this be a problem with say, over 3000 users at once?

Milad 04-17-2008 02:31 PM

Quote:

Originally Posted by Hasann (Post 1492703)
Salamaleikum buddy thanks a lot for that it's great :D:up:

Selam?naleyk?m ve İyi akşamlar!. You're welcome.

Milad 04-17-2008 02:32 PM

Quote:

Originally Posted by Parabellum (Post 1492593)
Is there a way to show the text from the Multiple-Selection Checkbox? As it is now it only shows the number of the checkbox marked. The only text that it does show now is from the Single-Line Text Box.

Thank You Nice hack!

I'm going to check against that.

Milad 04-17-2008 02:36 PM

Quote:

Originally Posted by marcossalazar (Post 1492985)
So does this mean almost no stress on the server? Also, if it is creating a fake template on the fly, will this be a problem with say, over 3000 users at once?

My forum has about 50-80 users at once. and everything is OK.

Anyway, after releasing it. I thought it would be better If I use a real template which will be updated once on changing the settings. This is the next version.

Try it and tell me if it has any impact on your forum's performance. If it affects the performance I don't think it would be so much.

Best regards

Milad 04-17-2008 02:49 PM

Quote:

Originally Posted by marcossalazar (Post 1492980)
This is a simple, but kick ass mod! Thanks so much for creating this...I am nominating it for MOM! :)

It's not simple, but it's clever. Thank for nomination!

KatieG 04-17-2008 03:32 PM

Would it be possible to have another section, so that you can add extra info.
Like the red text in the pic below

KURTZ 04-17-2008 03:42 PM

OK, i'm back after new tests ... it runs corectly ... superb mod!!!!

INSTALLED AND NOMINATED!!!!

edit: Milad can you provide a new feature for the ibproarcade? it wants this

Code:

<div class="smallfont">$post[crowns]$post[champtext]<br /></div>

FleaBag 04-17-2008 10:06 PM

Another masterpiece Milad! You are very kind with your releases here. This pulls off a headache of a job with little effort for the admin, and for that I am greatful!

When I have enough money saved for vB custom work, there is one name on my list!

شكرا جزيلاا

I hope I got that right.

Jasem 04-18-2008 03:43 AM

Thank You

1quick1 04-30-2008 01:26 AM

My site is a bodybuilding/fitness site and this is EXACTLY what I needed. It allows me to have users add their height and weight right where I wanted it. Thanks and marked as installed.

Also I installed it on a a 3.7.0 gold version and it works perfectly so far.

threat 04-30-2008 05:25 PM

Mine does not work, do I have to run the maintenance to get them updated? I wonder if its the skin I'm using.

My field6 is Bike that I want to show their bikes in their postbit under their names.

Note: I should type exactly field6 in the box correct?

Note: It only works when I put the option for the field to be under the post count and it does not show up inside the table in the profile. Pic enclosed.

Milad 04-30-2008 07:32 PM

You use custom style, it's most likely to be the reason!

cavyspirit 04-30-2008 11:09 PM

Quote:

Originally Posted by KatieG (Post 1493047)
Would it be possible to have another section, so that you can add extra info.
Like the red text in the pic below

I agree this would be a great addition.

klees 05-04-2008 10:06 PM

It doesn't work in postbit legacy.

Milad 05-05-2008 01:45 AM

revert your template.

Amenadiel 05-05-2008 01:56 AM

Is it possible to add the option of displaying the custom fields in a floating div?

I use this "My PC" custom fields and it's too much information to show explicitly

http://img521.imageshack.us/my.php?image=looknc8.jpg

klees 05-05-2008 07:12 AM

I don't want to revert it

Milad 05-05-2008 11:29 AM

Quote:

Originally Posted by klees (Post 1508994)
I don't want to revert it

It depends on template hooks to show fields, without those hooks, my hack won't work.

Sorry!

Milad 05-05-2008 11:31 AM

Quote:

Originally Posted by Amenadiel (Post 1508821)
Is it possible to add the option of displaying the custom fields in a floating div?

I use this "My PC" custom fields and it's too much information to show explicitly

http://img521.imageshack.us/my.php?image=looknc8.jpg

This is very special usage, and it's not popular. It won't be added to the hack!

If you want, ask me to do it for you as a custom work.

Regards

Milad 05-17-2008 10:56 AM

Quote:

Originally Posted by Parabellum (Post 1492593)
Is there a way to show the text from the Multiple-Selection Checkbox? As it is now it only shows the number of the checkbox marked. The only text that it does show now is from the Single-Line Text Box.

Thank You Nice hack!

This can't be implemented without queries! I'm sorry.

Milad 05-17-2008 10:58 AM

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.
When you upgrade from 2.0.0 to 2.0.1 make sure you hit the save button in the Thread Display Options (showthread) page.

basilrath 05-17-2008 11:09 AM

does this work in legacy?

Milad 05-17-2008 11:23 AM

Quote:

Originally Posted by basilrath (Post 1522482)
does this work in legacy?

It should, but I didn't try it!

KURTZ 05-17-2008 11:38 AM

Quote:

Originally Posted by Milad (Post 1522479)
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.
When you upgrade from 2.0.0 to 2.0.1 make sure you hit the save button in the Thread Display Options (showthread) page.

yes, cause when you overwrite the product it delete the previous options ...

Milad 05-18-2008 12:47 PM

Quote:

Originally Posted by KURTZ (Post 1522501)
yes, cause when you overwrite the product it delete the previous options ...

No, because it need to save the new template.

Amm0 05-18-2008 03:50 PM

Quote:

Originally Posted by KatieG (Post 1493047)
Would it be possible to have another section, so that you can add extra info.
Like the red text in the pic below

EDIT: Whoops! Sorry :P, you'd already got it there as an option, I just didn't see it.

Great work!


EDIT2: A small bug, possibly. It happens sporadically, but sometimes only the profile fields are shown, and not the profile field names.

Milad 05-19-2008 11:57 AM

Quote:

Originally Posted by Amm0 (Post 1523700)
A small bug, possibly. It happens sporadically, but sometimes only the profile fields are shown, and not the profile field names.

I would like to know under what conditions does this bug appear?

Trip 05-19-2008 01:34 PM

Great mod. Thank you. Marked as "installed"


All times are GMT. The time now is 01:24 PM.

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.02890 seconds
  • Memory Usage 1,824KB
  • 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
  • (1)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete