Back to vBulletin 3.6 Add-ons

vS-IP - Sort by Vote Number/Score
Mod Version: 1.00, by Sychev_S

This modification is in the archives.
vB Version: 3.6.7 Rating: (1 vote - 5.00 average) Installs: 6
Released: 20 Jun 2007 Last Update: Never Downloads: 3
Not Supported  

This hack requires a working installation of Psionic Vision's Interactive Profiles Script, that can be found here:
http://www.vbulletin.org/forum/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:

PHP Code:
case 'username':
            
$sqlsort 'user.username';
            break; 
Add UNDER:

PHP Code:
    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):

HTML Code:
<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.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2025