From a22b32993a6693f220b5958a8ccd427e88832612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=96=E4=B8=AD=E6=B2=89?= <341936031@qq.com> Date: Sun, 16 Jul 2023 11:31:54 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA=E7=89=88?= =?UTF-8?q?=E6=B8=B8=E5=AE=A2=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=9C=AA=E6=8F=92?= =?UTF-8?q?=E5=85=A5=E7=9A=84=E5=9B=BE=E7=89=87=E9=99=84=E4=BB=B6=E7=9A=84?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 湖中沉 <341936031@qq.com> --- .../default/touch/forum/discuzcode.htm | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/upload/template/default/touch/forum/discuzcode.htm b/upload/template/default/touch/forum/discuzcode.htm index 24200f5a8..ead8c46ae 100644 --- a/upload/template/default/touch/forum/discuzcode.htm +++ b/upload/template/default/touch/forum/discuzcode.htm @@ -17,8 +17,9 @@ $message

} function tpl_codedisp($code) { + $randomid = 'code_'.random(3); } -
  1. $code
+
  1. $code
{lang discuzcode_copyclipboard}
{eval } @@ -96,16 +97,16 @@ $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$att $aidencode = packaids($attach); $is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G['forum_thread']['archiveid'] : ''; $pluginhook = !empty($_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach['aid']]) ? $_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach['aid']] : ''; +$guestviewthumb = !empty($_G['setting']['guestviewthumb']['flag']) && !$_G['uid']; +$mobileguestviewthumburl = $guestviewthumb ? ($attach['attachimg'] && $_G['setting']['showimages'] && (((!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) || ($guestviewthumb)) ? getforumimg($attach['aid'], 0, $_G['setting']['guestviewthumb']['width'], $_G['setting']['guestviewthumb']['height'], 1) : '') : ''; } - - - -
  • $attach['imgalt'] - $pluginhook -
  • - - + + +
  • $attach['imgalt'] + $pluginhook +
  • + @@ -159,4 +160,4 @@ $mobileguestviewthumburl = $guestviewthumb ? ($attach['attachimg'] && $_G['setti +}--> \ No newline at end of file -- Gitee