找回密码
 立即注册
查看: 157|回复: 0

[技术教程] 怎么实现discuz论坛模块只显示文字,不显示文字前的图标

[复制链接]
发表于 2023-11-3 20:27:20 | 显示全部楼层 |阅读模式
如果您不想使用插件的話
可以修改文件實現

打開

template/default/forum/discuz.htm 文件

查找

<div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
                                                                <!--{if $forum[icon]}-->
                                                                        $forum[icon]
                                                                <!--{else}-->
                                                                        <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
                                                                <!--{/if}-->
                                                                </div>
复制代码


刪除
再查找

<!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
                                                                        <dd>
                                                                        <!--{if $forum['permission'] == 1}-->
                                                                                {lang private_forum}
                                                                        <!--{else}-->
                                                                                <!--{if $forum['redirect']}-->
                                                                                        <a href="$forumurl" class="xi2">{lang url_link}</a>
                                                                                <!--{elseif is_array($forum['lastpost'])}-->
                                                                                        <!--{if $cat['forumcolumns'] < 3}-->
                                                                                                <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
                                                                                        <!--{else}-->
                                                                                                <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
                                                                                        <!--{/if}-->
                                                                                <!--{else}-->
                                                                                        {lang never}
                                                                                <!--{/if}-->
                                                                        <!--{/if}-->
                                                                        </dd>
                                                                        <!--{hook/index_forum_extra $forum[fid]}-->
复制代码


刪除
修改前請先備份
修改後記得更新緩存

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋|桃花论坛

GMT+8, 2024-4-28 12:58 , Processed in 0.070351 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表