#############################################
插件名称:会员列表加强 For DZ5.0
适用版本:5.0.0
作 者:genshing (genshing@163.com)
数据升级:无
作 用:可按任意已经启用的扩展积分排序会员列表.
演 示:http://bbs.9icd.com/member.php?action=list (本演示站为本人PC,网通小区宽带接入,速度有点慢,开机不定时.)
特别说明:
水平有限,插件难免会有问题,请不要被插件功能左右,安装有风险!请先备份,一切后果本人概不负责!
#############################################
################################################
此处为AD:本人长期提供插件安装,制作,修改HP程序定制.有意者联系QQ:928776
################################################
1.修改 memberlist.htm:
搜索:
- <!--{if $type != 'birthdays'}-->
- <td width="10%" align="center"><a href="member.php?action=list&order=credits">{lang credits}</a></td>
- <!--{else}-->
- <td width="10%" align="center"><a href="member.php?action=list&type=birthdays">{lang todays_birthdays}</a></td>
- <!--{/if}-->
复制代码
替换为:
- <!--{if $type != 'birthdays'}-->
- <td width="10%" align="center">
- <!--{if $order == 'extcredits1'}-->
- <a href="member.php?action=list&order=extcredits2">$extcredits[1][title]</a>
- <!--{elseif $order == 'extcredits2'}-->
- <a href="member.php?action=list&order=extcredits2">$extcredits[2][title]</a>
- <!--{elseif $order == 'extcredits3'}-->
- <a href="member.php?action=list&order=extcredits3">$extcredits[3][title]</a>
- <!--{elseif $order == 'extcredits4'}-->
- <a href="member.php?action=list&order=extcredits4">$extcredits[4][title]</a>
- <!--{elseif $order == 'extcredits5'}-->
- <a href="member.php?action=list&order=extcredits5">$extcredits[5][title]</a>
- <!--{elseif $order == 'extcredits6'}-->
- <a href="member.php?action=list&order=extcredits6">$extcredits[6][title]</a>
- <!--{elseif $order == 'extcredits7'}-->
- <a href="member.php?action=list&order=extcredits7">$extcredits[7][title]</a>
- <!--{elseif $order == 'extcredits8'}-->
- <a href="member.php?action=list&order=extcredits8">$extcredits[8][title]</a>
- <!--{else}-->
- <a href="member.php?action=list&order=credits">{lang credits}</a>
- <!--{/if}-->
- </td>
- <!--{else}-->
- <td width="10%" align="center"><a href="member.php?action=list&type=birthdays">{lang todays_birthdays}</a></td>
- <!--{/if}-->
复制代码
搜索:
- <!--{if $type != 'birthdays'}-->
- <td align="center">$member[credits]</td>
- <!--{else}-->
- <td align="center">$member[bday]</td>
- <!--{/if}-->
复制代码
替换为:
- <!--{if $type != 'birthdays'}-->
- <!--{if $order == 'extcredits1'}-->
- <td align="center">$member[extcredits1]</td>
- <!--{elseif $order == 'extcredits2'}-->
- <td align="center">$member[extcredits2]</td>
- <!--{elseif $order == 'extcredits3'}-->
- <td align="center">$member[extcredits3]</td>
- <!--{elseif $order == 'extcredits4'}-->
- <td align="center">$member[extcredits4]</td>
- <!--{elseif $order == 'extcredits5'}-->
- <td align="center">$member[extcredits5]</td>
- <!--{elseif $order == 'extcredits6'}-->
- <td align="center">$member[extcredits6]</td>
- <!--{elseif $order == 'extcredits7'}-->
- <td align="center">$member[extcredits7]</td>
- <!--{elseif $order == 'extcredits8'}-->
- <td align="center">$member[extcredits8]</td>
- <!--{else}-->
- <td align="center">$member[credits]</td>
- <!--{/if}-->
- <!--{else}-->
- <td align="center">$member[bday]</td>
- <!--{/if}-->
复制代码
搜索:
- <a href="member.php?action=list&order=credits">{lang credits}</a> -
复制代码
在其后添加:
- <!--{loop $extcredits $tmp $val}-->
- <a href="member.php?action=list&order=extcredits$tmp">$val[title]</a> -
- <!--{/loop}-->
复制代码
2.修改 member.php:
搜索:
- if($order == 'credits' || $order == 'gender') {
复制代码
替换为:
- if($order == 'credits' || $order == 'gender' || $order == 'extcredits1' || $order == 'extcredits2' || $order == 'extcredits3' || $order == 'extcredits4' || $order == 'extcredits5' || $order == 'extcredits6' || $order == 'extcredits7' || $order == 'extcredits8') {
复制代码
搜索:
- $query = $db->query("SELECT m.uid, m.username, m.gender, m.email, m.regdate, m.lastvisit, m.posts, m.credits,
- m.showemail$birthdayadd, mf.nickname, mf.site, mf.location FROM {$tablepre}members m
- LEFT JOIN {$tablepre}memberfields mf USING(uid) $sql $orderadd LIMIT $start_limit, $memberperpage");
复制代码
替换为:
- $query = $db->query("SELECT m.uid, m.username, m.gender, m.email, m.regdate, m.lastvisit, m.posts, m.credits, m.extcredits1, m.extcredits2, m.extcredits3, m.extcredits4, m.extcredits5, m.extcredits6, m.extcredits7, m.extcredits8,
- m.showemail$birthdayadd, mf.nickname, mf.site, mf.location FROM {$tablepre}members m
- LEFT JOIN {$tablepre}memberfields mf USING(uid) $sql $orderadd LIMIT $start_limit, $memberperpage");
复制代码 |