感觉大佬论坛用的上,顺便抽个奖
<?php exit;
$thread['subject'] = notice_substr($thread['subject'], 20);
$pagesize = db_count('post',array('tid'=>$thread[tid]));
$posttt = db_find('post',array('tid'=>$thread[tid]), array('tid'=>1), $page, $pagesize);
foreach($posttt as $k=>$v){
if($v[pid] == $pid){
$pagee =(ceil($pagesize/$conf["postlist_pagesize"]));//翻页
// 回复
$notice_message = '<div class="comment-info"><a class="mr-1 text-grey" href="'.url("thread-$thread[tid]-$page").'#'.$pid.'">'.lang('notice_lang_comment').'</a>'.lang('notice_message_replytoyou').'<a href="'.url("thread-$thread[tid]").'">《'.$thread['subject'].'》</a></div><div class="single-comment"><a href="'.url("thread-$thread[tid]-$pagee").'#'.$pid.'">'.notice_substr($message, 40, FALSE).'</a>'.$pagee.'</div>';
$recvuid = $thread['uid'];
// hook notice_post_post_end_reply.php
$recvuid != $quotepost['uid'] AND notice_send($uid, $recvuid, $notice_message, 2); //$quotepost['uid']可能是null,但不影响逻辑
// 引用
if(!empty($quotepid) && $quotepid > 0) {
// hook notice_post_post_end_quote.php
$notice_quote_message = '<div class="comment-info"><a class="mr-1 text-grey" href="'.url("thread-$thread[tid]-$page").'#'.$pid.'">'.lang('notice_lang_reply').'</a>'.lang('notice_message_replytoyou_at').'<a href="'.url("thread-$thread[tid]").'">《'.$thread['subject'].'》</a>'.lang('notice_message_replytoyou_for').'</div><div class="quote-comment">'.notice_substr($quotepost['message'], 40, FALSE).'</div><div class="reply-comment"><a href="'.url("thread-$thread[tid]-$pagee").'#'.$pid.'">'.notice_substr($message, 40, FALSE).'</a>'.$pagee.'</div>';
notice_send($uid, $quotepost['uid'], $notice_quote_message, 2);
}
}
}
?>