《绿之夏》v1.1 ,修改评论样式

      编程手札 2005-8-18 9:46
大家可以跟据以下步骤修改模板,该篇文章会一直置顶到 8 月 29 日

1. 打开管理界面,设置模板,打开代码页查找以下内容 (共有2处地方要改)
<LINK href="http://www.5dblog.com/vip/icecream/upload/(旧的内容)" type=text/css rel=stylesheet>


<!-- Comment -->
			<div id="comment">
				<table cellpadding="0" cellspacing="0" id="cmt_title">
					<tr>
						<td width="1"><img src="http://www.5dblog.com/vip/icecream/upload/2005-07/19_787.gif" alt="评论(共 {Count} 条)"></td>
						<td align="center" width="100%"><img src="http://www.5dblog.com/vip/icecream/upload/2005-07/19_720.gif"></td>
						<td width="1" align="right"><a href="http://icecream.5dblog.com"><img src="http://www.5dblog.com/vip/icecream/upload/2005-07/19_408.gif"></a></td>
					</tr>
					<tr>
						<td colspan="3">
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<tr>
									<td id="cmt_shadow_right" width="28"></td>
									<td id="cmt_content">
									
										<table>
											<tr>
											<td></td>
											<td colspan="2" align="center"><img src="http://www.5dblog.com/vip/icecream/upload/2005-07/20_893.gif"></td></tr>
		</BLOG:DETAILFOOTER>
		
		
		
		<BLOG:COMMENTHEADER>	
			
		</BLOG:COMMENTHEADER>
		
		<BLOG:COMMENTENTRY>
											<tr>
												<td class="cmt_icon"></td>
												<td class="cmt_author" nowrap>{CommentAuthor}:<br>
													<span class="cmt_date">{CommentTime}</span><br>
														{CommentUrl}{CommentEmail}{CommentIp}
											  </td>
												<td class="cmt_text">{CommentContent}</td>
											</tr>
			
		</BLOG:COMMENTENTRY>
		
		<BLOG:COMMENTSEPARATOR></BLOG:COMMENTSEPARATOR>
		<BLOG:COMMENTFOOTER>			
				</table>
										
									</td>
									<td width="23"></td>
								</tr>
							</table>
							
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<tr>
									<td rowspan="2" width="1"><img src="http://www.5dblog.com/vip/icecream/upload/2005-07/19_758.gif"></td>
									<td id="cmt_btm"></td>
									<td rowspan="2" width="1"><img src="http://www.5dblog.com/vip/icecream/upload/2005-07/19_343.gif"></td>
								</tr>
								<tr>
									<td id="cmt_shadow_btm" width="11"></td>
								</tr>
							</table>
						</td>
					</tr>
					
				</table>
			</div>
		</BLOG:COMMENTFOOTER>


2. 然后改成以下内容

<LINK href="http://www.5dblog.com/vip/icecream/upload/2005-08/16_935.dir" type=text/css rel=stylesheet>



<!-- Comment -->
			<table cellpadding="0" cellspacing="0" id="comment" >
		</BLOG:DETAILFOOTER>
		
		
		
		<BLOG:COMMENTHEADER>	
			<tr>
					<td class="btm_li_green">
						<table width="96%"  border="0" cellspacing="0" cellpadding="0" align="center">
						  <tr>
							<td><img src="http://www.5dblog.com/vip/icecream/upload/2005-08/16_663.gif"></td>
							<td align="right" valign="bottom"><div id="cmt_count">[ Commentary: {Count} ]</div></td>
						  </tr>
						</table>
					</td>
				</tr>
		</BLOG:COMMENTHEADER>
		
		<BLOG:COMMENTENTRY>
				
				<tr>
					<td class="btm_li_green">
						<table  cellpadding="0" cellspacing="0" class="cmt_table" >
							<tr>
								<td class="cmt_author" width="24%">{CommentAuthor}</td>
								<td width="20"></td>
								<td>
									<span class="cmt_date">{CommentTime}</span>{CommentUrl}{CommentEmail}{CommentIp}<br>
									<span class="cmt_text">{CommentContent}</span>
								</td>
							</tr>
						</table>
					</td>
				</tr>

		</BLOG:COMMENTENTRY>
		
		<BLOG:COMMENTSEPARATOR></BLOG:COMMENTSEPARATOR>
		<BLOG:COMMENTFOOTER>			
				</table><!-- end #comment -->
		</BLOG:COMMENTFOOTER>


3.保存即可,然后测试一下
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}