Back to vBulletin 3.0 Add-Ons

Show the Usergroup AND Member Groups in postbit
Mod Version: 1.00, by Gary King

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 15
Released: 08 Feb 2004 Last Update: Never Downloads: 2
Not Supported  

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!

Open includes/functions_showthread.php and find
PHP Code:
    $show['messageicon'] = iif($post['iconpath'], truefalse); 
Above, add:
PHP Code:
    $show[usergroup] = 1;
    
$show[member_groups] = 1;
    
$membergroupids explode(',',$post[membergroupids]);
    
$membergroups '';
    
    foreach (
$membergroupids as $group)
    {
        if (
$membergroups == '')
        {
            
$membergroups .= $usergroupcache[$group][title];
        }
        else
        {
            
$membergroups .= ', '.$usergroupcache[$group][title];
        }
    } 
Open postbit template and find:
PHP Code:
                        <if condition="$show['reputation']">$post[reputationdisplay]</if> 
Below, add
PHP Code:
                        <if condition="$show[usergroup]"><br />$vbphrase[usergroup]: $post[displaygrouptitle]</if>
                        <if 
condition="$show[member_groups]"><br />$vbphrase[member_groups]: $membergroups</if> 
And just add one new phrase, member_groups, with the following content:
Code:
Member Groups
NOTE: If you are using postbit_legacy instead of postbit then add the new code for postbit, to wherever you want to show up in postbit_legacy, that's all!

Please click install if you installed this, thanks!

Download

No files for download.

Screenshots

 

Similar Mods

Show Usergroup Description on Show Groups vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024