![]() |
|
Thread Tools |
#1
|
|||
|
|||
![]()
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 ?
__________________
Dark Angel Battalion No members have liked this post.
|
#2
|
||||
|
||||
first thing that popped to my mind
http://www.vbulletin.org/forum/showt...highlight=clan
__________________
12/12/2020 - My PC has crashed, I have narrowed it down to the PSU, MB, or CPU. I believe it is the PSU (EVGA NEX750B) This is my job, creating free products and offering my services. With a daughter to be here any day I have very limited cash flow right now. If you wish to help me get a new PSU I would be greatly appreciative. PM me or read more here Dirt RIF CustUmz The following members like this post: CAG CheechDogg
|
#3
|
|||
|
|||
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 ?
__________________
Dark Angel Battalion No members have liked this post.
|
#4
|
|||
|
|||
Take a look at https://www.vbulletin.org/forum/showthread.php?t=231525
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#5
|
|||
|
|||
Thanks i will have a look at it
![]()
__________________
Dark Angel Battalion No members have liked this post.
|
#6
|
||||
|
||||
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":
Replace X and Y with the usergroupids of the usergroups you wish to have custom tags and the strings "tagX" and "tagY" with the tag text itself. If you have more than two groups, then simply add cases as needed within the switch block. 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.
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#7
|
||||
|
||||
This worked great
![]() Is there any hooklocation where the 'TAG' is visible all over the forum and cms ?
Originally Posted by MarkFL
![]()
__________________
Dark Angel Battalion No members have liked this post.
|
#8
|
||||||||||||
|
||||||||||||
Originally Posted by croft
Okay, if you want it to show up everywhere, try the following approach. Suppose I want the tag "[Admin]" to show up before those whose displaygroupid is 6. And I want this tag to be red.![]()
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:
Closing tag:
Of course, you would use the "style" attributes you want, on my dev site, admins' names are in bold orange. I simply added the class attribute. Now, we can inject a CSS selector on all pages with the following plugin, hook location "parse_templates":
Now, everywhere an admin whose displaygroupid is 6 has their marked up username shown, the tag will be present. ![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#9
|
|||
|
|||
Now that worked great. Thank you and sorry for all the stupid questions
![]()
__________________
Dark Angel Battalion The following members like this post: MarkFL, Dr.CustUmz
|
#10
|
||||
|
||||
You're welcome, and please don't think your questions are "stupid"...you stated a legit request, and that's what this forum is for.
![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons The following members like this post: Dr.CustUmz
|
#11
|
||||
|
||||
Oh geeze, dont feel stupid =) I ask stuff ALL THE TIME (take a look in the vb3 programming forum lol) I pretty much own it
![]() Glad you got what you were looking for though =)
__________________
12/12/2020 - My PC has crashed, I have narrowed it down to the PSU, MB, or CPU. I believe it is the PSU (EVGA NEX750B) This is my job, creating free products and offering my services. With a daughter to be here any day I have very limited cash flow right now. If you wish to help me get a new PSU I would be greatly appreciative. PM me or read more here Dirt RIF CustUmz No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 08:57.