IT618应用中心 发表于 2025-11-17 13:43:43

谁知道像官方论坛这样回贴显示楼主是怎么实现的? New

请大神指点








我知道答案 回答被采纳将会获得1 贡献 已有3人回答

小冰 发表于 2025-11-17 13:44:12

DZ自带功能
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

余赚网 发表于 2025-11-17 13:45:07

在后台没找到啊,请问在什么地方设置?

霸王别姬 发表于 2025-11-17 13:45:19

<?php exit('贵古互联版权所有 客服QQ:99972466');?>
       

                        <!--{template common/header}-->
       

                        <script type="text/javascript">var fid = parseInt('$_G'), tid = parseInt('$_G');</script>
       

                        <!--{if $modmenu['thread'] || $modmenu['post']}-->
       

                                <script type="text/javascript" src="https://www.dismall.com/{$_G['setting']['jspath']}forum_moderate.js?{VERHASH}"></script>
       

                        <!--{/if}-->
       

                        <script type="text/javascript" src="https://www.dismall.com/{$_G['setting']['jspath']}forum_viewthread.js?{VERHASH}"></script>
       

                        <script type="text/javascript">zoomstatus = parseInt($_G['setting']['zoomstatus']);var imagemaxwidth = '{$_G['setting']['imagemaxwidth']}';var aimgcount = new Array();</script>
       

                        <style id="diy_style" type="text/css"></style>
       

                        <!----><div id="diynavtop" class="area"></div><!---->
       

                        <div id="pt" class="bm cl">
       

                                <div class="z">
       

                                        <a href="./" class="nvhm" title="{lang homepage}">$_G</a><em>»</em><a href="forum.php">{$_G}</a>$navigation <em>›</em> <a href="forum.php?mod=viewthread&tid=$_G">$_G</a>
       

                                </div>
       

                        </div>
       

                        <!--{hook/viewthread_top}-->
       

                        <!--{ad/text/wp a_t}-->
       

                        <style id="diy_style" type="text/css"></style>
       

                        <div class="wp">
       

                                <!----><div id="diy1" class="area"></div><!---->
       

                        </div>
       

                        <div id="ct" class="wp cl">
       

                                <div id="pgt" class="pgs mbm cl {if $modmenu['thread']}pbm bbs {/if}ggq-nfan">
       

                                        <div class="pgt">$multipage</div>
       

                                        <span class="y pgb"{if $_G['setting']['visitedforums']} id="visitedforums" {/if}><a href="$upnavlink">{lang return_forumdisplay}</a></span>
       

                                        <!--{if $_G['forum']['threadsorts'] && $_G['forum']['threadsorts']['templatelist']}-->
       

                                                <!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
       

                                                        <button id="newspecial" class="pn pnc" ><strong>{lang i_want}$name</strong></button>
       

                                                <!--{/loop}-->
       

                                        <!--{else}-->
       

                                                <!--{if !$_G['forum_thread']['is_archived']}--><a id="newspecial" class="nfan-fbzt" {if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} {else} {/if} href="javascript:;" title="{lang send_posts}">发布主题</a><!--{/if}-->
       

                                        <!--{/if}-->
       

                                        <!--{if $allowpostreply && !$_G['forum_thread']['archiveid']}-->
       

                                                <a id="post_reply" class="nfan-cyhf"href="javascript:;" title="{lang reply}">参与回复</a>
       

                                        <!--{/if}-->
       

                                        <!--{hook/viewthread_postbutton_top}-->
       

                                </div>
       

                        <!--{if $_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])}-->
       

                                <ul class="p_pop" id="newspecial_menu" style="display: none">
       

                                        <!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G">{lang post_newthread}</a></li><!--{/if}-->
       

                                        <!--{if $_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']}-->
       

                                                <!--{loop $_G['forum']['threadsorts']['types'] $id $threadsorts}-->
       

                                                        <!--{if $_G['forum']['threadsorts']['show'][$id]}-->
       

                                                                <li class="popupmenu_option"><a href="forum.php?mod=post&action=newthread&fid=$_G&sortid=$id">$threadsorts</a></li>
       

                                                        <!--{/if}-->
       

                                                <!--{/loop}-->
       

                                        <!--{/if}-->
       

                                        <!--{if $_G['group']['allowpostpoll']}--><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=$_G&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
       

                                        <!--{if $_G['group']['allowpostreward']}--><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=$_G&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
       

                                        <!--{if $_G['group']['allowpostdebate']}--><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=$_G&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
       

                                        <!--{if $_G['group']['allowpostactivity']}--><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=$_G&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
       

                                        <!--{if $_G['group']['allowposttrade']}--><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=$_G&special=2">{lang post_newthreadtrade}</a></li><!--{/if}-->
       

                                        <!--{if $_G['setting']['threadplugins']}-->
       

                                                <!--{loop $_G['forum']['threadplugin'] $tpid}-->
       

                                                        <!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])}-->
       

                                                                <li class="popupmenu_option"{if $_G['setting']['threadplugins'][$tpid]} style="background-image:url(source/plugin/$tpid/$_G['setting']['threadplugins'][$tpid])"{/if}><a href="forum.php?mod=post&action=newthread&fid=$_G&specialextra=$tpid">{$_G['setting']['threadplugins'][$tpid]}</a></li>
       

                                                        <!--{/if}-->
       

                                                <!--{/loop}-->
       

                                        <!--{/if}-->
       

                                </ul>
       

                        <!--{/if}-->
       

                        <!--{if $modmenu['post']}-->
       

                                <div id="mdly" class="fwinmask" style="display:none;z-index:350;">
       

                                        <table cellspacing="0" cellpadding="0" class="fwin">
       

                                                <tr>
       

                                                        <td class="t_l"></td>
       

                                                        <td class="t_c"></td>
       

                                                        <td class="t_r"></td>
       

                                                </tr>
       

                                                <tr>
       

                                                        <td class="m_l">  </td>
       

                                                        <td class="m_c">
       

                                                                <div class="f_c">
       

                                                                        <div class="c">
       

                                                                                <h3>{lang admin_select} <strong id="mdct" class="xi1"></strong> {lang piece}: </h3>
       

                                                                                <!--{if $_G['forum']['ismoderator']}-->
       

                                                                                        <!--{if $_G['group']['allowwarnpost']}--><a href="javascript:;" >{lang modmenu_warn}</a><span class="pipe">|</span><!--{/if}-->
       

                                                                                        <!--{if $_G['group']['allowbanpost']}--><a href="javascript:;" >{lang modmenu_banpost}</a><span class="pipe">|</span><!--{/if}-->
       

                                                                                        <!--{if $_G['group']['allowdelpost'] && !$rushreply}--><a href="javascript:;" >{lang modmenu_deletepost}</a><span class="pipe">|</span><!--{/if}-->
       

                                                                                <!--{/if}-->
       

                                                                                <!--{if $_G['forum']['ismoderator'] && $_G['group']['allowstickreply'] || $_G['forum_thread']['authorid'] == $_G['uid']}--><a href="javascript:;" >{lang modmenu_stickpost}</a><span class="pipe">|</span><!--{/if}-->
       

                                                                                <!--{if $_G['forum_thread']['pushedaid'] && $allowpostarticle}--><a href="javascript:;" >{lang modmenu_pushplus}</a><span class="pipe">|</span><!--{/if}-->
       

                                                                        </div>
       

                                                                </div>
       

                                                        </td>
       

                                                        <td class="m_r"></td>
       

                                                </tr>
       

                                                <tr>
       

                                                        <td class="b_l"></td>
       

                                                        <td class="b_c"></td>
       

                                                        <td class="b_r"></td>
       

                                                </tr>
       

                                        </table>
       

                                </div>
       

                        <!--{/if}-->
       

                        <!--{if $modmenu['thread']}-->
       

                                <div id="modmenu" class="xi2 pbm">
       

                                        <!--{eval $modopt=0;}-->
       

                                        <!--{if $_G['forum']['ismoderator']}-->
       

                                                <!--{if $_G['group']['allowdelpost']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_deletethread}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowbumpthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_updown}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowstickthread'] && ($_G['forum_thread']['displayorder'] <= 3 || $_G['adminid'] == 1) && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_stickthread}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowlivethread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_live}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowhighlightthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_highlight}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowdigestthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_digestpost}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowrecommendthread'] && !empty($_G['forum']['modrecommend']['open']) && $_G['forum']['modrecommend']['sort'] != 1 && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_recommend}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowstampthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_stamp}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowstamplist'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_icon}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowclosethread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" ><!--{if !$_G['forum_thread']['closed']}-->{lang modmenu_switch_off}<!--{else}-->{lang modmenu_switch_on}<!--{/if}--></a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowmovethread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_move}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowedittypethread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_type}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if !$_G['forum_thread']['special'] && !$_G['forum_thread']['is_archived']}-->
       

                                                        <!--{if $_G['group']['allowcopythread'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_copy}</a><span class="pipe">|</span><!--{/if}-->
       

                                                        <!--{if $_G['group']['allowmergethread'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_merge}</a><span class="pipe">|</span><!--{/if}-->
       

                                                        <!--{if $_G['group']['allowrefund'] && $_G['forum_thread']['price'] > 0}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_restore}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{/if}-->
       

                                                <!--{if $_G['group']['allowsplitthread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_split}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowrepairthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_repair}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['forum_thread']['is_archived'] && $_G['adminid'] == 1}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_archive}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['forum_firstpid']}-->
       

                                                        <!--{if $_G['group']['allowwarnpost']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_warn}</a><span class="pipe">|</span><!--{/if}-->
       

                                                        <!--{if $_G['group']['allowbanpost']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_banthread}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{/if}-->
       

                                                <!--{if $_G['group']['allowremovereward'] && $_G['forum_thread']['special'] == 3 && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" >{lang modmenu_removereward}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['forum']['status'] == 3 && in_array($_G['adminid'], array('1','2')) && $_G['forum_thread']['closed'] < 1}--><a href="javascript:;" >{lang modmenu_grouprecommend}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['allowmanagetag']}--><a href="javascript:;" >{lang post_tag}</a><span class="pipe">|</span><!--{/if}-->
       

                                                <!--{if $_G['group']['alloweditusertag']}--><a href="javascript:;" >{lang usertag}</a><span class="pipe">|</span><!--{/if}-->
       

                                        <!--{/if}-->
       

                                        <!--{if $allowpusharticle && $allowpostarticle}--><!--{eval $modopt++}--><a href="portal.php?mod=portalcp&ac=article&from_idtype=tid&from_id=$_G['tid']">{lang modmenu_pusharticle}</a><span class="pipe">|</span><!--{/if}-->
       

                                        <!--{hook/viewthread_modoption}-->
       

                                </div>
       

                        <!--{/if}-->
       

                        <!--{hook/viewthread_beginline}-->
       

                        <div id="postlist" class="pl bm ggq-nron">
       

                                <table class="nron-btdy nron-btyj<!--{if $_G['forum_thread']['replycredit'] > 0 || $rushreply}--><!--{else}--> nron-fgxh<!--{/if}-->" cellspacing="0" cellpadding="0">
       

                                        <tr>
       

                                                <!--{if !$close_leftinfo}-->
       

                                                <td class="pls ptn pbn">
       

                                                        <!--{if $_G['page'] > 1}-->
       

                                                        <div id="tath" class="cl">
       

                                                                <!--{if $_G && $_G}-->
       

                                                                        <a href="home.php?mod=space&uid=$_G" title="$_G"><!--{avatar($_G,small)}--></a>
       

                                                                        {lang thread_author}: <a href="home.php?mod=space&uid=$_G" title="$_G">$_G</a>
       

                                                                <!--{else}-->
       

                                                                        {lang thread_author}:
       

                                                                        <!--{if $_G['forum']['ismoderator']}-->
       

                                                                                <a href="home.php?mod=space&uid=$_G">{lang anonymous}</a>
       

                                                                        <!--{else}-->
       

                                                                                {lang anonymous}
       

                                                                        <!--{/if}-->
       

                                                                <!--{/if}-->
       

                                                        </div>
       

                                                        <!--{else}-->
       

                                                        <div class="hm ptn">
       

                                                                <span class="xg1">{lang show}:</span> <span class="xi1">$_G</span><span class="pipe">|</span><span class="xg1">{lang reply}:</span> <span class="xi1">$_G</span>
       

                                                        </div>
       

                                                        <!--{/if}-->
       

                                                </td>
       

                                                <!--{/if}-->
       

                                                <td class="plc ptm pbn vwthd">
       

                                                        <!--{if !IS_ROBOT}-->
       

                                                                <div class="y">
       

                                                                        <!--{if $post['invisible'] == 0}--><a href="forum.php?mod=viewthread&action=printable&tid=$_G" title="{lang thread_printable}" target="_blank"><img src="https://www.dismall.com/{IMGDIR}/print.png" alt="{lang thread_printable}" class="vm" /></a>
       

                                                                        <!--{/if}-->
       

                                                                        <a href="forum.php?mod=redirect&goto=nextoldset&tid=$_G" title="{lang last_thread}"><img src="https://www.dismall.com/{IMGDIR}/thread-prev.png" alt="{lang last_thread}" class="vm" /></a>
       

                                                                        <a href="forum.php?mod=redirect&goto=nextnewset&tid=$_G" title="{lang next_thread}"><img src="https://www.dismall.com/{IMGDIR}/thread-next.png" alt="{lang next_thread}" class="vm" /></a>
       

                                                                </div>
       

                                                        <!--{/if}-->
       

                                                        <!--{if $_G['setting']['close_leftinfo_userctrl']}-->
       

                                                                <span class="xg1 side_btn">
       

                                                                <!--{if !$close_leftinfo}-->
       

                                                                        <atitle="{lang collapse_the_left}" class="btn_s_close" href="javascript:;"><img src="https://www.dismall.com/{IMGDIR}/control_l.png" alt="{lang collapse_the_left}" class="vm" /></a>
       

                                                                <!--{else}-->
       

                                                                        <atitle="{lang open_the_left}" class="btn_s_open" href="javascript:;"><img src="https://www.dismall.com/{IMGDIR}/control_r.png" alt="{lang open_the_left}" class="vm" /></a>
       

                                                                <!--{/if}-->
       

                                                                </span>
       

                                                        <!--{/if}-->
       

                                                        <h1 class="ts">
       

                                                                <!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
       

                                                                        <!--{if !IS_ROBOT && ($_G['forum']['threadtypes']['listable'] || $_G['forum']['status'] == 3)}-->
       

                                                                                <a href="forum.php?mod=forumdisplay&fid=$_G&filter=typeid&typeid=$_G">[{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]</a>
       

                                                                        <!--{else}-->
       

                                                                                [{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]
       

                                                                        <!--{/if}-->
       

                                                                <!--{/if}-->
       

                                                                <!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
       

                                                                        <a href="forum.php?mod=forumdisplay&fid=$_G&filter=sortid&sortid=$_G">[{$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]}]</a>
       

                                                                <!--{/if}-->
       

                                                                <span id="thread_subject">$_G</span>
       

                                                        </h1>
       

                                                        <span class="xg1">
       

                                                                <!--{if $_G['forum_thread'] == -2}-->({lang moderating})
       

                                                                <!--{elseif $_G['forum_thread'] == -3}-->({lang have_ignored})
       

                                                                <!--{elseif $_G['forum_thread'] == -4}-->({lang draft})
       

                                                                        <!--{if $post['first'] && $post['invisible'] == -3}-->
       

                                                                                <a class="psave" href="forum.php?mod=misc&action=pubsave&tid=$_G">{lang published}</a>
       

                                                                        <!--{/if}-->
       

                                                                <!--{/if}-->
       

                                                                <!--{if $_G['setting']['threadhidethreshold'] && $_G['forum_thread']['hidden'] >= $_G['setting']['threadhidethreshold']}-->
       

                                                                        <!--{if $_G['forum_thread']['authorid'] == $_G['uid']}--><a class="psave" id="hiderecover" title="{lang hiderecover_tips}" href="forum.php?mod=misc&action=hiderecover&tid=$_G&formhash={FORMHASH}" >{lang hidden}</a><!--{else}-->({lang hidden})<!--{/if}-->
       

                                                                         
       

                                                                <!--{/if}-->
       

                                                                <!--{if $_G['forum_thread']['recommendlevel']}-->
       

                                                                         <img src="https://www.dismall.com/{IMGDIR}/recommend_$_G['forum_thread']['recommendlevel'].gif" alt="" title="{lang thread_recommend} $_G['forum_thread']" />
       

                                                                <!--{/if}-->
       

                                                                <!--{if $_G['forum_thread']}-->
       

                                                                         <img src="https://www.dismall.com/{IMGDIR}/hot_$_G['forum_thread'].gif" alt="" title="{lang heats}: $_G['forum_thread']['heats']" />
       

                                                                <!--{/if}-->
       

                                                                <!--{if $_G['forum_thread']['closed'] == 1}-->
       

                                                                         <img src="https://www.dismall.com/{IMGDIR}/locked.gif" alt="{lang close}" title="{lang close}" class="vm" />
       

                                                                <!--{/if}-->
       

                                                                <a href="forum.php?mod=viewthread&tid=$_G$fromuid"{if $fromuid}title="{lang share_url_copy_comment}"{/if}>[{lang share_url_copy}]</a>
       

                                                        </span>
       

                                                        <!--{hook/viewthread_title_extra}-->
       

                                                </td>
       

                                        </tr>
       

                                </table>
       

                                <!--{if $_G['forum_thread']['replycredit'] > 0 || $rushreply}-->
       

                                <div id="pl_top" class="nron-btdy nron-fgxh">
       

                                        <table cellspacing="0" cellpadding="0">
       

                                                <tr class="ad">
       

                                                        <td class="pls"></td>
       

                                                        <td class="plc"></td>
       

                                                </tr>
       

                                                <!--{if $_G['forum_thread']['replycredit'] > 0 }-->
       

                                                        <tr>
       

                                                                <!--{if !$close_leftinfo}-->
       

                                                                <td class="pls vm ptm">
       

                                                                <!--{else}-->
       

                                                                <td class="pls ptm pbm xi1" colspan="2">
       

                                                                <!--{/if}-->
       

                                                                        <img src="https://www.dismall.com/{IMGDIR}/thread_prize_s.png" class="hm" alt="{lang replycredit}" />
       

                                                                                <strong>{$_G['forum_thread']['replycredit']} {$_G['setting']['extcredits'][$_G]}{$_G['setting']['extcredits'][$_G]}</strong>
       

                                                                <!--{if !$close_leftinfo}-->
       

                                                                </td>
       

                                                                <td class="plc ptm pbm xi1">
       

                                                                <!--{else}-->
       

                                                                    
       

                                                                <!--{/if}-->
       

                                                                        {lang thread_replycredit_tips1} {lang thread_replycredit_tips2}<!--{if $_G['forum_thread']['replycredit_rule'] > 0}--><span class="xg1">{lang thread_replycredit_tips3}</span><!--{/if}-->
       

                                                                </td>
       

                                                        </tr>
       

                                                        <!--{if $rushreply}-->
       

                                                        <tr class="ad">
       

                                                                <td class="pls"></td>
       

                                                                <td class="plc"></td>
       

                                                        </tr>
       

                                                        <!--{/if}-->
       

                                        <!--{/if}-->
       

                                        <!--{if $rushreply}-->
       

                                                <tr>
       

                                                        <!--{if !$close_leftinfo}-->
       

                                                        <td class="pls vm ptm">
       

                                                               
       

                                                                <strong>{lang rushreply}</strong>
       

                                                        </td>
       

                                                        <td class="plc ptm pbm xi1">
       

                                                        <!--{else}-->
       

                                                        <td class="plc ptm pbm xi1" colspan="2">
       

                                                               
       

                                                        <!--{/if}-->
       

                                                                <!--{if $rushresult}-->
       

                                                                        <span class="y">
       

                                                                        <!--{if $_G['uid'] == $_G['thread']['authorid'] || $_G['forum']['ismoderator']}--><a href="javascript:;"class="y pn xi2"><span>{lang thread_rushreply_statnum}</span></a><!--{/if}-->
       

                                                                        <!--{if !$_GET['checkrush']}-->
       

                                                                                        <a href="forum.php?mod=viewthread&tid=$post&checkrush=1" rel="nofollow" class="y pn xi2"><span>{lang rushreply_view}</span></a>
       

                                                                        <!--{/if}-->
       

                                                                        </span>
       

                                                                <!--{/if}-->
       

                                                                <!--{if $rushresult == ''}-->
       

                                                                        {lang thread_rushreply} 
       

                                                                <!--{else}-->
       

                                                                        {lang thread_rushreply_limit}  
       

                                                                <!--{/if}-->
       

                                                                <!--{if $rushresult['timer']}-->
       

                                                                <span id="rushtimer_$thread"> {lang havemore_special} <span id="rushtimer_body_$thread"></span> <script language="javascript">settimer($rushresult['timer'], 'rushtimer_body_$thread');</script>{if $rushresult['timertype'] == 'start'} {lang header_start} {else} {lang over} {/if} {lang right_special}</span>
       

                                                                <!--{/if}-->
       

                                                                <!--{if $rushresult}-->
       

                                                                        {lang thread_rushreply_end}$rushresult 
       

                                                                <!--{/if}-->
       

                                                                <!--{if $rushresult}-->
       

                                                                        {lang thread_rushreply_floor}: $rushresult 
       

                                                                <!--{/if}-->
       

                                                                <!--{if $rushresult && $_GET['checkrush']}-->
       

                                                                        <p class="ptn">
       

                                                                                <!--{if $countrushpost}-->[<strong>$countrushpost</strong>]{lang thread_rushreply_rewardnum}<!--{else}--> {lang thread_rushreply_noreward} <!--{/if}-->  
       

                                                                                <a href="forum.php?mod=viewthread&tid=$_G" class="xi2">{lang thread_rushreply_check_back}</a>
       

                                                                        </p>
       

                                                                <!--{/if}-->
       

                                                        </td>
       

                                                </tr>
       

                                        <!--{/if}-->
       

                                        </table>
       

                                </div>
       

                                <!--{/if}-->
       

                                <!--{hook/viewthread_title_row}-->
       

                                <table cellspacing="0" cellpadding="0" class="ad">
       

                                        <tr>
       

                                                <td class="pls">
       

                                                <!--{if !$close_leftinfo}-->
       

                                                </td>
       

                                                <td class="plc">
       

                                                <!--{/if}-->
       

                                                </td>
       

                                        </tr>
       

                                </table>
       

                                <!--{eval $postcount = 0;}-->
       

                                <!--{loop $postlist $post}-->
       

                                        <!--{if $rushreply && $_GET['checkrush'] && $post['rewardfloor'] != 1}-->
       

                                                <!--{eval continue;}-->
       

                                        <!--{/if}-->
       

                                        <div id="post_$post" class="ggq-nrlc" {if $_G['blockedpids'] && $post['inblacklist']}style="display:none;"{/if}>
       

                                                <!--{subtemplate forum/viewthread_node}-->
       

                                        </div>
       

                                        <!--{eval $postcount++;}-->
       

                                <!--{/loop}-->
       

                                <div id="postlistreply" class="pl"><div id="post_new" class="viewthread_table" style="display: none"></div></div>
       

                                <!--{if $_G['blockedpids']}-->
       

                                        <div id='hiddenpoststip'><a href='javascript:display_blocked_post();'>{lang other_reply_hide}</a></div>
       

                                        <div id="hiddenposts"></div>
       

                                <!--{/if}-->
       

                        </div>
       

                        <!--{if $modmenu['thread']}-->
       

                                <div class="xi2 mbm pbm bbs">
       

                                <script type="text/javascript">
       

                                        $('modmenu').lastChild.style.visibility = 'hidden';
       

                                        document.write($('modmenu').innerHTML);
       

                                </script>
       

                                </div>
       

                        <!--{/if}-->
       

                        <form method="post" autocomplete="off" name="modactions" id="modactions">
       

                                <input type="hidden" name="formhash" value="{FORMHASH}" />
       

                                <input type="hidden" name="optgroup" />
       

                                <input type="hidden" name="operation" />
       

                                <input type="hidden" name="listextra" value="$_GET" />
       

                                <input type="hidden" name="page" value="$page" />
       

                        </form>
       

                        $_G['forum_tagscript']
       

                        <!--{if $multipage && $page < $_G['setting']['threadmaxpages'] && $page < $_G['page_next']}-->
       

                        <!--{eval $nxtpage = $page + 1;}-->
       

                                <div class="pgbtn"><a href="forum.php?mod=viewthread&tid=$_G{if $_GET}&authorid=$_GET{/if}&page=$nxtpage" hidefocus="true" class="bm_h">{lang next_page_extra}</a></div>
       

                        <!--{/if}-->
       

                        <div class="pgs mtm mbm ggq-nfan cl">
       

                                $multipage
       

                                <span class="pgb y"{if $_G['setting']['visitedforums']} id="visitedforumstmp" {/if}><a href="$upnavlink">{lang return_forumdisplay}</a></span>
       

                                <!--{if !$_G['forum_thread']['is_archived']}-->
       

                                        <a id="newspecialtmp" class="nfan-fbzt" {if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} {else} {/if} href="javascript:;" title="{lang send_posts}">发布主题</a>
       

                                <!--{/if}-->
       

                                <!--{if $allowpostreply && !$_G['forum_thread']['archiveid']}-->
       

                                        <a id="post_replytmp" class="nfan-cyhf"href="javascript:;" title="{lang reply}">参与回复</a>
       

                                <!--{/if}-->
       

                        </div>
       

                        <!--{hook/viewthread_middle}-->
       

                        <!----><div id="diyfastposttop" class="area"></div><!---->
       

                        <!--{if $fastpost}-->
       

                                <!--{subtemplate forum/viewthread_fastpost}-->
       

                        <!--{/if}-->
       

                        <!--{hook/viewthread_bottom}-->
       

                        <!--{if ($_G['setting']['visitedforums']) && $_G['forum']['status'] != 3}-->
       

                                <div id="visitedforums_menu" class="p_pop blk ggq-fhtc cl" style="display: none;">
       

                                        <table cellspacing="0" cellpadding="0">
       

                                                <tr>
       

                                                        <td id="v_forums">
       

                                                                <h3 class="mbn pbn bbda xg1">{lang viewed_forums}</h3>
       

                                                                <ul class="xl xl1">
       

                                                                        $_G['setting']['visitedforums']
       

                                                                </ul>
       

                                                        </td>
       

                                                </tr>
       

                                        </table>
       

                                </div>
       

                        <!--{/if}-->
       

                        <!--{if $_G['medal_list']}-->
       

                        <!--{loop $_G['medal_list'] $medalid $medal}-->
       

                                <div id="md_{$medalid}_menu" class="tip tip_4" style="display: none;">
       

                                        <div class="tip_horn"></div>
       

                                        <div class="tip_c">
       

                                                <h4>$medal</h4>
       

                                                <p>$medal</p>
       

                                        </div>
       

                                </div>
       

                        <!--{/loop}-->
       

                        <!--{/if}-->
       

                        <!--{if !IS_ROBOT && !empty($_G)}-->
       

                                <script type="text/javascript">
       

                                new lazyload();
       

                                </script>
       

                        <!--{/if}-->
       

                        <!--{if !IS_ROBOT && $_G['setting']['threadmaxpages'] > 1}-->
       

                                <script type="text/javascript">document.onkeyup = function(e){keyPageScroll(e, <!--{if $page > 1}-->1<!--{else}-->0<!--{/if}-->, <!--{if $page < $_G['setting']['threadmaxpages'] && $page < $_G['page_next']}-->1<!--{else}-->0<!--{/if}-->, 'forum.php?mod=viewthread&tid=$_G<!--{if $_GET}-->&authorid=$_GET<!--{/if}-->', $page);}</script>
       

                        <!--{/if}-->
       

                        </div>
       

                        <div class="wp mtn">
       

                                <!----><div id="diy3" class="area"></div><!---->
       

                        </div>
       

                        <!--{if $_G['relatedlinks'] || $_GET['highlight']}-->
       

                                <script type="text/javascript">
       

                                        var relatedlink = [];
       

                                        <!--{loop $_G['relatedlinks'] $key $link}-->
       

                                        relatedlink[$key] = {'sname':'$link', 'surl':'$link'};
       

                                        <!--{/loop}-->
       

                                        {eval $highlights = explode(' ', str_replace(array('\'', chr(125)), array(''', '}'), dhtmlspecialchars($_GET['highlight'])));}
       

                                        <!--{loop $highlights $word}-->
       

                                        {eval $key++;}
       

                                        relatedlink[$key] = {'sname':'$word', 'surl':''};
       

                                        <!--{/loop}-->
       

                                        relatedlinks('postmessage_$_G');
       

                                </script>
       

                        <!--{/if}-->
       

                        <!--{if !empty($_G['cookie']['clearUserdata']) && $_G['cookie']['clearUserdata'] == 'forum'}-->
       

                                <script type="text/javascript">saveUserdata('forum_'+discuz_uid, '')</script>
       

                        <!--{/if}-->
       

                        <script type="text/javascript">
       

                        <!--{if $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $_G['thread']['authorid'])}-->
       

                        function showsetcover(obj) {
       

                                if(obj.parentNode.id == 'postmessage_$_G') {
       

                                        var defheight = $_G['setting']['forumpicstyle']['thumbheight'];
       

                                        var defwidth = $_G['setting']['forumpicstyle']['thumbwidth'];
       

                                        var newimgid = 'showcoverimg';
       

                                        var imgsrc = obj.src ? obj.src : obj.file;
       

                                        if(!imgsrc) return;
       

                                        var tempimg=new Image();
       

                                        tempimg.src=imgsrc;
       

                                        if(tempimg.complete) {
       

                                                if(tempimg.width < defwidth || tempimg.height < defheight) return;
       

                                        } else {
       

                                                return;
       

                                        }
       

                                        if($(newimgid) && obj.id != newimgid) {
       

                                                $(newimgid).id = 'img'+Math.random();
       

                                        }
       

                                        if($(newimgid+'_menu')) {
       

                                                var menudiv = $(newimgid+'_menu');
       

                                        } else {
       

                                                var menudiv = document.createElement('div');
       

                                                menudiv.className = 'tip tip_4 aimg_tip';
       

                                                menudiv.id = newimgid+'_menu';
       

                                                menudiv.style.position = 'absolute';
       

                                                menudiv.style.display = 'none';
       

                                                obj.parentNode.appendChild(menudiv);
       

                                        }
       

                                        menudiv.innerHTML = '<div class="tip_c xs0"><ahref="forum.php?mod=ajax&action=setthreadcover&tid=$_G&pid=$_G&fid=$_G&imgurl='+imgsrc+'">{lang set_cover}</a></div>';
       

                                        obj.id = newimgid;
       

                                        showMenu({'ctrlid':newimgid,'pos':'12'});
       

                                }
       

                                return;
       

                        }
       

                        <!--{/if}-->
       

                        function succeedhandle_followmod(url, msg, values) {
       

                                var fObj = $('followmod_'+values['fuid']);
       

                                if(values['type'] == 'add') {
       

                                        fObj.innerHTML = '{lang nofollow}';
       

                                        fObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
       

                                } else if(values['type'] == 'del') {
       

                                        fObj.innerHTML = '{lang follow}';
       

                                        fObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid'];
       

                                }
       

                        }
       

                        <!--{if $_G['blockedpids']}-->
       

                        var blockedPIDs = [<!--{echo implode(',', $_G['blockedpids'])}-->];
       

                        <!--{/if}-->
       

                        <!--{if $postlist && empty($_G['setting']['disfixedavatar'])}-->
       

                        fixed_avatar([<!--{echo implode(',', array_keys($postlist))}-->], {if empty($_G['setting']['disfixednv_viewthread']) }1{else}0{/if});
       

                        <!--{elseif empty($_G['setting']['disfixednv_viewthread'])}-->
       

                        fixed_top_nv();
       

                        <!--{/if}-->
       

                        </script>
       

                        <!--{template common/footer}-->
       

                                                   
            plain
      
   

                        这是模版代码,应该怎么修改?
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;        margin-right: auto;        position: relative;}.editorjs-codeFlask_Wrapper {        height: 300px;        border: 1px solid #dcdfe6;        border-radius: 5px;        background-color: #f0f2f5;        margin-bottom: 10px;}.editorjs-codeFlask_Wrapper .codeflask {        border-radius: 5px;        background: none;}.editorjs-codeFlask_Wrapper .editorjs-codeFlask_LangDisplay {        position: absolute;        height: 20px;        line-height: 20px;        font-size: 12px;        color: #999;        background-color: #dcdfe6;        padding: 10px 25px 20px 10px;        right: 0;        bottom: 0;        border-bottom-right-radius: 5px;        border-top-left-radius: 5px;}.editorjs-codeFlask_Wrapper .codeflask.codeflask--has-line-numbers:before{        background-color: #dcdfe6;}.codeflask {        position: absolute;        width: 100%;        height: 100%;        overflow: hidden;}.codeflask, .codeflask * {    box-sizing: border-box;}.codeflask__pre {    pointer-events: none;    z-index: 3;    overflow: hidden;      max-width: 100%;    white-space: pre-wrap;    word-break: break-all;    overflow-wrap: break-word;    padding: 10px 20px 10px 10px;    border: 1px solid rgb(238, 238, 238);}.codeflask__textarea {    background: none;    border: none;    color: #fff;    resize: none;    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;    -webkit-appearance: pre;    caret-color: #111;    z-index: 2;    width: 100%;    height: 100%;      max-width: 100%;    white-space: pre-wrap;    word-break: break-all;    overflow-wrap: break-word;    padding: 10px;}.codeflask--has-line-numbers .codeflask__textarea {    width: calc(100% - 40px);}.codeflask__code {    display: block;    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;    overflow: hidden;}.codeflask__flatten {    /* padding: 10px; */    font-size: 13px;    line-height: 20px;    /* white-space: pre; */    position: absolute;    top: 0;    left: 0;    overflow: auto;    margin: 0 !important;    outline: none;    text-align: left;}.codeflask--has-line-numbers .codeflask__flatten {    width: calc(100% - 40px);    left: 40px;}.codeflask__line-highlight {    position: absolute;    top: 10px;    left: 0;    width: 100%;    height: 20px;    background: rgba(0,0,0,0.1);    z-index: 1;}.codeflask__lines {    padding: 10px 4px;    font-size: 12px;    line-height: 20px;    font-family: 'Cousine', monospace;    position: absolute;    left: 0;    top: 0;    width: 40px;    height: 100%;    text-align: right;    color: #999;    z-index: 2;}.codeflask__lines__line {    display: block;}.codeflask.codeflask--has-line-numbers {    padding-left: 40px;}.codeflask.codeflask--has-line-numbers:before {    content: '';    position: absolute;    left: 0;    top: 0;    width: 40px;    height: 100%;    background: #eee;    z-index: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}
页: [1]
查看完整版本: 谁知道像官方论坛这样回贴显示楼主是怎么实现的? New