一、增加了GreyBox特效
具体见:http://bbs.rainbowsoft.org/viewthread.php?tid=11455&highlight=greybox
GreyBox 图片特效 for zblog 1.7(比lightbox效果更炫,安装更简单)
由zx.asd提供.
1. GreyBox 介绍及下载: http://orangoo.com/labs/GreyBox/
2.解压GreyBox_v5_30,将greybox文件上传到博客目录下
3.修改模板default.html , catalog.html , single.html
1). 在< head > < /head > 加入:
<script type="text/javascript">
var GB_ROOT_DIR = "<#ZC_BLOG_HOST#>greybox/";
</script>
<script type="text/javascript" src="<#ZC_BLOG_HOST#>greybox/AJS.js"></script>
<script type="text/javascript" src="<#ZC_BLOG_HOST#>greybox/AJS_fx.js"></script>
<script type="text/javascript" src="<#ZC_BLOG_HOST#>greybox/gb_scripts.js"></script>
<link href="<#ZC_BLOG_HOST#>greybox/gb_styles.css" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" _fcksavedurl=""<#ZC_BLOG_HOST#>greybox/gb_styles.css"" rel="stylesheet" type="text/css" media="all" />
2). 在底部的 script 内 加入:
$("div[@class='post-body']").find("a[@href$=.bmp],a[@href$=.png],a[@href$=.gif],a[@href$=.jpg],a[@href$=.jpeg]").each(function(i){
$(this).rel("gb_imageset[nice_pics]");
});
});
4. 如何使用.
1). 用两个UBB组合,如
在
<h3><#ZC_MSG050#></h3>
<#CACHE_INCLUDE_CALENDAR#>
</div>
后添加
<script language="JavaScript" src="<#ZC_BLOG_HOST#>script/4nothing_calendar.js" type="text/javascript"></script>
</div>
即可。
如要在每篇文章中都添加,请修改template目录下的single.html文件
四、评论下给作者/管理员加上直接编辑按钮:
修改文件:template/b_article_comment.html
<ul class="msg">
<li class="msgname"><a onclick="InsertQuote(this.parentNode.parentNode.getElementsByTagName('a')[2].innerHTML,this.parentNode.parentNode.getElementsByTagName('li')[2].innerHTML);return false;" href=""><img _fcksavedurl="""><img" _fcksavedurl="""><img" _fcksavedurl="""><img" src="<#ZC_BLOG_HOST#>image/common/quote.gif" height="9" width="9" alt="quote" title="quote" />[<#ZC_MSG014#>]</a> <a name="cmt<#article/comment/id#>"><#article/comment/count#></a>.<a href="mailto:<#article/comment/email#>" onclick="this.href=(this.href).replace(/\[AT\]/,String.fromCharCode(64));"><#article/comment/name#></a></li>
<li class="msgurl"><a href="<#article/comment/url#>" rel="nofollow" target="_blank"><#article/comment/url#></a></li>
<li class="msgarticle"><#article/comment/content#></li>
<li class="msgtime"><a href="#comment" onclick="RevertComment('<#article/comment/id#>')">[<#ZC_MSG265#>]</a> <script>
if(GetCookie("password")){
document.write("<a href=\"<#ZC_BLOG_HOST#>cmd.asp?act=CommentEdt&id=<#article/comment/id#>&log_id=<#article/id#>\">[<#ZC_MSG078#>]</a> <a href=\"<#ZC_BLOG_HOST#>cmd.asp?act=CommentDel&id=<#article/comment/id#>&log_id=<#article/id#>\">[<#ZC_MSG063#>]</a>")}</script><#article/comment/posttime#></li>
</ul>
五、操作成功后加上到“文章管理”“评论管理”“首页”的链接
方便作者/管理员本人在进行单篇日志编辑或直接编辑评论等操作后的下一步操作,将后台左栏的管理菜单全部搬过来
修改文件:function/c_system_base.asp
给以下代码
If bolOperateSuccess=True Then
Response.Write "<p class='hint hint_green'><font color='green'>" & ZC_MSG266 & "</font></p>"
End If
中增加蓝色粗体部分内容即可
If bolOperateSuccess=True Then
Response.Write "<p class='hint hint_green'><font color='green'>" & ZC_MSG266 & "</font><br> <a href=../default.asp>" & ZC_MSG213 & "</a> <a href=../cmd.asp?act=SiteInfo>" & ZC_MSG245 & "</a> <a href=../cmd.asp?act=ArticleEdt&type=fckeditor>" & ZC_MSG168 & "("& ZC_MSG100 & ")</a> <a href=../cmd.asp?act=ArticleEdt>" & ZC_MSG168 & "(" & ZC_MSG101 & ")</a> <a href=../cmd.asp?act=BlogReBuild>" & ZC_MSG072 & "</a> <a href=../cmd.asp?act=AskFileReBuild>" & ZC_MSG073 & "</a><br><br> <a href=../cmd.asp?act=ArticleMng>" & ZC_MSG067 & "</a> <a href=../cmd.asp?act=CategoryMng>" & ZC_MSG066 & "</a> <a href=../cmd.asp?act=TagMng>" & ZC_MSG141 & "</a> <a href=../cmd.asp?act=CommentMng>" & ZC_MSG068 & "</a> <a href=../cmd.asp?act=TrackBackMng>" & ZC_MSG069 & "</a> <a href=../cmd.asp?act=FileMng>" & ZC_MSG071 & "</a><br><br> <a href=../cmd.asp?act=SettingMng>" & ZC_MSG247 & "</a> <a href=../cmd.asp?act=SiteFileMng>" & ZC_MSG210 & "</a> <a href=../cmd.asp?act=UserMng>" & ZC_MSG070 & "</a> <a href=../cmd.asp?act=PlugInMng>" & ZC_MSG107 & "</a> <a href=../cmd.asp?act=Update>" & ZC_MSG172 & "</a> <a href=../cmd.asp?act=logout>" & ZC_MSG020 & "</a></p>"
End If
评论
MrDuan
回复1、去掉4nothing_calendar.js文件里下边的这两条,
document.write("<table><tr><td>今天是阳历:" + thisInfo.sYear + "年" + (thisInfo.sMonth+1) + "月" + thisInfo.sDay + "日<font color=red>" + fstInfo.sFev + "</font></td></tr>");
document.write("<tr><td align=right>农历:" + (thisInfo.isLeap ? "闰" : "") + thisInfo.lMonth + "月" + thisInfo.lDay + "日<font color=red>" + fstInfo.lFev + "</font></td></tr>");
2、把
document.write("[S]<tr><td>[/S]距离下一节日:<font color=red>" + tempInfo.sFev + " " + tempInfo.lFev + "</font> 还有<b><i>" + i + "</i></b>天[S]</td></tr></table>[/S]");
中的与表格定义有关的东西去掉
birder
回复如何只加节日倒计时呢?
MrDuan
回复对,就是
birder
回复二、增加了节日提醒功能
就是你首页右侧栏显示的节日倒计时提醒吗?