@呆 大白消息插件修复翻页无效问题

星星点灯  (UID: 2941) [复制链接]
帖子链接已复制到剪贴板
帖子已经有人评论啦,不支持删除!

1402 4

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

<?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);	
	}
		}
	}
?>
上传的附件:
这家伙太懒了,什么也没留下。
已有评论 ( 4 )
  • 头像
    V 阿呆 小丑 (UID: 1) 站长
    (本站服务器由 DangYun 友情提供)
    1楼

    为什么感觉用得上,你在论坛遇到翻页无效的问题了吗

  • 头像
    哈德森 (UID: 3810)
    2楼

    抽什么,表情

  • 头像
    星星点灯 (UID: 2941)
    3楼
    王富贵 为什么感觉用得上,你在论坛遇到翻页无效的问题了吗

    消息插件帖子回复有翻页可以跳转了吗?

  • 头像
    zunyinet (UID: 27934)
    4楼

    看看呢

域名市场
   域名载入中...
创建新帖
自助推广购买广告位
确认删除
确定要删除这篇帖子吗?删除后将无法恢复。
删除成功
帖子已成功删除,页面将自动刷新。
删除失败
删除帖子时发生错误,请稍后再试。