View Full Version : Show Thread Enhancements - Show Profile Fields In Postbit, Zero Query & Template Edit!
Milad
03-13-2009, 10:00 PM
Brought to you by Milad's vBulletin Services! (http://services.milado.net/)
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 78860.
Otherwise every profile field will be shown in its own line (in the format title: value) 78861.
Choose to show the profile fields in one of current seven supported locations:
Under the user name, user title and user rank 78860.
Right Under the number of user posts 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
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
To show non-profile-field content, we have to do it in to steps explained in the following photo:
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
To show non-profile-field content, we have to do it in to steps explained in the following photo:
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
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?
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
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
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
<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
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!!
Exactly what i've been looking for :) Thanks Milad. Installed
pmflav1
06-30-2009, 11:07 PM
Nice script, very useful indeed.
However when I try and use the custom field I keep getting the following error.
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:
<div class="smallfont">Clan Tag: $post[field5]</div>
Instead of:
<div class="smallfont">Clan Tag: $post['field5']</div>
pmflav1
07-01-2009, 01:02 AM
Thanks, but still coming up with the error
jankoalek
07-21-2009, 12:23 PM
great mod...installed........nominated
future request: more custom fields
custom1
custom2
custom3
Is possibile to make this?
Thanks
samuelflo
07-25-2009, 02:24 AM
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"
jluerken
10-13-2009, 04:51 AM
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:
<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>
Milad
10-13-2009, 01:02 PM
It's possible of course, but you have to edit the hack code.
jluerken
10-14-2009, 04:42 PM
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? ;)
DynaMow
10-16-2009, 02:06 AM
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.
ShadowStalker
10-19-2009, 01:26 AM
This is an excellent mod
imedic
11-14-2009, 06:29 PM
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.
bluej
11-15-2009, 02:11 AM
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 :)
Milad
11-15-2009, 10:36 AM
Add the field in the custom code box, and use conditions there.
Charlie98902
11-15-2009, 08:31 PM
Port to vb4 soon please :)
bluej
11-18-2009, 07:04 AM
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 :)
Add the field in the custom code box, and use conditions there.
thanks for the reply, but that is a little over my head at this time to figure out what code i need to add, so i will just leave it as is ... thank you :)
OturanBoğa
12-18-2009, 09:53 AM
vb4 soon please
JamesGunner
12-26-2009, 07:20 PM
I would love to see this on vb4.
voglermc
12-28-2009, 01:38 PM
I would love to see this on vb4.
+1 please
Charlie98902
12-30-2009, 12:12 PM
Please port over to vbulletin 4.
Thank - You
KURTZ
03-13-2010, 11:24 AM
+1 please
+1 :p
Jeweetog
03-23-2010, 08:42 AM
So how does this look in the postbit?
Anyone got a screenie for me? :)
mgurain
07-06-2010, 01:21 AM
I did import the product and change the settings to display profile fields,
but it didn't show up for me !
althought postbit & postbit_legacy are not customized.
please help solve it ?
thanks,,
cmiller1014
07-19-2010, 05:44 PM
Would love for vb 4.0!
Jheroen
07-21-2010, 07:35 PM
I hope the coder fixes this mod for VB4, it's a pity that VB doesn't have this in the standard installation. most people running forums do have more info than only place/hobby etc...
:o
mgurain
08-04-2010, 07:57 AM
It's not working in my 3.8 ?
I put field names but nothing shown !
please help ?
airboss
08-06-2010, 10:51 PM
I agree I wish this was part of VB 4.0.
viper357
08-20-2010, 08:07 AM
Fantastic mod, thank you.
jluerken
11-22-2010, 10:16 AM
Ive installed this on a vb4.0.8 PL2 board with a custom style and want to use the custom CSS option.
The name of the class is "post_field" so I added this text in the "Profile Field Custom CSS class" field in the admincp.
In the "postbit custom content" box I entered
<dt>{vb:rawphrase field19}</dt> <dd>{vb:raw field19}</dd>
In the end I expect it to look like this:
<div class="post_field"><dt>{vb:rawphrase field19}</dt> <dd>{vb:raw field19}</dd></div>
but instead it shows up like this:
<div class="smallfont post_field">title_of_field19: text_of_field19</div>
Text and title of the field are correct but in the div the "smallfont" is to much and
I need the <DT> and <DD> to be included to make it showing up like the rest.
How can I do this?
DFORMS
03-02-2011, 04:29 PM
Not working for me (vb4)...
kisanjong
03-04-2011, 11:34 AM
please update for 4.12 - Thanks
Crossbow
03-14-2011, 10:58 PM
Thank you.
G37Sam
04-22-2012, 11:11 AM
Does this work on vb4?
Fireballx
04-25-2012, 08:30 AM
Installed :)
dlewisr
05-31-2012, 06:55 PM
Great mod............ pity it isn't useable on vb4 :( Gonna keep my eye on this one in the hope it gets updated.
Boofo
05-31-2012, 07:26 PM
I doubt very seriously you will see this updated to vB 4 unless you are willing to spend some cash for him to do it. I offered Milad to do it but was told I could not release it.
dlewisr
06-01-2012, 08:40 AM
I doubt very seriously you will see this updated to vB 4 unless you are willing to spend some cash for him to do it. I offered Milad to do it but was told I could not release it.
That's a shame as it's a good mod, our loss that your offer was rejected too. In the meantime I must have had a lightbulb moment and managed to change what I needed by template editing. Nothing fancy, but it did the job.
blind-eddie
06-01-2012, 12:12 PM
I doubt very seriously you will see this updated to vB 4 unless you are willing to spend some cash for him to do it. I offered Milad to do it but was told I could not release it.
Hello Rob... Where have you been?
You may not be able to release your copy of this addon but, you can show step by step what you edited to get it to work in vb4. Just a thought...
Boofo
06-01-2012, 12:30 PM
I've been where I always am. ;)
The way I understood it was that I was not to release ANY updates to the public. I think he is planning on charging for the vb 4 update, unless I misunderstood him.
blind-eddie
06-01-2012, 12:37 PM
From what I was told time and time again here that any addon can be updated with edits showing what was done to original hack. You can't give members an edited copy of the product but can show step by step instructions how you updated or enhanced the modification.
Look at the Random Tips link below.
Fashel.Net
06-03-2012, 05:48 AM
شكراً لكِ ياميلاد
تسلم ايدك
Xanlamin
12-04-2013, 09:19 PM
I know this is over a year old, but I have not been able to find anywhere on how ti get this to work with images.
1 of my profile fields is a single-selection box with multiple choices from it.
I tried using the same code I use for one of my pages where it pulls the field and sets the image for it, and I am wanting to do the same thing for the postbit.
<div class=">$stylevar[imgdir_misc]/$user[field8].png" alt="$user[field8]" /></div>
Is what I have entered in the Postbit Custom Content
I do have the field entered in then custom just below it.
is this correct or is there something else I need to do to get the field to show?
blind-eddie
12-05-2013, 01:32 PM
Try this......
<!-- Start Image in postbit -->
<if condition="$post[field8]"><img src="$stylevar[imgdir_misc]/$post[field8].png" alt="$post[field8]" /></if>
<!-- End Image in postbit -->
Xanlamin
12-06-2013, 12:21 AM
Thank you so much blind-eddie, worked.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.