PDA

View Full Version : Show Thread Enhancements - Show Profile Fields In Postbit, Zero Query & Template Edit!


Milad
04-16-2008, 10:00 PM
Brought to you by Syrian Medical Society (http://www.syrianmeds.net/) & Milado (http://www.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 three 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.


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 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
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
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
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
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
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

<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
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
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
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
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
does this work in legacy?
It should, but I didn't try it!

KURTZ
05-17-2008, 11:38 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.

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

Milad
05-18-2008, 12:47 PM
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
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
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"

Amm0
05-19-2008, 03:38 PM
I would like to know under what conditions does this bug appear?

It happens directly after posting (sometimes) so it looks like this:

https://vborg.vbsupport.ru/

When it is meant to look like this:

https://vborg.vbsupport.ru/

After you refresh the page, the right details come up though.

pericolosogr
05-19-2008, 08:18 PM
its after posting using quick reply, it doesnt happen you post from advanced posting page!
Cause of ajax?

Amm0
05-20-2008, 12:39 PM
Ah okay, np then. Thanks! :)

Great mod again, this was the one I seriously needed :D

Astrof
05-20-2008, 03:28 PM
This is a wonderful mod, but I can't get it to work. Whether I use posbit or postbit_legacy, the profile fields I input are not shown on the profile page and I always get the follwing error:

Parse error: syntax error, unexpected ':', expecting ']' in /home/hrvatski/public_html/di/includes/class_postbit.php(288) : eval()'d code(2) : eval()'d code on line 1

Help would be appreciated. :)

Milad
05-20-2008, 03:37 PM
I have nothing to do with the profile page!

It seems like you use a mod that interferes with the code!

Also be sure to download the current product and upgrade to it.

Astrof
05-21-2008, 10:46 AM
I have nothing to do with the profile page!

It seems like you use a mod that interferes with the code!

Also be sure to download the current product and upgrade to it.

No, I'm not using any mods or custom styles whatsoever on the forum I'm trying to install this to.

When I said profile page, I meant profile fields that are added by this mod. They don't show up in the user's profile page (or is it somewhere else where it's supposed to show up?).

Milad
05-21-2008, 10:57 AM
This ad-on doesn't add any profile field, it shows the already existed profile fields in the postbit!

DDIG
05-21-2008, 03:51 PM
It just does nothing at all. I am confused. Filled in a field that definately exists, checked and rechecked the admincp options, nothing.....

Astrof
05-21-2008, 09:47 PM
It just does nothing at all. I am confused. Filled in a field that definately exists, checked and rechecked the admincp options, nothing.....

Same here. Legacy or not, nothing ever shows up no matter what I do.

I got rid of the syntax error by uninstalling and re-downloading, it may have been a corruption in the transmission or something, don't know what happened.

But I still can't get anything to apper in postbit.

It's a real shame, a really great mod.

Milad
05-21-2008, 10:43 PM
both of you: make sure you hit the save button in the Thread Display Options (showthread) page.

Astrof
05-22-2008, 12:04 AM
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?

Milad
05-22-2008, 12:19 AM
Please try to replace the content of the hook: "Show Profile Fields In Postbit" at postbit_display_complete to the following:

$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!

Stubbed
05-22-2008, 08:19 AM
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.. :)

KURTZ
05-22-2008, 09:28 AM
It happens directly after posting (sometimes) so it looks like this:

http://i262.photobucket.com/albums/ii89/MrAmm0/compscrnshot_01.jpg

When it is meant to look like this:

http://i262.photobucket.com/albums/ii89/MrAmm0/compscrnshot_02.jpg

After you refresh the page, the right details come up though.

i've got the same trouble in the Announces ... (on the new postbit)

Stubbed
05-22-2008, 09:52 AM
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 ;)

KURTZ
05-22-2008, 10:42 AM
@ 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?

Milad
05-22-2008, 12:46 PM
Please try to replace the content of the hook: "Show Profile Fields In Postbit" at postbit_display_complete to the following:

$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!

GaiLoan
05-22-2008, 07:49 PM
hi, i got blank, didnt show anytin, why is that happen ?

Astrof
05-22-2008, 08:59 PM
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.

Milad
05-23-2008, 12:52 AM
hi, i got blank, didnt show anytin, why is that happen ?
Did you modify the settings according to your needs?

Milad
05-23-2008, 12:54 AM
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.
I'm going to release a new version. I hope it will fix your problem.

Regards

Astrof
05-23-2008, 09:18 AM
I'm going to release a new version. I hope it will fix your problem.

Regards

Great, thanks.

Amm0
05-23-2008, 07:49 PM
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 ;)

Yeah, the profile field name won't show when you quick reply, won't show in an annoucement and won't show in PM's.

Not too bad because it works mostly on the forums, just a small bug I suppose.

Milad
05-23-2008, 08:42 PM
Yeah, the profile field name won't show when you quick reply, won't show in an annoucement and won't show in PM's.

Not too bad because it works mostly on the forums, just a small bug I suppose.
All those bugs had been fixed in the next version.

Regards

Milad
05-23-2008, 09:30 PM
2.0.2 has just been released. please see the main post for more information about this release.

peterpigman
05-23-2008, 09:44 PM
So if you have custom fields already added this would be not be necessary?

Milad
05-23-2008, 09:56 PM
So if you have custom fields already added this would be not be necessary?
No it wouldn't be necessary. but you can revert your template and install this mod to avoid template edits in the future.

Regards

Amm0
05-24-2008, 10:19 AM
Do you just overwrite the old xml and then import with overwrite enabled?

KURTZ
05-24-2008, 10:48 AM
it seems to be fixed ... :up: thx Syro ...

Astrof
05-26-2008, 02:36 PM
2.0.2 has just been released. please see the main post for more information about this release.

Fixed! Wonderful!

Thank you! :)

kether1
05-26-2008, 11:06 PM
Hello,

Is it possible to change the text color displayed using this mod. Currently I have the titles in black and the answers in blue. This is done editing the template. I would like to install this product if it would allow me to change text color the way I have manually done with template edits.

Thanks,
K

Milad
05-27-2008, 05:49 AM
Do you just overwrite the old xml and then import with overwrite enabled?
yes

Amm0
05-28-2008, 12:21 PM
Would there be a possibility of making the profile field titles bold, and leaving the actual field normal?

EDIT: There is still a bug where the profile field name does not show when using quick edit

se_p800
06-03-2008, 05:55 PM
For somereason I get this under every users name in postbit:

Show Profile Fields In Postbit plugin have been installed / upgraded successfully.
Make sure you hit the save button in the Thread Display Options (showthread) page to activate it.

what can I do?

Milad
06-03-2008, 09:57 PM
It says to you what you have to do:
Make sure you hit the save button in the Thread Display Options (showthread) page to activate it.

Subah
06-05-2008, 08:10 AM
Great one , Thanks :)

bornoffire
06-28-2008, 08:35 PM
I get error

"Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /public_html/includes/class_postbit.php(288) : eval()'d code(270) : eval()'d code on line 1

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /public_html/includes/class_postbit.php(288) : eval()'d code(270) : eval()'d code on line 1"

bornoffire
06-28-2008, 08:39 PM
Ok it only gives me that error whe I choose "Show Profile Field Title In Postbit". This is very important to have. Any suggestions?

bornoffire
06-28-2008, 08:59 PM
Turned it off and then turned back on and works fine now, weird.

v12kid
08-05-2008, 07:09 PM
I got it working but it wont accept my postbits css dressing. example is here so you can see:

https://vborg.vbsupport.ru/external/2008/08/68.jpg

any idea on how to fix it?

Milad
08-06-2008, 05:45 PM
Next version may include a field to apply custom CSS classes.

v12kid
08-06-2008, 07:32 PM
Next version may include a field to apply custom CSS classes.


:( awww...

BucWiLd
08-08-2008, 02:33 AM
thank you

shavedaccord
08-18-2008, 10:16 PM
I get error

"Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /public_html/includes/class_postbit.php(288) : eval()'d code(270) : eval()'d code on line 1

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /public_html/includes/class_postbit.php(288) : eval()'d code(270) : eval()'d code on line 1"
I get the same error. Any suggestions?

Milad
08-18-2008, 11:21 PM
I get the same error. Any suggestions?
make sure you hit the save button in the Thread Display Options (showthread) page.

nerofix
08-26-2008, 11:23 AM
Hi,

please do in profile_fields_place a new option called "Under user avatar". Thanks :)

Edit: Okay solved, I just moved the $template_hook[postbit_userinfo_left] in the showthread template, works fine now

truespirit
10-11-2008, 04:58 AM
very very nice - just what i needed - thank you :up::up:

JackFranklin
10-31-2008, 05:38 PM
Great mod (Y).

One thing, I think you should include an option to make the profile field names bold so they stand out more. In the end I had to do this manually but an option would be great.

EDIT - Just saw this - https://vborg.vbsupport.ru/showpost.php?p=1592834&postcount=81

You could use that to do it if you just wrapper a <span> round the profile field name.

Reef Man
10-31-2008, 08:40 PM
Same error here:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/reefman/public_html/cam/forums/includes/class_postbit.php(293) : eval()'d code(19) : eval()'d code on line 2

How can i solve it?

fishmaster
11-03-2008, 10:46 PM
worked like a champ!

Battle_Ring
11-25-2008, 06:15 PM
uplaoded the plug in and put in the fields and it didnt add them to postbit

mmoore5553
12-03-2008, 12:13 PM
can i use image instead of text or is there a mod to do that ?

rob01
12-11-2008, 01:52 AM
do this work for 3.8?

Noonster
01-09-2009, 08:50 PM
Yes its working for me on 3.8 ;)

BizAdventure
01-10-2009, 09:06 PM
This worked great, except that instead of the actual WORD choice I had in the menu it is posting the number.

Anyone have any ideas on why this would be happening?

For example, my profile gives a choice of 4, and whatever one I pick, it will put the NUMBER of the choice instead of the WORD.

Milad
01-11-2009, 10:13 AM
This is not compatible with multi-choices fields right now.

It's intended to be though in the future, may be in the next version. I'm not sure.

mrcake
01-11-2009, 08:08 PM
just what I was looking for. THanks!

Milad
01-11-2009, 08:23 PM
Confirmed two posts above :rolleyes:

Stubbed
01-12-2009, 10:19 PM
Yes its working for me on 3.8 ;)
Coolio - Just what I wanted to know :D

bartek24m
02-05-2009, 12:58 PM
how can i change your chack in order to show this information in

my ver.3.8.1

template

/album.php?albumid=1&pictureid=1 page

could you explain me step by step which product i need do edit ?

Milad
02-05-2009, 01:23 PM
My hack doesn't do that!

bartek24m
02-06-2009, 05:23 AM
even if i modify code ?

Milad
02-06-2009, 10:19 AM
may be if you use it the right way.

jluerken
10-12-2009, 11:45 AM
This can't be implemented without queries! I'm sorry.

I does not matter for a few additional queries but I need this function :-)
Can you please add this function even it it adds queries?

Milad
10-12-2009, 12:08 PM
See the version for 3.8, it has this function implemented already.

BFP
11-25-2009, 02:56 PM
Im getting the same syntax error as previously reported by other users here.

Any ideas?

edited to add: ACK! I figured it out, apparently I need more coffee to remind myself not to put a space in between the field name and #

GREAT Mod!

mmoore5553
08-19-2010, 06:36 PM
Is this going to be updated to version 4

mfowler70
11-10-2011, 06:13 PM
bump for v4.1.1 support

gamersplatoon
11-15-2011, 04:55 PM
Exactly what i wanted..Thank you it works on 4.1.7

keteflips
04-13-2012, 06:57 PM
Dont work in 4.1.12

Exist a new version of this plugin?

Dwarden
04-22-2012, 04:00 PM
there is some bug with it under 4.1.10+

seems like it's unable to read the name of the profile field
the profile field text is w/o problem

so instead e.g.
Real Name: text
it shows
: text

only