![]() |
vBulletin 4 Request - Postbit edit 'member name'
1 Attachment(s)
Im running vbulletin 4.2.2 and need to edit the postbit a tad.
When i add a member to a specific usergroup i would like to be able to add a custom 'tag' infront of the member name. Like clan tag. In postbit1 image attached is how it looks now. In postbit2 image is how i want it to look when i have added a member to a specific usergroup. Is this possible to make happen ? |
first thing that popped to my mind
https://vborg.vbsupport.ru/showthrea...highlight=clan |
That didnt work at all.
Was thinking more of something like <if usergroup 10 [DAB] ellse....... Or mayby if statements doesnt work on vbulletin 4 ? |
Take a look at https://vborg.vbsupport.ru/showthread.php?t=231525
|
Thanks i will have a look at it :)
|
You could also do this with a plugin...create a plugin with the "Hook Location" of "postbit_display_complete" with the following "Plugin PHP Code":
PHP Code:
I would use an execution order of 0 for the plugin to make sure this gets done before other plugins have a chance to alter the marked up name. |
This worked great :)
Is there any hooklocation where the 'TAG' is visible all over the forum and cms ? Quote:
|
Quote:
First, I go to the Usergroup Manager, and edit the HTML markup to give the span element containing the username a classname: In the "Username HTML Markup" fields, I enter: Opening tag: HTML Code:
<span class="group6" style="font-weight: bold; color: #FF8000;"> HTML Code:
</span> Now, we can inject a CSS selector on all pages with the following plugin, hook location "parse_templates": PHP Code:
|
Now that worked great. Thank you and sorry for all the stupid questions :)
|
Quote:
|
Quote:
Glad you got what you were looking for though =) |
All times are GMT. The time now is 07:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|