贴内发言美化框 For Discuz 7.2
修改涉及到的文件(提前备份)
viewthread_node.htm文件
第一步,查找<div class="postmessage <!--{if $post['first']}-->firstpost<!--{/if}-->">下方添加<table cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed; word-wrap: break-word">
<tr>
<td width="40" height="30" class="lt"></td>
<td height="30" class="ct"></td>
<td width="40" height="30" class="rt"></td>
</tr>
<tr>
<td width="40" class="lm" valign="top">
<img src="{IMGDIR}/td_arrow.gif" /></td>
<td class="origin" valign="top">第二步,查找,并删除<!--{if $post['first']}-->
<div id="threadtitle">
<!--{if $thread['readperm']}--><em>{lang readperm_thread} $thread</em><!--{/if}-->
<h1>$thread</h1>
<!--{if $thread || $relatedkeywords}-->
<div class="threadtags">
<!--{if $thread['tags']}-->$thread<!--{/if}-->
<!--{if $relatedkeywords}--><span class="postkeywords">$relatedkeywords</span><!--{/if}-->
</div>
<!--{/if}-->
</div>
<!--{elseif $post['subject']}-->
<h2>$post</h2>
<!--{/if}-->第三步,查找<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post">$post</td></tr></table>替换成<h1 class="ititle">$thread</h1>
... <!--{if $thread['special'] != 3 || $thread['price'] >= 0 || $thread['dateline'] + 1 != $post['dbdateline'] || $post['first']}-->{lang poston} $post <!--{/if}--> ... $thread 次点击 </span></span><br /><br />
<div id="message1" class="t_msgfont">
$post
</div>
</span>第四步,查找<!--{else}-->
<div id="post_rate_div_$post"></div>
<!--{/if}-->
<!--{/if}-->
<!--{if $post['first']}-->在上方加:</td>
<td width="40" class="rm"></td>
</tr>
<tr>
<td width="40" height="20" class="lb"></td>
<td height="20" class="cb"></td>
<td width="40" height="20" class="rb"></td>
</tr>
</table>下面是CSS的 - css_append.htm
在最后添加:/* 帖子边框 */
/* td: left top */
td.lt {
background-image: url({IMGDIR}/td_01.gif);
}
/* td: center top */
td.ct {
background-image: url({IMGDIR}/td_02.gif);
}
/* td: right top */
td.rt {
background-image: url({IMGDIR}/td_03.gif);
}
/* td: left middle */
td.lm {
background-image: url({IMGDIR}/td_04.gif);
}
/* td: origin */
td.origin {
font-size: 12px;
color: #000;
text-align: left;
background-image: url({IMGDIR}/td_05.gif);
word-break: break-all;
word-wrap: break-word;
line-height: 18px;
}
h1.ititle {
display: inline;
font-size: 16px;
font-weight: normal;
text-shadow: 2px 2px 2px #999;
margin: 0px;
padding: 2px 0px 2px 0px;
}
/* td: right middle */
td.rm {
background-image: url({IMGDIR}/td_06.gif);
}
/* td: left bottom */
td.lb {
background-image: url({IMGDIR}/td_07.gif);
}
/* td: center bottom */
td.cb {
background-image: url({IMGDIR}/td_08.gif);
}
/* td: right bottom */
td.rb {
background-image: url({IMGDIR}/td_09.gif);
}
页:
[1]