The first four grid does not call the specified section theme posts method

Source: Internet
Author: User
Tags .net address aliyun array code customer discuz forum

Intermediary trading http://www.aliyun.com/zixun/aggregation/6858.html"> SEO diagnostic Taobao customer hosting technology hall

Plug-in address: http: //www.56.html "> discuz.net/thread-696558-1-1.html

Plug-ins are not bad, but the theme posts of the forums that can be viewed in a hidden forum or a specific user group will be displayed on the first four grids

How to modify the first four grid can not call the designated forum posts? For example fid = 10 forum posts

1, open the system file index.php, find the following similar code:

$ colorarray = array ('', red, orange, yellow, green, cyan, blue, purple, gray);

// new post

$ hack_cut_str = 26; // title words

$ hack_cut_strauthor = 9;

$ new_post_threadlist = array ();

$ nthread = array ();

$ query = $ db-> query ("SELECT t. *, f.name FROM {$ tablepre} threads t, {$ tablepre} forums f WHERE t.fid <> '$ fid' AND f.fid = t.fid

AND f.fid not in (0,60,247,257,268) AND t.displayorder not in (-1, -2) ORDER BY t.dateline DESC LIMIT 0, 10 ");

2, if you do not want to call the theme of a forum paste, you can modify the above code

and f.fid not in (0)

for:

and f.fid not in (10), of which 10 do not want to call the forum fid,

Or just want to call the fid = 10 section, you can modify the above code: and f.fid in (10)

3, demo address: http://www.fjdatian.cn/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.