dzx1.5帖子框美化
作者:csuper
发表于:2012-11-01

使用方法(指全新安装):进入ftp依次打开/web/template/default/forum找到viewthread_node_body.htm文件进行编辑
找到:
<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">$post[message]</td></tr></table>
找到:
<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">$post[message]</td></tr></table>
替换为:
<table cellspacing="0" cellpadding="0" border="0">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td width=14><img height=40 src=static/image/mh_plus/top_l.gif width=14/></td>
<td width:=auto background=static/image/mh_plus/top_c.gif></td>
<td width=14><img height=40 src=static/image/mh_plus/top_r.gif width=22/></td>
</tr>
<tr>
<td valign=top width=14 background=static/image/mh_plus/center_l.gif></td>
<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}-->,加油,亲爱的楼主...<a href="space.php?uid=$post['authorid']" target="_blank"><font color="#0000FF">$post[author]</a></font></font></span></span><br /><br />
<hr size="1" noshade="noshade" style="border-top:1px #dddddd dashed;margin-bottom: 0px;margin-top: -1px;"/><br />
<div id="postmessage_$post[pid]" class="t_f">$post[message]</div><br />
</td>
<td valign=top width=16 background=static/image/mh_plus/center_r.gif></td>
</tr>
<tr>
<td vAlign=top width=14><img height=42 src=static/image/mh_plus/foot_l1.gif width=14/></td>
<td background=static/image/mh_plus/foot_c.gif><img height=42 src=static/image/mh_plus/foot_l3.gif width=36/></td>
<td align=right width=16><img height=42 src=static/image/mh_plus/foot_r.gif width=16/></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("<img src='static/image/mh_plus/face1.gif'>");
if(myNum == 2) document.write("<img src='static/image/mh_plus/face2.gif'>"); //图片路径,可用http://
if(myNum == 3) document.write("<img src='static/image/mh_plus/face3.gif'>");
if(myNum == 4) document.write("<img src='static/image/mh_plus/face4.gif'>");
if(myNum == 5) document.write("<img src='static/image/mh_plus/face5.gif'>");
if(myNum == 6) document.write("<img src='static/image/mh_plus/face6.gif'>");
if(myNum == 7) document.write("<img src='static/image/mh_plus/face7.gif'>");
if(myNum == 8) document.write("<img src='static/image/mh_plus/face8.gif'>");
if(myNum == 9) document.write("<img src='static/image/mh_plus/face9.gif'>");
if(myNum == 10) document.write("<img src='static/image/mh_plus/face10.gif'>");
else {
document.write();
}
};
document.write(" $post[author]说:</div>");
//-->
</SCRIPT>
<br>
再往下找到:
<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">$post[message]</td></tr></table>
<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">$post[message]</td></tr></table>
替换为:
<table cellspacing="0" cellpadding="0" border="0">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="40"><img height="40" src="static/image/mh_plus/td_01.gif" width="40"/></td>
<td width:=auto background="static/image/mh_plus/td_02.gif"></td>
<td width="40"><img height="40" src="static/image/mh_plus/td_03.gif" width="40"/></td>
</tr>
<tr>
<td valign="top" background="static/image/mh_plus/td_04.gif"></td>
<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></span></span><br /><br />
<hr size="1" noshade="noshade" style="border-top:1px #dddddd dashed;margin-bottom: 0px;margin-top: -1px;"/><br />
<div id="postmessage_$post[pid]" class="t_f">$post[message]</div><br />
</td>
<td valign="top" width="40" background="static/image/mh_plus/td_06.gif"></td>
</tr>
<tr>
<td vAlign="top" width="40"><img height="40" src="static/image/mh_plus/td_07.gif" width="40"/></td>
<td background="static/image/mh_plus/td_08.gif"></td>
<td align="right" width="40"><img height="40" src="static/image/mh_plus/td_09.gif" 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("<img src='static/image/mh_plus/face1.gif'>");
if(myNum == 2) document.write("<img src='static/image/mh_plus/face2.gif'>"); //图片路径,可用http://
if(myNum == 3) document.write("<img src='static/image/mh_plus/face3.gif'>");
if(myNum == 4) document.write("<img src='static/image/mh_plus/face4.gif'>");
if(myNum == 5) document.write("<img src='static/image/mh_plus/face5.gif'>");
if(myNum == 6) document.write("<img src='static/image/mh_plus/face6.gif'>");
if(myNum == 7) document.write("<img src='static/image/mh_plus/face7.gif'>");
if(myNum == 8) document.write("<img src='static/image/mh_plus/face8.gif'>");
if(myNum == 9) document.write("<img src='static/image/mh_plus/face9.gif'>");
if(myNum == 10) document.write("<img src='static/image/mh_plus/face10.gif'>");
else {
document.write();
}
};
document.write(" $post[author]说:</div>");
//-->
</SCRIPT>
<br>
图片上传到static/image/mh_plus
版权声明
本文仅代表作者观点,不代表Csuper立场。
本文系作者授权百度百家发表,未经许可,不得转载。