MyBB Community Forums

Full Version: UserGroup in PostBit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In Vbulletin is a "small" plugin to show the usergroup name in postbit. Is it existing or can be created for MyBB?

Here a screenshot:

[Image: 9190d1229446167-social-groups-clipboard01.jpg]

or

[Image: 116i7t2.jpg]
@Yaldaram
ty,but i want the usergroup name,not the image...
If is imposible..i will do some images with names..but maybe someone can do what i want.
Open plugin file (i.e. aui.php) and find;
	$getaui=$db->query("SELECT image FROM ".TABLE_PREFIX."usergroups WHERE gid='".$gid."'");
	$getaui=$db->fetch_array($getaui);
	$aui = $getaui['image'];
	if($aui != "")
	{
	$gi = $gi."<img src='$aui'><br />";
and replace it to;
	$getaui=$db->query("SELECT title FROM ".TABLE_PREFIX."usergroups WHERE gid='".$gid."'");
	$getaui=$db->fetch_array($getaui);
	$aui = $getaui['title'];
	if($aui != "")
	{
	$gi = $gi."[$aui]<br />";
Is not working,it just show a space under username and avatar : see last post : http://forum.dreamworks-club.com/Thread-Test-Thread
Did you added/assigned additional groups to users, Kitikru ?
yea,sure
I'll test this, and if works, will post it shortly.
Ok, i will wait

BTW: I never seen so helpfull people like in this community. Good job.
That data is in cache. No need for the extra query.