MyBB Community Forums

Full Version: Additional Usergroup Images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want a plugin that Additional Usergroup Images in JUST in the profile not the postbib is there and plugin that does that the picture shows how i would like it
http://mods.mybb.com/view/additional-usergroup-images

Once you activate the plugin, open ./inc/plugins/aui.php and find;
function aui_post($post)
{
	global $templates, $theme, $xfire, $memprofile, $mybb, $db, $auigi, $gi, $aui, $memprofile;
	$gids = $post['additionalgroups'];
	$gids = explode(",",$gids);
	$gi = "";
	foreach($gids as $gid)
	{
	$getaui=$db->query("SELECT image FROM ".TABLE_PREFIX."usergroups WHERE gid='".$gid."'");
	$getaui=$db->fetch_array($getaui);
	$aui = $getaui['image'];
	if($aui != "")
	{
	if($mybb->user['classicpostbit'] == 1)
	{
	$post['groupimage'] = $post['groupimage']."<img src='$aui'><br />";
	}
	else
	{
	$post['groupimage'] = $post['groupimage']."<br /><img src='$aui'>";
	}
	}	
	}
	
}
and Change it into;
/*
function aui_post($post)
{
	global $templates, $theme, $xfire, $memprofile, $mybb, $db, $auigi, $gi, $aui, $memprofile;
	$gids = $post['additionalgroups'];
	$gids = explode(",",$gids);
	$gi = "";
	foreach($gids as $gid)
	{
	$getaui=$db->query("SELECT image FROM ".TABLE_PREFIX."usergroups WHERE gid='".$gid."'");
	$getaui=$db->fetch_array($getaui);
	$aui = $getaui['image'];
	if($aui != "")
	{
	if($mybb->user['classicpostbit'] == 1)
	{
	$post['groupimage'] = $post['groupimage']."<img src='$aui'><br />";
	}
	else
	{
	$post['groupimage'] = $post['groupimage']."<br /><img src='$aui'>";
	}
	}	
	}
	
}
*/
how do i change it?