admin 发表于 2020-7-8 10:21:52

Discuz X2帖子美化框

找到template/default/forum/打开viewthread_node_body.htm文件
找到第54行<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post"><!--{if !$_G['inajax']}--><!--{if $ad_a_pr}-->$ad_a_pr<!--{/if}--><!--{/if}-->$post</td></tr></table>
替换为:<table cellspacing="0" cellpadding="0" border="0"><tr><td width="40"></td><td width:=auto background="static/image/mh/td_02.gif"></td><td width="40"></td></tr><tr><td valign="top" background="static/image/mh/td_04.gif"></td><td background="static/image/mh/td_05.gif"><div id="postmessage_$post" class="t_f">$post</div><br /></td><td valign="top" width="40" background="static/image/mh/td_06.gif"></td></tr><tr><td vAlign="top" width="40"></td><td background="static/image/mh/td_08.gif"></td><td align="right" width="40"></td></tr></table><SCRIPT language="JavaScript"><!--today=new Date();jran=today.getTime();function rnd() {ia=9301;ic=49297;im=233280;jran = (jran*ia+ic) % im;return jran/(im*1.0);};function rand(number) {return Math.ceil(rnd()*number);};document.write("<div>");for(i=1;i<=1;i++) {myNum=(rand(10)); //改成你要随机显示的图片数;if(myNum == 1) document.write(""); if(myNum == 2) document.write(""); //图片路径,可用http://if(myNum == 3) document.write(""); if(myNum == 4) document.write(""); if(myNum == 5) document.write(""); if(myNum == 6) document.write(""); if(myNum == 7) document.write(""); if(myNum == 8) document.write(""); if(myNum == 9) document.write(""); if(myNum == 10) document.write(""); else {document.write();}};document.write(" $post说:</div>");//--></SCRIPT> <br>
再找到代码:<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post">$post</td></tr></table>
替换为:<table cellspacing="0" cellpadding="0" border="0"><tr><td width="40"></td><td width:=auto background="static/image/mh/td_02.gif"></td><td width="40"></td></tr><tr><td valign="top" background="static/image/mh/td_04.gif"></td><td background="static/image/mh/td_05.gif"><div id="postmessage_$post" class="t_f">$post</div><br /></td><td valign="top" width="40" background="static/image/mh/td_06.gif"></td></tr><tr><td vAlign="top" width="40"></td><td background="static/image/mh/td_08.gif"></td><td align="right" width="40"></td></tr></table><SCRIPT language="JavaScript"><!--today=new Date();jran=today.getTime();function rnd() {ia=9301;ic=49297;im=233280;jran = (jran*ia+ic) % im;return jran/(im*1.0);};function rand(number) {return Math.ceil(rnd()*number);};document.write("<div>");for(i=1;i<=1;i++) {myNum=(rand(10)); //改成你要随机显示的图片数;if(myNum == 1) document.write(""); if(myNum == 2) document.write(""); //图片路径,可用http://if(myNum == 3) document.write(""); if(myNum == 4) document.write(""); if(myNum == 5) document.write(""); if(myNum == 6) document.write(""); if(myNum == 7) document.write(""); if(myNum == 8) document.write(""); if(myNum == 9) document.write(""); if(myNum == 10) document.write(""); else {document.write();}};document.write(" $post说:</div>");//--></SCRIPT> <br>
下载图片附件并解压,上传到跟目录
附件下载:

TyCoding 发表于 2020-7-8 10:21:57

怎么个美化法呢

浅生 发表于 2020-7-8 10:22:07

具体看哈图示再说!!!!

浅生 发表于 2020-7-8 10:22:23

嘿嘿终于搞到邀请码了!

独家记忆 发表于 2020-7-8 10:22:45

0000000000000

Crystαl 发表于 2020-7-8 10:23:24

看看, 也没有图片,是什么样子的

浅生 发表于 2020-7-8 10:23:36

需要图片啊!!!

独家记忆 发表于 2020-7-8 10:23:47

看看美化到什么程度

浅生 发表于 2020-7-8 10:24:14

这个是体无完肤那个升级?

浅生 发表于 2020-7-8 10:24:43

楼主真强大
页: [1]
查看完整版本: Discuz X2帖子美化框

创宇盾启航版免费网站防御网站加速服务