Quote:
Originally Posted by pgowder
How can I list vCash in the members list?
|
This is what I came up with. It involves 1 file edit and 2 template edits. The result is vcash showing up in the member list and is sortable...
Step 1: Edit memberlist.php
PHP Code:
================================
File Edit: memberlist.php
================================
FIND:
--------------------------------
case 'posts':
$sqlsort = 'user.posts';
break;
--------------------------------
ADD BELOW:
--------------------------------
case 'vbookie_cash':
$sqlsort = 'user.vbookie_cash';
break;
Step 2: Edit memberlist Template
PHP Code:
================================
Template Edit: memberlist
================================
FIND:
--------------------------------
<if condition="$show['postscol']"><td class="thead" nowrap="nowrap"><a href="$sorturl&order=DESC&sort=posts&pp=$perpage$usergrouplink">$vbphrase[posts]</a> $sortarrow[posts]</td></if>
--------------------------------
ADD BELOW:
--------------------------------
<if condition="$vboptions['vbookiecashon']"><td class="thead" nowrap="nowrap"><a href="$sorturl&order=DESC&sort=vbookie_cash&pp=$perpage$usergrouplink">$vbphrase[vbookie_vcash]</a> $sortarrow[vbookie_cash]</td></if>
Step 3: Edit memberlist_resultsbit Template
PHP Code:
================================
Template Edit: memberlist_resultsbit
================================
FIND:
--------------------------------
<if condition="$show['postscol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[posts]</td></if>
--------------------------------
ADD BELOW:
--------------------------------
<if condition="$vboptions['vbookiecashon'] AND exec_switch_bg() "> <td class="$bgclass">$userinfo[vbookie_cash]</td></if>
Tested on my site and works perfectly...