The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Sort Memberlist by Usergroup Details »» | |||||||||||||||||||||||||||||
This Product brought to you by 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:
PHP Code:
PHP Code:
PHP Code:
------------------------------------------------------------------------------------------------ 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&groupid=$groupid&ltr=$linkletter&pp=$perpage&sort=$sortfield&order=$sortorder$usergrouplink$ltrurl">$currentletter</a></td> </if> HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr align="center"> $letterbits </tr> </table> 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> at least import the .xml product .xml file via admincp / product manager. Tested on: vBulletin 3.8.1 Online Demo: www.vbulletin-turkey.com/forum/memberlist.php?langid=1 Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Comments |
#12
|
||||
|
||||
Here's a couple more things you may want to correct before re-uploading the attachment.
Although you clean the groupid variable at the memberlist_start hook, you never use that version, instead you redeclare $groupid later on, using the unclean version. At memberlist_start Code:
$groupid = $vbulletin->input->clean_gpc('r', 'groupid', TYPE_UINT); Code:
if (intval($_REQUEST['groupid']) > 0) { $groupid = intval($_REQUEST['groupid']); $condition .= ' AND (FIND_IN_SET(\''.$groupid.'\', membergroupids) OR user.usergroupid = '.$groupid.')'; } That final part should be: Code:
if (intval($groupid) > 0) { $condition .= ' AND (FIND_IN_SET(\''.$groupid.'\', membergroupids) OR user.usergroupid = '.$groupid.')'; } Also, although the $do_not_include variable hides the defined usergroups from the options list, members can still randomly try numbers and pull the memberlist for all those usergroups, regardless of the $do_not_include setting (apart from usergroups that are set in the AdminCP to be hidden from the memberlist). If you move the $do_not_include declaration to the top of the plugin, it can also be checked when you check if $groupid > 0. |
#13
|
||||
|
||||
good job hassan works great:up:
|
#14
|
|||
|
|||
Hasann or somebody else...
Could you send me the file download link via PM or reupload the modified version ? I'm looking this hack for ages... |
#15
|
||||
|
||||
Thanks hasann..
|
#16
|
||||
|
||||
in next version will improve this product just wait
|
#17
|
||||
|
||||
Cool hack, thanks. If there are no file edits I'll install it.
|
#18
|
||||
|
||||
Looks nice. Going to install. Anyway to sort members in the user groups by join date?
Thanks. :up: |
#19
|
|||
|
|||
<div align="left">been good thanks, although I have not tried, but nice sharing</div>
|
#20
|
||||
|
||||
How about adding usergroup styling to this?
|
#21
|
|||
|
|||
Great mod, thanks, it was just what I needed.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|