@呆 大白消息插件修复翻页无效问题 [复制链接]

帖子链接已复制到剪贴板
星星点灯 (UID: 2941) 4月前

418 3

感觉大佬论坛用的上,顺便抽个奖

<?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);	
	}
		}
	}
?>
上传的附件:
这家伙太懒了,什么也没留下。
已有评论 (3)
提示:您必须 登录 才能查看此内容。
创建新帖
广告推广点击空位自助购买