PDA

View Full Version : Show Thread Enhancements - [vBMods.rocks] Add Custom Profile Fields in Postbit


noypiscripter
02 Aug 2016, 20:10
By default, vBulletin 5 only displays the Join Date and Post count in the postbit area (avatar and username section) in the thread view of a topic. There may be other tutorials out there to add custom fields in postbit but some require you to edit the existing postbit template. Editing existing templates is not good for maintenance reasons as you would have to resolve template merge conflicts every time you upgrade. Or some might require you to create a template hook and repeatedly copy/paste template code for adding multiple fields and change instances of profile field variable names. Another maintenance nightmare. :eek:

Don't look any further, here's the mod that is simple but rocks! Simply download the zip file, uncompress it and upload the XML in AdminCP > Products & Hooks > Manage Products > [Add/Import Product] and you're good to go. By default, it adds Location and Occupation profile fields in Postbit. You can configure what profile fields to add in AdminCP > Settings > Options > Custom Profile Fields in Postbit Settings.

As a bonus, the mod also adds "Send PM" link to the postbit to make it easier for users to send a private message to a user while reading a thread. You can also configure that in the Custom Profile Fields in Postbit Settings.

Compatibility: vB 5.x.x

Demo:
See demo here (http://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin-5-products-and-extensions/170-add-custom-profile-fields-in-postbit).

The Bish
10 Feb 2017, 03:20
I added this and all seems to work except for the values showing in the postbit. See what is being shown vs what is expected in screenshots. Thank you!

noypiscripter
10 Feb 2017, 20:59
Did you specify the field IDs of the fields you want to show in AdminCP > Settings > Options > Custom Profile Fields in Postbit Settings > Profile Fields to Add to Postbit?

Btw, you have a different User Profile Field Manager? Is this a mod and not the default one?

The Bish
10 Feb 2017, 21:42
Running standard 5.2.6 Alpha

No mods and yes I added the field IDs correctly. It is just not picking up the correct value.

noypiscripter
11 Feb 2017, 00:55
Ok, I will install 5.2.6 RC1 and test this mod.

Daryn
24 Feb 2017, 16:58
I'm currently working on a vb5 site now. This will come in handy. Is it possible to modify 'how' the fields display? I'd like to use this to display country flags on the postbit, among other info.

Surf_rider
19 Mar 2018, 12:55
How to add country flag in postbit? Images not works

Eng.mohd.badawi
20 Jun 2018, 19:50
work perfect on vb5.4.2

thanks

example (https://www.ienajah.com/vb/forum/industrial-engineering-fields-%D9%85%D8%AC%D8%A7%D9%84%D8%A7%D8%AA-%D8%A7%D9%84%D9%87%D9%86%D8%AF%D8%B3%D8%A9-%D8%A7%D9%84%D8%B5%D9%86%D8%A7%D8%B9%D9%8A%D8%A9/engineering-managment-project-managment-%D8%A7%D9%84%D8%A7%D8%AF%D8%A7%D8%B1%D8%A9-%D8%A7%D9%84%D9%87%D9%86%D8%AF%D8%B3%D9%8A%D8%A9-%D9%88-%D8%A7%D8%AF%D8%A7%D8%B1%D8%A9-%D8%A7%D9%84%D9%85%D8%B4%D8%A7%D8%B1%D9%8A%D8%B9/840-%D8%AA%D8%B9%D8%B1%D9%8A%D9%81%D8%A7%D8%AA-production-operation-management)

spirit232
04 Dec 2018, 17:08
I use it in a motorcycle forum and let the motorcycles of the members show. If a member leaves, he will be shown as a guest. Now when a member views a guest's post there his motorcycles are displayed. Can you confirm that and how can I change that?

noypiscripter
05 Dec 2018, 01:38
The mod is getting the userid of the author of the post. If the author is deleted, I assume vB is passing userid=0, in which case, it shouldn't display any custom fields as obviously there's no associated profile fields for guests. I cannot confirm what vB is passing. This may be a cache issue. Try to clear system cache and/or Rebuild Topic Information in AdminCP.

CliveLarner
12 Jan 2019, 11:22
Installed and working as it should on 5.45 many thanks