Sychev_S
06-19-2007, 10:00 PM
This hack requires a working installation of Psionic Vision's Interactive Profiles Script, that can be found here:
https://vborg.vbsupport.ru/showthread.php?threadid=150028
Here is instructions on how to make your memberlist to be sorted by users with highest score/number of votes.
You can see example here:
http://www.tdotzone.com/forums/memberlist.php
/////////////////////Here we go//////////////////////////
Requires:
- 1 file edit
- 1 template edit
///////////////////////////////////////////////////////////
Open your memberlist.php and FIND:
case 'username':
$sqlsort = 'user.username';
break;
Add UNDER:
case 'popular':
$sqlsort = 'user.iprof_votenum';
break;
case 'vote':
$sqlsort = 'user.iprof_votetotal / user.iprof_votenum';
break;
Save.
In template memberlist ADD (anywhere you wish I have it right after $navbar):
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" align="center">
<a rel="nofollow" href="$vboptions[bburl]/memberlist.php?sort=vote&order=desc">Top Members</a>
|
<a rel="nofollow" href="$vboptions[bburl]/memberlist.php?sort=popular&order=desc">Popular Members</a>
</td>
</tr>
</table>
<br/>
Save.
Done. This adds a nice bar where your members can sort users by their rating/number of votes.
https://vborg.vbsupport.ru/showthread.php?threadid=150028
Here is instructions on how to make your memberlist to be sorted by users with highest score/number of votes.
You can see example here:
http://www.tdotzone.com/forums/memberlist.php
/////////////////////Here we go//////////////////////////
Requires:
- 1 file edit
- 1 template edit
///////////////////////////////////////////////////////////
Open your memberlist.php and FIND:
case 'username':
$sqlsort = 'user.username';
break;
Add UNDER:
case 'popular':
$sqlsort = 'user.iprof_votenum';
break;
case 'vote':
$sqlsort = 'user.iprof_votetotal / user.iprof_votenum';
break;
Save.
In template memberlist ADD (anywhere you wish I have it right after $navbar):
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" align="center">
<a rel="nofollow" href="$vboptions[bburl]/memberlist.php?sort=vote&order=desc">Top Members</a>
|
<a rel="nofollow" href="$vboptions[bburl]/memberlist.php?sort=popular&order=desc">Popular Members</a>
</td>
</tr>
</table>
<br/>
Save.
Done. This adds a nice bar where your members can sort users by their rating/number of votes.