Back to vBulletin 3.8 Add-ons

Sort Memberlist by Usergroup
Mod Version: 1.1, by Hasann

vB Version: 3.8.1 Rating: (6 votes - 5.00 average) Installs: 50
Released: 23 Feb 2009 Last Update: 24 Feb 2009 Downloads: 323
Supported Uses Plugins Template Edits Code Changes Translations  

Sort Memberlist by Usergroup by http://www.forumcoding.com/

This Product brought to you by
http://www.vbulletin-turkey.com/

Description: This plugin will sort the memberlist by Usergroup

Install Instructions

Open your memberlist.php file with an editor and find this code

PHP Code:
$sorturl 'memberlist.php?' $vbulletin->session->vars['sessionurl'] . $sortaddon
Replace it with this code

PHP Code:
$sorturl 'memberlist.php?do=getall&groupid=' $groupid '' $vbulletin->session->vars['sessionurl'] . $sortaddon
than find this code

PHP Code:
. (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage""
Replace it with this code

PHP Code:
. (!empty($vbulletin->GPC['groupid']) ? "&groupid=$groupid"")
. (!empty(
$vbulletin->GPC['perpage']) ? "&pp=$perpage""
Save and re-upload overwrite to forum folder.

------------------------------------------------------------------------------------------------

Edit memberlist_letter template and REPLACE all of content with this code

HTML Code:
<if condition="$show['selectedletter']">
<td class="alt1" width="3%">[<strong>$currentletter</strong>]</td>
<else />
<td class="alt2" width="3%"><a href="memberlist.php?$session[sessionurl]do=getall&amp;groupid=$groupid&amp;ltr=$linkletter&amp;pp=$perpage&amp;sort=$sortfield&amp;order=$sortorder$usergrouplink$ltrurl">$currentletter</a></td>
</if>
Edit memberlist template and find this code

HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
    $letterbits
</tr>
</table>
Replace it with this code

HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td colspan="30" height="16" class="thead">
<tr align="center">
    $letterbits
</tr>
</table>
<br/>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td colspan="30" height="16" class="thead">
<tr align="center">
<td class="alt2" width="15%" valign="middle" align="left">
<div class="smallfont"><b>$vbphrase[usergroups]:</b></div>
</td>
<td class="alt1" width="85%" valign="middle" align="center">
<div class="smallfont">$usergrouplinks</div></td>
</tr>
</table>
And Save.

at least import the .xml product .xml file via admincp / product manager.

Tested on: vBulletin 3.8.1

Online Demo: http://www.vbulletin-turkey.com/forum/memberlist.php?langid=1

Download

File Type: %1$s Sort_Memberlist_by_Usergroup.zip (211.0 KB, 280 downloads)

Supporters / CoAuthors

  • Hasann

Screenshots

Click image for larger version
Name:	Sort_Memberlist_by_Usergroup.jpg
Views:	1015
Size:	234.2 KB
ID:	95366  

Similar Mods

Mini Mods Sort Memberlist by usergroup Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024