- template/default/forum/forumdisplay_list.htm
复制代码,
- ann_icon.gif
复制代码,
- <!–{if (!$simplestyle || !$_G[‘forum’][‘allowside’] && $page == 1) && !empty($announcement)}–>
- <tbody>
- <tr>
- <td class=”icn”><img src=”{IMGDIR}/ann_icon.gif” alt=”{lang announcement}” /></td>
- <!–{if $_G[‘forum’][‘ismoderator’] && !$_GET[‘archiveid’]}–><td class=”o”> </td><!–{/if}–>
- <th><strong class=”xst”>{lang announcement}: <!–{if empty($announcement[‘type’])}–><a href=”forum.php?mod=announcement&id=$announcement[id]#$announcement[id]” target=”_blank”>$announcement[subject]</a><!–{else}–><a href=”$announcement[message]” target=”_blank”>$announcement[subject]</a><!–{/if}–></strong></th>
- <td class=”by”>
- <cite><a href=”home.php?mod=space&uid=$announcement[authorid]” c=”1″>$announcement[author]</a></cite>
- <em>$announcement[starttime]</em>
- </td>
- <td class=”num”> </td>
- <td class=”by”> </td>
- </tr>
- </tbody>
- <!–{/if}–>
复制代码,去掉discuz列表页的最新公告
找到文件:
- template/default/forum/forumdisplay_list.htm
复制代码
搜索:
- ann_icon.gif
复制代码
找到以下代码,并且删除即可!
- <!–{if (!$simplestyle || !$_G[‘forum’][‘allowside’] && $page == 1) && !empty($announcement)}–>
- <tbody>
- <tr>
- <td class=”icn”><img src=”{IMGDIR}/ann_icon.gif” alt=”{lang announcement}” /></td>
- <!–{if $_G[‘forum’][‘ismoderator’] && !$_GET[‘archiveid’]}–><td class=”o”> </td><!–{/if}–>
- <th><strong class=”xst”>{lang announcement}: <!–{if empty($announcement[‘type’])}–><a href=”forum.php?mod=announcement&id=$announcement[id]#$announcement[id]” target=”_blank”>$announcement[subject]</a><!–{else}–><a href=”$announcement[message]” target=”_blank”>$announcement[subject]</a><!–{/if}–></strong></th>
- <td class=”by”>
- <cite><a href=”home.php?mod=space&uid=$announcement[authorid]” c=”1″>$announcement[author]</a></cite>
- <em>$announcement[starttime]</em>
- </td>
- <td class=”num”> </td>
- <td class=”by”> </td>
- </tr>
- </tbody>
- <!–{/if}–>
复制代码
代码对比,删除前:
代码对比,删除后:
效果对比,删除前:
效果对比,删除后: