Discuz教程网

DX2删除主题列表页前面的主题图标位置,针对有特殊需求的童鞋!

[复制链接]
authicon dly 发表于 2012-2-10 18:15:09 | 显示全部楼层 |阅读模式
删除的位置截图:
100729df3eupohjd3oui50.png
操作步骤一
在模版中删除相关的变量和html代码。
文件:templatedefault orum orumdisplay_list.htm
查找以下几个代码删除:
  1. <td class="icn"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
复制代码
  1. <td class="icn"></td>
复制代码
  1. <td class="icn">
  2. <a href="forum.php?mod=viewthread&tid=$thread&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}
  3. {if $thread['displayorder'] == 2}{lang thread_type2} - {/if}
  4. {if $thread['displayorder'] == 3}{lang thread_type3} - {/if}
  5. {if $thread['displayorder'] == 4}{lang thread_type4} - {/if}
  6. {if $thread == 'lock'}{lang closed_thread} - {/if}
  7. {if $thread['special'] == 1}{lang thread_poll} - {/if}
  8. {if $thread['special'] == 2}{lang thread_trade} - {/if}
  9. {if $thread['special'] == 3}{lang thread_reward} - {/if}
  10. {if $thread['special'] == 4}{lang thread_activity} - {/if}
  11. {if $thread['special'] == 5}{lang thread_debate} - {/if}
  12. {if $thread == "new"}{lang have_newreplies} - {/if}
  13. {lang target_blank}" target="_blank">
  14. <!--{if $thread == 'lock'}-->
  15. <img src="{IMGDIR}/folder_lock.gif" />
  16. <!--{elseif $thread['special'] == 1}-->
  17. <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
  18. <!--{elseif $thread['special'] == 2}-->
  19. <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
  20. <!--{elseif $thread['special'] == 3}-->
  21. <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
  22. <!--{elseif $thread['special'] == 4}-->
  23. <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
  24. <!--{elseif $thread['special'] == 5}-->
  25. <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
  26. <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  27. <img src="{IMGDIR}/pin_$thread.gif" alt="$_G]" />
  28. <!--{else}-->
  29. <img src="{IMGDIR}/folder_$thread.gif" />
  30. <!--{/if}-->
  31. </a>
  32. </td>
复制代码

第二个步骤
调整该列表区域中广告代码的占位,其他的广告位处理文件也在【source\class\adv\】中,童鞋们可以打开看下,或自己做更多的修改。这个目录的文件修改后要更新缓存才能看见效果

文件:source\class\adv\adv_threadlist.php

查找:

  1. <td colspan=\'.($_G[\'forum\'][\'ismoderator\'] && !$_G[\'gp_archiveid\'] ? 6 : 5).\'>
复制代码

替换为:
  1. <td colspan=\'.($_G[\'forum\'][\'ismoderator\'] && !$_G[\'gp_archiveid\'] ? 5 : 5).\'>
复制代码



最后更新缓存!




上一篇:DX2-通过QQ注册的会员未设置密码时,不允许进行发帖操作
下一篇:解决模板疑难:DX2发帖页面编辑器内容区域背景透明的方法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 11:01

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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