![]() |
Show the Usergroup AND Member Groups in postbit
This hack will show what usergroups and membergroups a user is a part of, in the postbit.
This is a very simple hack to install, will take only 1 minute or less :) Screenshot attached below. NOTE: There are modifications for both postbit and postbit_legacy templates! Anyways let's get started! :D Open includes/functions_showthread.php and find PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
Member Groups Please click install if you installed this, thanks! :) |
very cool hack ill install later;)
|
Not very cool just normal ...
|
Nice us of the cache :)
|
Quote:
|
Quote:
|
Hmm just spent few hours yesterday coding this :D. Nice job all the same
|
Quote:
|
weee my request!!! thanks man you rock.
|
Hi, Gary!
Same question.... <grin> How's this hack for vB 3.0 Gold? Also, which part needs to be surrounded by: Code:
<if condition="is_member_of($bbuserinfo,6)"> ... in order to make this hack viewable by admins only? Thanks, and again - Great Hack! (Hmm... I seem to keep saying this to you.... :) ) |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Could this be changed to show usergroup ranks or rank images?
I'd like to show multiple rank images in the postbit. |
Gary, I just noticed something odd...
I have a bunch of users whom I Mass Moved into another UserGroup. However, although in the "User" Table, the "usergroupid" field shows the correct New Group - the "displaygroupid" field still has their old UserGroup. Now, I don't know if this is what is supposed to happen or not - however, this hack seems to pull from the "displaygroupid" field, instead of the "usergroupid" field. As such, a large number of users now show up with the wrong Group info in the Postbit! Assuming that this is not a problem with vB (in other words, assuming that the "displaygroupid" field is *supposed* to show the old Group) - than what needs to be changed in this hack to reflect the correct field being used? |
Replace
HTML Code:
$post[displaygrouptitle] HTML Code:
$usergroupcache[$post[usergroupid]][title] |
Gary, I tried the replacement you suggested, and I got a Parse Error.
Parse error: parse error, unexpected '[', expecting ']' in C:\WebSite\forums\includes\adminfunctions_template .php(3037) : eval()'d code on line 74 |
In the includes/functions_showthread.php find
PHP Code:
Then put $usergroupname in the postbit template wherever you want the usergroup to showu p. |
Thanks, Gary! That did the trick perfectly!
|
Quote:
|
Hope you're still around Gary :) Would it be possible for the usergroups to be displayed with the colour assigned to them too?
|
Does this work on 3.5.3? Open includes/functions_showthread.php? I dont have a functions_showthread.php.
|
I love this modification! any chance it would be coded for 3.6.4?
|
I would like this mod for 3.6.4 as well.
|
|
no body ?
|
All times are GMT. The time now is 04:46 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:
|