PDA

View Full Version : Show Thread Enhancements - vBUT - User Group User Titles & Custom User Titles


Lee Roberts
02-28-2013, 11:00 PM
Introduction
This modification is designed to meet the needs of a request by ?Zakalway?.
It adds ?User Group User Titles? and ?Custom User Titles? to the user information area of a post; it supports both the ?postbit? and ?postbit_legacy? templates. Please see the screen shots below and also the install instructions.

Features:
- Just two manual template edits
- Supports postbit and postbit_ legacy templates
- No admin options to change or setup - simple and gets the job done.
- Follows the standard vBulletin titles ladder system.

Support
I?ve spent about 5 hours trying to make this a 100% ?no manual edits required? modification, however unfortunately I don?t think this can be done due to the way user titles are handled in vB (the title ladder!), I could be wrong and there may be a way, for me it?s now beyond the amount of time I can invest in this. I will offer support related to getting it installed, anything more and I can?t help you sorry!

Install/Upgrade
Simply import the product xml file (download below), if you are upgrading from an older version follow the same steps as installing for the first time, choosing ?Yes? to overwrite files and/or settings where applicable.

Manual Template Edits
GO TO: "AdminCP > Styles & Templates > Style Manager > Template Options > Edit Templates"

From the scrollable menu list of templates, find the ?Postbit Templates > postbit? template and choose Customize.

In this template:

FIND: <span class="usertitle">{vb:raw post.usertitle}</span>REPLACE WITH: <span class="usertitle">{vb:raw post.displayusertitle}</span>Now Choose ?Save?.

NEXT: From the scrollable menu list of templates, find the ?Postbit Templates > postbit_legacy? template and choose Customize.

In this template:

FIND: <span class="usertitle">{vb:raw post.usertitle}</span>REPLACE WITH: <span class="usertitle">{vb:raw post.displayusertitle}</span>Now Choose ?Save?.

Congratulations!, you can now add User Titles and User Group titles as you please.

Change Log
v1.0 - 1 Mar 2013
- First version

Enjoy!
I hope this meets your needs.

Regards,
Lee Roberts

Lee Roberts
03-01-2013, 10:15 AM
** Reserved **

Dont forget to mark as Installed, Nominate and Rate/Vote for it !

.Me

Kraxell
03-01-2013, 06:44 PM
Do you have any Live-Demo?

Whats with Rank-Images?

Lee Roberts
03-01-2013, 10:55 PM
Do you have any Live-Demo?

Whats with Rank-Images?

Sorry no live demo, dont understand your other question "Rank-Images".

.Me

Kraxell
03-02-2013, 09:12 PM
What is with rank-images? Where are they shown? Maybe you can make an image with rank-images on this postbit.

Lee Roberts
03-02-2013, 09:38 PM
Hi,

No problem i understand you now. See screen shots:

Zakalway
03-03-2013, 12:01 AM
This is great! One thing: is there any way to remove the "User Title: " part and just have it be the custom title text underneath the avatar?

Alan_SP
03-03-2013, 08:25 PM
Why don't use custom user profile field, call it the way you like, and then allow it to be shown in postbit with simple template edit?

It looks way more easier than this.

Lee Roberts
03-10-2013, 09:56 PM
This is great! One thing: is there any way to remove the "User Title: " part and just have it be the custom title text underneath the avatar?

Sorry for the delay Zakalway, if you want to remove that text you would need to edit the plugin code, its really simple so not much code to look at:

AdminCP > Plugins & Products > Plugin Manager > Postbit: Add custom user title to postbit and postbit_legacy.

FIND:
$replace_ut_pl = '<dl class="userinfo_extra"><dt>User Title</dt><dd>' .$post['usertitle'] . '</dd>';

REPLACE WITH:
$replace_ut_pl = '<dl class="userinfo_extra">' .$post['usertitle'] . '<br><br>';Below is what this edit will output to the screen.

.Me

scoutz
11-24-2013, 08:29 PM
I installed this mod but here is what happened:

https://vborg.vbsupport.ru/external/2013/11/14.png

In one profile, appeared the titles of everyone that posted in that thread. Plus, it showed the custom title not the default. :(