![]() |
Show usergroup for staff members in postbit
File Edits: 1 (functions.php)
Install time: 4 minutes A very easy hack, so easy I hope it hasn't been released before. :p Basically it will allow staff members to have their usergroup shown in the postbit. I always once in awhile get a question asked of who is the administrator or who are the moderators, because there are other people on the forum, other than just the staff members, who use custom titles. For example, I have a member who has been on the forum for about 2 months just found out one of the members is a super moderator :dead: If you want also, you can have it display a small icon for the staff member instead. :ninja: ---------- Installation ---------- 1. In functions.php find PHP Code:
PHP Code:
1b. If you want to use an icon, use the following code instead in functions.php: PHP Code:
2. Now in the postbit template, place $poststaff where ever you like. I have mine right above $post[usertitle]. But if you use an icon, I would place it to the right of the username. Well that's it! Now check out this cool banana guy--> :banana: |
A picture for those deprived of one:
:p |
this was done by someone else, if i'm correct.
|
let's just pretend that "other" hack never existed :) *evil grin*
ps: thnx |
Here is another small add-on, to enhance things somewhat..
If you want your users with customtitles to have their original status displayed above, you can do this: Replace the ENTIRE code I posted above (the non-icon one) in functions.php, with the following: PHP Code:
Then where you see user group name, fill that with the highest usergroup name allowed right before a custom title. For example on these forums if you were allowed a custom title reaching some high amount of posts like 1500, the previous title would be Ultimate Hacker. Now say your forum allows custom titles from the very start, but you still want to display the usergroup titles. This is easy, but requires a small amount of code to add. Right below PHP Code:
PHP Code:
|
as i know, there are more than just 1 hack which actually do this, we should merge them all ;)
Quote:
|
Disallow some titles? I'm not sure I'm following you there. There is an option in the AdminCp that allows you to prevent users from using certain words in their custom titles..and I think that's about it...
|
yes, that was what i meant ;)
damn, english skills become bader with every hour you go to university and have to work ^^ but now, i see what you meant *gg* you meant a supermod has definied a title so nobody could see it's a supermod right? ;) |
this hack is great and SOOOO simple to do... its exactly what i want :D
thanks velocd |
Quote:
Quote:
|
All times are GMT. The time now is 10:26 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:
|