本帖最后由 tearszhu 于 2012-1-19 00:43 编辑
已经给官方提了建议,希望加入到2.5版中(点击这里进入建议帖),不过希望不大,所以自己改了一下2.0的。
CSS、图片、展示来源于19Lou,演示帖:http://bbs.hr369.com/thread-107568-1-1.html
修改两个文件:viewthread_node_body.htm和viewthread_node.htm
在viewthread_node_body.htm中增加以下内容:
- </div>
- <style type="text/css">
- /*=S goodreply */
- .floor-lift, .more-reply em, .reply-msg-bd i {background:url(static/image/common/view_icon.png) no-repeat;}
- #good-reply {position:relative;margin-bottom:5px;padding:50px 30px 10px;border:1px solid #D9E6BB;border-top:2px solid #B5CE85;zoom:1;}
- .good-reply-hd {position:absolute;top:5px;left:-5px;width:92px;height:37px;font:700 14px/32px simsun;text-indent:15px;background:url(static/image/common/view_bg.png) no-repeat -268px -19px;color:#FFF;}
- .good-reply-bd li {position:relative;margin-bottom:15px;overflow:hidden;zoom:1;}
- .good-reply-bd .avatar {float:left;margin-right:35px;width:70px;height:70px;}
- .reply-msg {position:relative;margin-left:100px;border:1px solid #DAE7BD;zoom:1;}
- .reply-msg-bd {padding:12px 10px 10px 5px;font-size:14px;line-height:24px;word-wrap:break-word;word-break:break-all;overflow:hidden;}
- .reply-msg-bd i {display:inline-block;_display:inline;_zoom:1;margin:0 5px;padding-top:12px;width:12px;height:0;background-position:0 -2224px;vertical-align:top;*vertical-align:12px;overflow:hidden;}
- .reply-msg-bd .rq {background-position:-16px -2224px;;}
- .reply-msg-bd q:before, .reply-msg-bd q:after {content:"";}
- .link1 .open-reply, .link1 .open-reply:visited {text-decoration:none;}
- .reply-msg-ft {padding:0 10px;height:28px;line-height:28px;background:#F8F8F8;color:#666;}
- .floor-lift {display:inline-block;_display:inline;_zoom:1;margin-left:5px;padding-left: 15px;background-position:0 -2107px;}
- .reply-msg-ft .aro {position:absolute;top:10px;left:-9px;}
- .reply-msg-ft .aro em, .reply-msg-ft .aro span {position:absolute;width:18px;height:18px;font:400 18px/18px \5B8B\4F53;color:#D9E6BB;overflow:hidden;}
- .reply-msg-ft .aro span {left:1px;color:#FFF;}
- .more-reply, .more-reply:visited {display:block;margin-left:100px;height:30px;line-height:30px;text-align:center;background:#F8F8F8;}
- .more-reply:hover {background:#F6F9E6;text-decoration:none;}
- .more-reply em {display:inline-block;_display:inline;_zoom:1;padding-left:18px;background-position:0 -2143px;}
- .more-reply i {font-size:12px;color:#666;}
- .more-close em {background-position:0 -2179px;}
- .good-tag {display:inline;margin-right:10px;padding:0 5px;height:18px;line-height:18px;border:1px solid #8CA226;color:#8CA226;}
- .loading-now {margin:7px auto;padding:0 0 0 25px;width:80px;height:16px;color:#666;background:url(images/btn_loading.gif) no-repeat;overflow:hidden;}
- /*=E goodreply */
- </style>
- <div>
- <!--{if $post['first'] && $sticklist}-->
- <!-- =S good reply -->
- <dl id="good-reply">
- <dt class="good-reply-hd">{lang replies_recommended}</dt>
- <dd class="link0 good-reply-bd loading">
- <ul>
- <!--{loop $sticklist $rpost}-->
- <LI><div style="float:left;"><a href="home.php?mod=space&uid=$rpost[authorid]">$rpost[avatar]</a>
- <p style="line-height:1.5em; color:#CCC;">
- ·<a href="home.php?mod=space&uid=$rpost[authorid]" target="_blank" title="{lang viewthread_left_tospace}" class="xi2">{lang viewthread_left_tospace}</a><br />·<a href="home.php?mod=spacecp&ac=friend&op=add&uid=$rpost[authorid]&handlekey=addfriendhk_$rpost[authorid]" id="a_friend_li_{$rpost[pid]}" onclick="showWindow(this.id, this.href, 'get', 1, {'ctrlid':this.id,'pos':'00'});" title="{lang viewthread_left_addfriend}" class="xi2">{lang viewthread_left_addfriend}</a>
- <br />·<a href="home.php?mod=spacecp&ac=poke&op=send&uid=$rpost[authorid]" id="a_poke_li_{$rpost[pid]}" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang viewthread_left_poke}" class="xi2">{lang viewthread_left_poke}</a><br />·<a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$rpost[authorid]&touid=$rpost[authorid]&pmid=0&daterange=2&pid=$rpost[pid]&tid=$rpost[tid]" onclick="showWindow('sendpm', this.href);" title="{lang viewthread_left_sendpm}" class="xi2">{lang viewthread_left_sendpm}</a>
- </p>
- </div>
- <DIV class=reply-msg>
- <DIV class=reply-msg-bd><I>"</I>
- <SPAN class=reply-msg-box><a href="home.php?mod=space&uid=$rpost[authorid]" class="xi2 xw1">$rpost[author]:</a><EM class=link1>$rpost[message]</EM></SPAN><I
- class=rq>"</I></DIV>
- <DIV class=reply-msg-ft><SPAN class="fr link1" style="float:right;"><a href="forum.php?mod=post&action=reply&fid=$rpost[fid]&tid=$rpost[tid]&repquote=$rpost[pid]" onclick="showWindow('reply', this.href)">{lang reply}</a><I
- class=pipe>|</I><a href="javascript:;" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$rpost[tid]&pid=$rpost[pid]', 'get', -1);return false;">{lang rate}</a></SPAN><SPAN>回复时间:<!--{echo date("Y-m-d", $rpost[dateline]);}--></SPAN><a class=floor-lift href="javascript:;" onclick="window.open('forum.php?mod=redirect&goto=findpost&ptid=$rpost[tid]&pid=$rpost[pid]')" class="xi2">{lang view_full_content}</a>
- <!--{if $_G['group']['allowstickreply']}--> <a href="javascript:;" onclick="modaction('stickreply', $rpost[pid], '&undo=yes')" class="xi2">{lang admin_unstickreply}</a><!--{/if}-->
- <DIV class=extra-ft><I class=lt> </I><I class=rt> </I><I
- class=lb> </I><I class=rb> </I>
- <P class=aro><EM>◆</EM><SPAN>◆</SPAN></P></DIV></DIV></DIV>
- </LI>
- <!--{/loop}-->
- </ul>
- </dd>
- </dl>
- <!-- =E good reply -->
- <!--{/if}-->
复制代码 viewthread_node.htm中去除以下内容:
- <!--{if $post['first'] && $sticklist}-->
- <div>
- <h3 class="psth xs1">{lang replies_recommended}</h3>
- <!--{loop $sticklist $rpost}-->
- <div class="pstl xs1">
- <div class="psta"><a href="home.php?mod=space&uid=$rpost[authorid]" c="1">$rpost[avatar]</a></div>
- <div class="psti">
- <p>
- <a href="home.php?mod=space&uid=$rpost[authorid]" class="xi2 xw1">$rpost[author]</a> {lang published_in_floor}
- <span class="xi2">
- <a href="javascript:;" onclick="window.open('forum.php?mod=redirect&goto=findpost&ptid=$rpost[tid]&pid=$rpost[pid]')" class="xi2">{lang view_full_content}</a>
- <!--{if $_G['group']['allowstickreply']}--> <a href="javascript:;" onclick="modaction('stickreply', $rpost[pid], '&undo=yes')" class="xi2">{lang admin_unstickreply}</a><!--{/if}-->
- </span>
- </p>
- <div class="mtn">$rpost[message]</div>
- </div>
- </div>
- <!--{/loop}-->
- </div>
- <!--{/if}-->
复制代码 附件两个图片上传到:static/image/common中
完成。
|