SCLUB免費論壇申請-使用者論壇's Archiver

梅子爱阿政 發表於 2017-9-11 02:05

【请版主删除此贴】如何将字体大小等三个功能删除?

[i=s] 本帖最後由 梅子爱阿政 於 2018-2-9 03:08 編輯 [/i]

[attach]78198[/attach]
将字体大小、倒序看帖、跳转到这三个功能删除
如图所示。

哥哥 發表於 2017-9-11 09:40

打开:viewthread_node.htm

找到:<div class="postinfo"> 第二个

把下面的[code]<strong><a title="{lang share_url_copy}" id="postnum$post[pid]" href="javascript:;" onclick="setCopy('{$boardurl}{if $post[first]}viewthread.php?tid=$tid$fromuid{else}redirect.php?goto=findpost&amp;ptid=$tid&amp;pid=$post[pid]$fromuid{/if}', '{lang post_copied}')"><!--{if !empty($postno[$post[number]])}-->$postno[$post[number]]<!--{else}--><em>{$post[number]}</em>{$postno[0]}<!--{/if}--></a>
[/code]删除即可 更新缓存

梅子爱阿政 發表於 2017-9-11 14:58

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=286760&ptid=33934]2#[/url] [i]哥哥[/i] [/b]


   可以是可以,但是多删了两个部分。而且还有一个没删。
【删除的位置】
[attach]78204[/attach]

【删除之后多了一个倒序】
[attach]78207[/attach]

【少了两个部分】
[attach]78206[/attach]

bossll 發表於 2017-9-11 17:49

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=286769&ptid=33934]3#[/url] [i]梅子爱阿政[/i] [/b]


    妳好。
梅子會員
資深哥哥站長。
是請妳參考她代碼,將該段落代碼刪掉,與更新緩存,而非妳只是刪除一半?
另外記得每次有修改到任何默認模版每文件,請事先自行要先備份,原來要修改文件
以免修改後異常,可以立即恢復正常。

无界 發表於 2017-9-11 20:55

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=286757&ptid=33934]1#[/url] [i]梅子爱阿政[/i] [/b]


将下边代码放到css_append模板[code].print{display: none;}
.rpostno a{display: none;}
.msgfsize{display: none;}[/code]然后删除viewthread_node模板里的[code]{lang thread_redirect_postno}[/code]

梅子爱阿政 發表於 2017-9-12 00:04

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=286780&ptid=33934]5#[/url] [i]无界[/i] [/b]

有两个没有删掉。

[attach]78212[/attach]

梅子爱阿政 發表於 2017-9-12 00:06

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=286773&ptid=33934]4#[/url] [i]bossll[/i] [/b]


    嗯。没在默认模版上面改也算是一种备份吧。

无界 發表於 2017-9-12 00:54

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=286790&ptid=33934]6#[/url] [i]梅子爱阿政[/i] [/b]


    给出你的网址,我去“现场”测试

梅子爱阿政 發表於 2017-9-12 00:58

[i=s] 本帖最後由 梅子爱阿政 於 2018-2-9 01:54 編輯 [/i]

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=286792&ptid=33934]8#[/url] [i]无界[/i] [/b]



我改回来了,需要再按照你给的代码改么?

无界 發表於 2017-9-12 01:23

[i=s] 本帖最後由 无界 於 2017-9-12 01:25 編輯 [/i]

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=286793&ptid=33934]9#[/url] [i]梅子爱阿政[/i] [/b]

.postinfo strong a{display: none;}
.postinfo strong em.rpostno input{display: none;}

梅子爱阿政 發表於 2017-9-12 02:06

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=286794&ptid=33934]10#[/url] [i]无界[/i] [/b]

少了楼层数
还有一个没删掉。

[attach]78213[/attach]

无界 發表於 2017-9-12 05:46

[b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=286795&ptid=33934]11#[/url] [i]梅子爱阿政[/i] [/b]


那就改模板吧,干净。

打开viewthread_node找到[code]                        <!--{if !$postcount}-->
                                <em class="rpostno" title="{lang thread_redirect_postno_tips}">{lang thread_redirect_postno} <input id="rpostnovalue" size="3" type="text" class="txtarea" onkeydown="if(event.keyCode==13) {$('rpostnobtn').click();return false;}" /><span id="rpostnobtn" onclick="window.location='redirect.php?ptid=$tid&ordertype=$ordertype&postno='+$('rpostnovalue').value">&raquo;</span></em>
                        <!--{/if}-->
                        <!--{if $post['first']}-->
                                <!--{if $ordertype != 1}-->
                                        <a href="viewthread.php?tid=$tid&extra=$extra&ordertype=1" class="left">{lang post_descview}</a>
                                <!--{else}-->
                                        <a href="viewthread.php?tid=$tid&extra=$extra&ordertype=2" class="left">{lang post_ascview}</a>
                                <!--{/if}-->
                        <!--{/if}-->[/code]删除


再找到[code]<div class="pagecontrol">
                                        <!--{if $post['first']}-->
                                                <a href="viewthread.php?action=printable&amp;tid=$tid" target="_blank" class="print left">{lang thread_printable}</a>
                                                <!--{if MSGBIGSIZE}-->
                                                        <div class="msgfsize right">
                                                                <label>{lang font_zoom}: </label><small onclick="$('postlist').className='mainbox viewthread'" title="{lang common}">t</small><big onclick="$('postlist').className='mainbox viewthread t_bigfont'" title="{lang zoom_in}">T</big>
                                                        </div>
                                                <!--{/if}-->
                                        <!--{elseif $thread['special'] == 5}-->
                                                <span class="debatevote poststand_{echo intval($post[stand])}">
                                                        <label><!--{if $post[stand] == 1}--><a href="viewthread.php?tid=$tid&extra=$extra&stand=1" title="{lang debate_view_square}">{lang debate_square}</a>
                                                                <!--{elseif $post[stand] == 2}--><a href="viewthread.php?tid=$tid&extra=$extra&stand=2" title="{lang debate_view_opponent}">{lang debate_opponent}</a>
                                                                <!--{else}--><a href="viewthread.php?tid=$tid&extra=$extra&stand=0" title="{lang debate_view_neutral}">{lang debate_neutral}</a><!--{/if}-->
                                                        </label>
                                                        <!--{if $post[stand]}-->
                                                                <span><a href="misc.php?action=debatevote&tid=$tid&pid=$post[pid]" id="voterdebate_$post[pid]" onclick="ajaxmenu(this);doane(event);">{lang debate_support}</a>$post[voters]</span>
                                                        <!--{/if}-->
                                                </span>
                                        <!--{/if}-->
                                </div>[/code]删除即可

bossll 發表於 2017-9-12 13:30

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=286791&ptid=33934]7#[/url] [i]梅子爱阿政[/i] [/b]


    妳好
問没在默认模版上面改也算是一种备份吧?
回應:這是不一樣做法。
沒有在默認模版上,而另外開始使用,新風格模版來修改,這是叫復制動作
而非備份,原來正常論壇運作時狀況

另外建議會員妳,按照無界版主,最後提供給予妳的,修正模版文件資訊去做吧?

梅子爱阿政 發表於 2017-9-12 16:09

[b]回復 [url=http://www.joinbbs.net/discuz/redirect.php?goto=findpost&pid=286797&ptid=33934]12#[/url] [i]无界[/i] [/b]


    可以了。非常感谢~~~

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.