爱秀代码's Archiver

icode 发表于 2018-10-2 09:21

仿X系列----首页板块显示最后回复帖子标题

如图:
未修改的
[attach]500[/attach]

已修改的
[attach]501[/attach]

修改方法:打开discuz模版找到[code]                                                                <p>{lang forum_lastpost}:
                                                                        <!--{if is_array($forum['lastpost'])}-->
                                                                                <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
                                                                        <!--{else}-->
                                                                                {lang never}
                                                                        <!--{/if}-->
                                                                </p>[/code]修改为:
**** Hidden Message *****
即可。

無名 发表于 2018-10-2 09:32

谢谢分享!正好需要
另外可不可以在出个教程帖教我怎样去掉1楼打印,字体大小,倒序看帖的,如图

[attach]502[/attach]

icode 发表于 2018-10-2 10:10

你先把向左移动的代码去掉,然后找[code].forumcontrol td {
    padding: 10px;
}[/code]改成[code].forumcontrol td {
    padding: 10px 0;
}[/code]就行了

Yenifer 发表于 2018-10-2 12:48

[quote]他[她]看完这篇文章说:[img]http://icode.258club.com/attachments/month_1808/1808271111457003474607a108.gif[/img]赞[/quote]

Yenifer 发表于 2018-10-2 12:48

[quote]他[她]看完这篇文章说:[img]http://icode.258club.com/attachments/month_1808/1808271111457003474607a108.gif[/img]赞[/quote]

Yenifer 发表于 2018-10-2 12:48

我脸有多黑,触发不了 发帖机遇

麻城生活网 发表于 2018-10-2 16:18

不知道我能不能用上这个效果,之前给了一段只显示版规的代码,同时隐藏了主题贴数

波斯佳人 发表于 2018-10-2 16:53

非常感谢楼主的无私分享

零九三零 发表于 2018-10-17 15:02

谢谢无界的分享{:5_281:}

琪乐 发表于 2018-11-16 22:06

楼主发帖辛苦了,谢谢楼主的分享!

北京大新 发表于 2019-4-5 21:26

谢谢分享

我爱建站 发表于 2019-7-2 20:37

[quote]看帖回帖那是一定要的:[img]http://icode.258club.com/images/smilies/007/05.gif[/img]精彩至极,文章写的真棒,对我非常有帮助[/quote]

恒小杰 发表于 2019-8-7 03:24

感谢分享

小豪 发表于 2020-4-24 16:41

[quote]看帖回帖那是一定要的:[img]http://icode.258club.com/images/smilies/007/06.gif[/img]哇!你真有才![/quote]

页: [1]

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