Home > php教程 > php手册 > body text

destoon实现VIP排名一直在前面排序的方法,destoonvip

WBOY
Release: 2016-06-13 09:26:41
Original
1572 people have browsed it

destoon实现VIP排名一直在前面排序的方法,destoonvip

本文示例方法实现destoon的排序方式为:一天内VIP登陆后,在点更新之后,会排在其他没有更新的VIP和普通会员前面。

其具体的操作步骤如下:

打开module\sell\admin\template\ 下setting.tpl.php文件
在大约71行找到:

<select onchange="if(this.value) Dd('order').value=this.value;">
Copy after login

并在其下行添加:

<option value="vip desc,editdate desc,edittime desc"<&#63;php if($order == 'vip desc,editdate desc,edittime desc') echo ' selected';&#63;>><&#63;php echo VIP;&#63;>级别,更新日期,更新时间</option>
Copy after login

即可实现该功能。

destoon 【助】供应信息排序方式

首先调用会员组为vip的信息的话,会造成几页都是同一会员信息
 

destoonVIP会员过期了,但供应信息里信息还是优先排序

好像他就是这么做的,比如1. 原来是普通会员的发布了供应信息,然后升级VIP了,之前的供应信息还是普通级别2. 同理也是这样的,在VIP的时候发布的信息,VIP过期后,这些供应信息一直是推荐级别的 查看原帖>>
 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!