欧美不卡视频中文字幕

Join VIP [check in and send gold coins]
Dream weaving worry free, heart to do source code! 7 years of brand, trustworthy! Dream weaving without worry, each fine product, rather than excessive! Purchase no less than 3000 yuan per month, free source sharing, open early, enjoy early! Temporary promotion for lifelong members, only 498 yuan! The new member opens, enters the member center directly -- the purchase member -- opens directly.

How dedecms displays the number of articles

Abstract: When we visit the website blog made by WordPress program, we can often see how many articles are displayed. This function is implemented by Ag tag, which helps to improve the user experience of the website. However, PHP virtual host dream weaving program does not have such a tag to do this function, so we need to modify the program to achieve it, which is not available today

When we visit the website blog made by WordPress program, we can often see how many articles are displayed. This function is implemented by the Ag tag. It helps the website to improve the user experience by displaying the number of articles corresponding to the tag. However, the PHP virtual host dream weaving program does not have such a tag to do this function, so we need to modify the program to achieve it, Today, worry free host will teach you how to realize it. The specific methods are as follows:
Find and open / include / taglib / tag lib. PHP file, find the following code around line 87:

 $row['link'] = $cfg_ cmsurl. "/tags.php?/". urlencode($row['keyword']). "/";

Add the following code below this line of code:

 $count = $dsql->GetOne("Select count(tid) From `dede_taglist` where tag = '".$ row['tag']. "'"); $row['count'] = $count['count(tid)'];

After adding, the number of articles associated with the current tag tag can be obtained through [field: count /] in the tag loop tag of the template. The complete example is as follows:

 {dede:tag sort='hot' getall='2'} <li>< a title = [field: count /] topics "Ref. = [field: link /] > [field: Tag /]</a></li> {/dede:tag}

Getall: gets the type. The parameters are: 0 and 1, where 0 is the current content page or column page tag, and 1 is to obtain the whole site tag

Last article:

Next:

Link to this article: http://b5y7hj.cn//dedejiaocheng/guzha/180684.html

Copyright notice: Our resources are from the Internet or member release, if you infringe on your rights and interests, please contact us, we will delete within 24 hours! thank you!

 QR code of public number

Wechat public account

//Auto push

欧美不卡视频中文字幕_我和闺蜜共做一个男人_正撅着她肥白的大屁股

http://12.b5y7hj.cn http://39.b5y7hj.cn http://20.b5y7hj.cn http://28.b5y7hj.cn http://02.b5y7hj.cn http://48.b5y7hj.cn http://96.b5y7hj.cn http://86.b5y7hj.cn http://37.b5y7hj.cn http://30.b5y7hj.cn http://59.b5y7hj.cn