vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - vBUT - User Group User Titles & Custom User Titles (https://vborg.vbsupport.ru/showthread.php?t=295628)

Lee Roberts 02-28-2013 11:00 PM

vBUT - User Group User Titles & Custom User Titles
 
1 Attachment(s)
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:
Code:

<span class="usertitle">{vb:raw post.usertitle}</span>
REPLACE WITH:
Code:

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

<span class="usertitle">{vb:raw post.usertitle}</span>
REPLACE WITH:
Code:

<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

Quote:

Originally Posted by Kraxell (Post 2407239)
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

1 Attachment(s)
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

1 Attachment(s)
Quote:

Originally Posted by Zakalway (Post 2407485)
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:
Code:

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


REPLACE WITH:

Code:

$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. :(


All times are GMT. The time now is 02:15 AM.

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.01268 seconds
  • Memory Usage 1,734KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete