destoon implements the method of VIP ranking always being sorted at the front, destoonvip_PHP tutorial

WBOY
Release: 2016-07-13 10:20:24
Original
1055 people have browsed it

destoon implements VIP ranking method to always sort at the front, destoonvip

The example method in this article implements the destoon sorting method as follows: after a VIP logs in within a day, after clicking update, it will be ranked in front of other VIPs and ordinary members who have not updated.

The specific operation steps are as follows:

Open the setting.tpl.php file under moduleselladmintemplate
Found at about line 71:

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

and add below it:

<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

to achieve this function.

destoon【Help】Supply information sorting method

If you first call the information of the member group VIP, it will cause several pages with the same member information

destoonVIP membership has expired, but the information in the supply information is still prioritized

It seems that this is what he did. For example, 1. He was originally an ordinary member who posted supply information, and then upgraded to VIP. The previous supply information was still at the ordinary level. 2. The same is true for the information released when he was a VIP. , after the VIP expires, these supply information will always be at the recommended level. View original post>>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/867237.htmlTechArticleDestoon implements the method of VIP ranking always being sorted in front, destoonvip The example method in this article implements the sorting method of destoon as: within one day After VIP login, after clicking update, it will be ranked among the others...
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 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!