Call the latest reply data in DiscuzXDIY

Source: Internet
Author: User
P.S. please make sure your call is the advanced customization of the post module! File A source/class/block/forum/block_thread.php1. add repliesarray (titlethreadlist_recommend, typeradio) under recommendarray (titlethreadlist_replie P.S. please make sure your call is the advanced customization of the post module!

File A source/class/block/forum/block_thread.php
1. in
'Recommend' => array (

'Title' => 'threadlist _ recommend ',

'Type' => 'Radio'

),
Shujia
'Replies '=> array (

'Title' => 'threadlist _ replies ',

'Type' => 'Radio'

),
2. in
$ Recommend =! Empty ($ parameter ['referend'])? 1: 0;
Shujia
$ Replies =! Empty ($ parameter ['replies '])? 1: 0;
3. in
If ($ recommend ){

$ Sqlfrom. = "$ joinmethod JOIN '". DB: table ('forum _ forumrecommend'). "'FC ONfc. tid = t. tid ";

}

Shujia
If ($ replies ){

$ SQL. = "ANDt. replies> '0 '";

}

File B source/language/block/lang_threadlist.php
4. in
'Threadlist _ recommend' => 'Recommendation topic filter ',
Shujia
'Threadlist _ replies '=> 'unreplied topic filter ',

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.