vb.org Archive

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

Milad 03-13-2009 10:00 PM

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

valdet 03-14-2009 10:24 AM

This is great add-on. I was just looking for something like this.

Hopefully it works on 3.7.x too.

Val.

Daniel_HBK 03-14-2009 10:42 AM

Very Good Hack Milad , thx :)

الف شكر يا ميلاد

تحياتي ,
دانيال

Hasann 03-14-2009 10:43 AM

You're Back Milad :D Very Nice

GHC Webmaster 03-14-2009 11:17 AM

Quote:

2.1.0 released on May, 14 2009
I asume you mean March, 24 2009? ;-)

Milad 03-14-2009 11:49 AM

Thanks to all of you,
I'll post more about how to use the new features.
Regards

mariocaz 03-14-2009 04:08 PM

Is this version also works in 3.7.X ??

Jasem 03-14-2009 04:14 PM

Good product, thank you

installed

ahmed-samara 03-14-2009 06:05 PM

very good work Milad i like it :)

NAZIA 03-14-2009 06:59 PM

nice and important mod

Milad 03-15-2009 01:52 AM

Thanks to all of you.

I haven't tried it on 3.7 but I assume it will works, though some location may be not introduced in that version.

Also I've added 3.8.0 as a minimum requirement, you have to remove that.

Regards

Charlie98902 03-15-2009 03:25 AM

Great mod and installed but how can I change this:

DVD neXt COPY Version: DVD neXt COPY Ultimate
Machinist or DVD43 or AnyDVD: Machinist, AnyDVD HD

to this:

DVD neXt COPY Version: DVD neXt COPY Ultimate
Machinist or DVD43 or AnyDVD: Machinist, AnyDVD HD

or whatever colors I choose?

Milad 03-15-2009 03:29 AM

1 Attachment(s)
To show non-profile-field content, we have to do it in to steps explained in the following photo:

Attachment 96498

expeditionman 03-15-2009 02:58 PM

This feature is awesome....just upload and thats it, exactly what i've been looking for...Thanks:up:

Charlie98902 03-15-2009 03:23 PM

1 Attachment(s)
Quote:

Originally Posted by Milad (Post 1768429)
To show non-profile-field content, we have to do it in to steps explained in the following photo:

Attachment 96498

I am no coder nor I know the basics of CSS and such. The ones I want to show are indeed a profile field. Here's a screen shot.

TNCclubman 03-15-2009 04:25 PM

Milad is a great coder, by great I mean the best.

Milad 03-17-2009 08:01 AM

Quote:

Originally Posted by Charlie98902 (Post 1768428)
Great mod and installed but how can I change this:

DVD neXt COPY Version: DVD neXt COPY Ultimate
Machinist or DVD43 or AnyDVD: Machinist, AnyDVD HD

to this:

DVD neXt COPY Version: DVD neXt COPY Ultimate
Machinist or DVD43 or AnyDVD: Machinist, AnyDVD HD

or whatever colors I choose?

Quote:

Originally Posted by Charlie98902 (Post 1768787)
I am no coder nor I know the basics of CSS and such. The ones I want to show are indeed a profile field. Here's a screen shot.

Hello, this can't be done right now.

vidan 03-17-2009 06:43 PM

Hello thanks for this great mod ever.

can you make option to have profile picture in showthread/postbit as well?
if its really major change, can you tell me hook plugin to fetch the profile picture from filestorage?
thank you

Milad 03-17-2009 07:04 PM

I'm sorry, this mod isn't supposed to do that!

tommac3 03-17-2009 11:34 PM

Parse error: syntax error, unexpected '/', expecting ']' in /home/forumname/public_html/forums/includes/class_postbit.php(294) : eval()'d code(131) : eval()'d code on line 1

any idea what I am doing wrong ... this only comes up when I put a value under:
Profile Fields To Show In Postbit

Charlie98902 03-18-2009 01:29 AM

As an example in each box wanted you add the word: field1, field2 etc....

Milad 03-18-2009 06:48 AM

Quote:

Originally Posted by tommac3 (Post 1770796)
Parse error: syntax error, unexpected '/', expecting ']' in /home/forumname/public_html/forums/includes/class_postbit.php(294) : eval()'d code(131) : eval()'d code on line 1

any idea what I am doing wrong ... this only comes up when I put a value under:
Profile Fields To Show In Postbit

Let's see your settings!

Charlie98902 03-18-2009 03:25 PM

What about tweaking this mod to remove the fielset question to just showing the answer can this be done? AKA

Default:

DVD neXt COPY Version: DVD neXt COPY Ultimate
Machinist or DVD43 or AnyDVD: Machinist, AnyDVD HD

Tweaked

DVD neXt COPY Ultimate
AnyDVD HD

Is this possible later? Or tweak the current mod?

KURTZ 03-18-2009 04:57 PM

thx Milad :)

however when we upgrade this hack from the 3.7.x version we should re-set the fields ...

Bowromir 03-18-2009 05:11 PM

Great add-on!! This is so easy to use, and it saves me a lot of annoying template editing.. thank you!!

Milad 03-19-2009 11:10 AM

Quote:

Originally Posted by Charlie98902 (Post 1771199)
What about tweaking this mod to remove the fielset question to just showing the answer can this be done? AKA

Default:

DVD neXt COPY Version: DVD neXt COPY Ultimate
Machinist or DVD43 or AnyDVD: Machinist, AnyDVD HD

Tweaked

DVD neXt COPY Ultimate
AnyDVD HD

Is this possible later? Or tweak the current mod?

It's possible. Later!

ThorstenA 03-21-2009 05:54 AM

Suggestion: Option to only show this profile field for registered users.

black_bullitt 03-26-2009 03:00 AM

Installed! Many thanks for the plugin!

arcadian_girl 04-04-2009 04:00 AM

Is there really no way to change the color? I'm a semi- newbie to this, and I can't figure out how to do it. Right now my text is black, but I added this product so I could put a first name field that'll show up - I'd like that whole field, both the question and answer, to be say, blue instead of black. Is that possible at all?

Milad 04-04-2009 04:26 AM

You can add style class and add it to exyra css for the style.

H3C x Nevz 04-04-2009 11:44 AM

This is an awesome hack. I was wondering if, using its custom area, I could somehow make it display all threads the user posted in certain boards. Help would be greatly appreciated.

Milez 04-07-2009 05:16 AM

Hmm...I see the stuff on the 'custom' setting but I still cannot see how to do what I want. I have something like this in Postbit:

Favorites: horse, car, barn

All I want to do is make 'Favorites' bold. Could the author provide an example for what looks like a marvelous hack :)

dealcafe 04-10-2009 02:47 PM

This is what I was looking for and works great is there a way that the custom fields can be a url thats clickable in the post_bit? I have been trying to figure this out for a couple of days and I know I am close. Any tips would be greatly appreciated.

so it would be like this in the post_bit:

michelle
wishlist (and have that be a link to there list? )

Figured it out :)
I used the custom field and then :
<if condition="$post['field11']"><div><a href='$post[field11]'></> Wishlist </div></a></if>

Milad 04-10-2009 09:32 PM

HTML Code:

<if condition="$post['field11']"><div><a href="$post[field11]">Wishlist</a></div></if>

Sofia 05-06-2009 06:08 AM

Hello Milad ! Thank a lot for this mod. Good work ;)

Note: you can't save profile settings if you've installed this hack : https://vborg.vbsupport.ru/showthread.php?t=208213

VonDoom 05-10-2009 07:58 PM

Perfect *Installed*

jubair.a 06-15-2009 10:50 PM

1 Attachment(s)
Hey guys, everything I try does not work, the fields don't show up.

Is there anything I should be editing beforehand (see attached screenshots).

Thanks!!

KenD 06-30-2009 09:55 AM

Exactly what i've been looking for :) Thanks Milad. Installed

pmflav1 06-30-2009 11:07 PM

1 Attachment(s)
Nice script, very useful indeed.

However when I try and use the custom field I keep getting the following error.

Code:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/fpscentr/public_html/xxxxx/includes/class_postbit.php(294) : eval()'d code(139) : eval()'d code on line 2
Attached is the admn area.

Milad 07-01-2009 12:19 AM

Use this in the Custom Content:
HTML Code:

<div class="smallfont">Clan Tag: $post[field5]</div>
Instead of:
HTML Code:

<div class="smallfont">Clan Tag: $post['field5']</div>


All times are GMT. The time now is 06:46 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.01579 seconds
  • Memory Usage 1,827KB
  • 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
  • (3)bbcode_html_printable
  • (6)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