Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] dzx2.5帖子内容美化框

[复制链接]
烛光之窗 发表于 2012-5-31 20:44:12 | 显示全部楼层 |阅读模式
本帖最后由 烛光之窗 于 2012-6-17 11:52 编辑

我是原来的西部园丁,由于DZ无缘无故的删除了我,我从没在DZ乱发过帖子,一直是遵纪守法,没想到不知道为什么把我删除了,以前我有金币的时候常常给别人加分送金币,我的积分已经有4851分,可是一旦把我删除了,我什么也没有了。

本站演示10天到期,现在发截图演示
主题帖效果

回复效果

一、
手动修改
进入ftp找到template/default/forum/
打开viewthread_node_body.htm文件
找到:
  1. <table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">


  2. <!--{if !$_G['inajax']}-->


  3. <!--{if $ad_a_pr}-->


  4. $ad_a_pr


  5. <!--{/if}-->


  6. <!--{/if}-->


  7. $post[message]</td></tr></table>
复制代码
替换成
  1. <table cellspacing="0" cellpadding="0" border="0">


  2. <tr>


  3. <td width=14><img height=40 src=static/image/mh_plus/top_l.gif width=14/></td>


  4. <td width:=auto background=static/image/mh_plus/top_c.gif></td>


  5. <td width=14><img height=40 src=static/image/mh_plus/top_r.gif width=14/></td>


  6. </tr>


  7. <tr>


  8. <td valign=top width=14 background=static/image/mh_plus/center_l.gif></td>


  9. <td background="static/image/mh_plus/plus.gif"><font color=#a7a7a7>本帖<!--{if $thread['special'] != 3 || $thread['price'] >= 0 || $thread['dateline'] + 1 != $post['dbdateline'] || $post['first']}-->{lang poston} $post[dateline]...<!--{/if}-->阅读 <font color="#0000FF"><span class="smalltxt">{echo $thread[views]+1}</span></font> 人...加油,亲爱的楼主:<a href="space.php?uid=$post['authorid']" target="_blank"><font color="#0000FF">$post[author]</a></font></font></span></span>




  10. <hr size="1" noshade="noshade" style="border-top:1px #dddddd dashed;margin-bottom: 0px;margin-top: -1px;"/>



  11. <div id="postmessage_$post[pid]" class="t_f">$post[message]</div>



  12. </td>


  13. <td valign=top width=16 background=static/image/mh_plus/center_r.gif></td>


  14. </tr>


  15. <tr>


  16. <td vAlign=top width=14><img height=42 src=static/image/mh_plus/foot_l1.gif width=14/></td>


  17. <td background=static/image/mh_plus/foot_c.gif><img height=42 src=static/image/mh_plus/foot_l3.gif width=36/></td>


  18. <td align=right width=16><img height=42 src=static/image/mh_plus/foot_r.gif width=16/></td>


  19. </tr>


  20. </table>


  21. <SCRIPT language="JavaScript">


  22. <!--


  23. today=new Date();


  24. jran=today.getTime();


  25. function rnd() {


  26. ia=9301;


  27. ic=49297;


  28. im=233280;


  29. jran = (jran*ia+ic) % im;


  30. return jran/(im*1.0);


  31. };


  32. function rand(number) {


  33. return Math.ceil(rnd()*number);


  34. };


  35. document.write("<div>");


  36. for(i=1;i<=1;i++) {


  37. myNum=(rand(10)); //改成你要随机显示的图片数;


  38. if(myNum == 1) document.write("<img src='static/image/mh_plus/face1.gif'>");
  39. if(myNum == 2) document.write("<img src='static/image/mh_plus/face2.gif'>"); //图片路径,可用http://


  40. if(myNum == 3) document.write("<img src='static/image/mh_plus/face3.gif'>");
  41. if(myNum == 4) document.write("<img src='static/image/mh_plus/face4.gif'>");
  42. if(myNum == 5) document.write("<img src='static/image/mh_plus/face5.gif'>");
  43. if(myNum == 6) document.write("<img src='static/image/mh_plus/face6.gif'>");
  44. if(myNum == 7) document.write("<img src='static/image/mh_plus/face7.gif'>");
  45. if(myNum == 8) document.write("<img src='static/image/mh_plus/face8.gif'>");
  46. if(myNum == 9) document.write("<img src='static/image/mh_plus/face9.gif'>");
  47. if(myNum == 10) document.write("<img src='static/image/mh_plus/face10.gif'>");
  48. else {


  49. document.write();


  50. }


  51. };


  52. document.write(" $post[author]说:</div>");


  53. //-->


  54. </SCRIPT>
复制代码
再往下找到:
  1.                         <table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">


  2.                         <!--{if !$_G['inajax']}-->


  3.                                 <!--{if $ad_a_pr}-->


  4.                                         $ad_a_pr


  5.                                 <!--{/if}-->


  6.                         <!--{/if}-->


  7.                         <!--{if $post['invisible'] != '-2' || $_G['forum']['ismoderator']}-->$post[message]<!--{else}--><span class="xg1">{lang moderate_need}</span><!--{/if}--></td></tr></table>
复制代码
替换成:
  1. <table cellspacing="0" cellpadding="0" border="0">


  2. <tr>


  3. <td width="40"><img height="40" src="static/image/mh_plus/td_01.gif" width="40"/></td>


  4. <td width:=auto background="static/image/mh_plus/td_02.gif"></td>


  5. <td width="40"><img height="40" src="static/image/mh_plus/td_03.gif" width="40"/></td>


  6. </tr>


  7. <tr>


  8. <td valign="top" background="static/image/mh_plus/td_04.gif"></td>


  9. <td background="static/image/mh_plus/td_05.gif"><font color=#a7a7a7>本回复帖<!--{if $thread['special'] != 3 || $thread['price'] >= 0 || $thread['dateline'] + 1 != $post['dbdateline'] || $post['first']}-->{lang poston} $post[dateline],<!--{/if}-->感谢<font color="#009933">$post[author]</font>对本帖的认真回复,你的回复是对楼主莫大的鼓舞</font></span></span>




  10. <hr size="1" noshade="noshade" style="border-top:1px #dddddd dashed;margin-bottom: 0px;margin-top: -1px;"/>



  11. <div id="postmessage_$post[pid]" class="t_f">$post[message]</div>



  12. <hr size="1" noshade="noshade" style="border-top:1px #dddddd dashed;margin-bottom: 0px;margin-top: -1px;"/>


  13. </td>


  14. <td valign="top" width="40" background="static/image/mh_plus/td_06.gif"></td>


  15. </tr>


  16. <tr>


  17. <td vAlign="top" width="40"><img height="40" src="static/image/mh_plus/td_07.gif" width="40"/></td>


  18. <td background="static/image/mh_plus/td_08.gif"></td>


  19. <td align="right" width="40"><img height="40" src="static/image/mh_plus/td_09.gif" width="40"/></td>


  20. </tr>


  21. </table>


  22. <SCRIPT language="JavaScript">


  23. <!--


  24. today=new Date();


  25. jran=today.getTime();


  26. function rnd() {


  27. ia=9301;


  28. ic=49297;


  29. im=233280;


  30. jran = (jran*ia+ic) % im;


  31. return jran/(im*1.0);


  32. };


  33. function rand(number) {


  34. return Math.ceil(rnd()*number);


  35. };


  36. document.write("<div>");


  37. for(i=1;i<=1;i++) {


  38. myNum=(rand(10)); //改成你要随机显示的图片数;


  39. if(myNum == 1) document.write("<img src='static/image/mh_plus/face1.gif'>");
  40. if(myNum == 2) document.write("<img src='static/image/mh_plus/face2.gif'>"); //图片路径,可用http://


  41. if(myNum == 3) document.write("<img src='static/image/mh_plus/face3.gif'>");
  42. if(myNum == 4) document.write("<img src='static/image/mh_plus/face4.gif'>");
  43. if(myNum == 5) document.write("<img src='static/image/mh_plus/face5.gif'>");
  44. if(myNum == 6) document.write("<img src='static/image/mh_plus/face6.gif'>");
  45. if(myNum == 7) document.write("<img src='static/image/mh_plus/face7.gif'>");
  46. if(myNum == 8) document.write("<img src='static/image/mh_plus/face8.gif'>");
  47. if(myNum == 9) document.write("<img src='static/image/mh_plus/face9.gif'>");
  48. if(myNum == 10) document.write("<img src='static/image/mh_plus/face10.gif'>");
  49. else {


  50. document.write();


  51. }


  52. };


  53. document.write(" $post[author]说:</div>");


  54. //-->


  55. </SCRIPT>
复制代码
附件都要解压哈!
下载附件上传到论坛根目录会自动加上图片。


二、懒人包覆盖

上传附件到论坛根目录,自动加上附件和自动替换一个文件。


免费下载
X2.5非常美观的帖子内容美化框,主题与回复分别美化,加发表时间阅读人数。

http://www.zg47.com/thread-4558-1-1.html

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 烛光之窗 发表于 2012-5-31 20:50:50 | 显示全部楼层
本帖最后由 烛光之窗 于 2012-5-31 21:10 编辑

如果手动修改出现下面这样的情况,请你最好用懒人包覆盖。


上面




下面



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

好运连连123 发表于 2012-5-31 20:58:03 | 显示全部楼层
你什么论坛,好慢
回复

使用道具 举报

 楼主| 烛光之窗 发表于 2012-5-31 21:04:33 | 显示全部楼层
好运连连123 发表于 2012-5-31 20:58
你什么论坛,好慢

对不起,刚刚服务器在重启。
回复

使用道具 举报

Jay奏﹏晓Q、 发表于 2012-5-31 21:19:50 | 显示全部楼层
前排~~~
回复

使用道具 举报

厦新情缘 发表于 2012-5-31 21:25:14 | 显示全部楼层
截图都没有啊............效果都看不到
回复

使用道具 举报

Jay奏﹏晓Q、 发表于 2012-5-31 21:26:46 | 显示全部楼层
可以不可以 发出来分享了 别要钱了~~ 真心的穷~~·
回复

使用道具 举报

流年无殇 发表于 2012-6-1 22:41:07 | 显示全部楼层
X2的有没有啊?
回复

使用道具 举报

 楼主| 烛光之窗 发表于 2012-6-2 06:22:06 | 显示全部楼层
还是有人需要。自己看好。
回复

使用道具 举报

yyq0305 发表于 2012-6-2 10:00:51 | 显示全部楼层
感谢分享
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 04:05 , Processed in 0.554154 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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