2011-07-26, 11:57 AM
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
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'>";
}
}
}
}
*/