让你的PJBLOG3静态下也支持侧栏插件(最新日志、热门日志等)
作者:笨花 日期:2009-03-07
打开common\cache.asp,找到:
vb 代码复制内容到剪贴板
- If blog_module("IndexOnly") = False Then
- side_html = side_html"<div id=""Side_"&blog_module("name")""" class=""sidepanel"">"
- If Len(blog_module("title"))>0 Then side_html = side_html"<h4 class=""Ptitle"">"&blog_module("title")"</h4>"
- side_html = side_html"<div class=""Pcontent"">"&blog_module("HtmlCode")"</div><div class=""Pfoot""></div></div>"
- End If
- If blog_module("IsSystem") = True Then
- side_html_static = side_html_static"<div id=""Side_"&blog_module("name")""" class=""sidepanel"">"
- If Len(blog_module("title"))>0 Then side_html_static = side_html_static"<h4 class=""Ptitle"">"&blog_module("title")"</h4>"
- side_html_static = side_html_static"<div class=""Pcontent"">"&blog_module("HtmlCode")"</div><div class=""Pfoot""></div></div>"
- End If
修改成
vb 代码复制内容到剪贴板
- If blog_module("IndexOnly") = False Then
- side_html_static = side_html_static"<div id=""Side_"&blog_module("name")""" class=""sidepanel"">"
- If Len(blog_module("title"))>0 Then side_html_static = side_html_static"<h4 class=""Ptitle"">"&blog_module("title")"</h4>"
- side_html_static = side_html_static"<div class=""Pcontent"">"&blog_module("HtmlCode")"</div><div class=""Pfoot""></div></div>"
- side_html = side_html"<div id=""Side_"&blog_module("name")""" class=""sidepanel"">"
- If Len(blog_module("title"))>0 Then side_html = side_html"<h4 class=""Ptitle"">"&blog_module("title")"</h4>"
- side_html = side_html"<div class=""Pcontent"">"&blog_module("HtmlCode")"</div><div class=""Pfoot""></div></div>"
- End If
打开插件目录下的install.xml文件(注意:这两行的“*”和“**”要对应,即上“*”=下“*”,上“**”=下“**”)
vb 代码复制内容到剪贴板
- side_html=replace(side_html,"<$*$>",**)
在上面代码下面插入一行:
vb 代码复制内容到剪贴板
- side_html_static=replace(side_html_static,"<$*$>",**)
以后开发的插件直接在INSTALL.XML中带入side_html_static就可以了,勿须做其他修改。
打开根目录下的static_js.asp文件找到
vb 代码复制内容到剪贴板
- 'Response.CacheControl = "no-cache"
修改为
vb 代码复制内容到剪贴板
- Response.CacheControl = "no-cache"
打开根目录下的static_js_mod.asp文件
找到
vb 代码复制内容到剪贴板
- <!--#include file="BlogCommon.asp" -->
- <!--#include file="common/function.asp" -->
- <!--#include file="common/library.asp" -->
- <!--#include file="common/cache.asp" -->
- <!--#include file="common/checkUser.asp" -->
- <!--#include file="common/ModSet.asp" -->
- <!--#include file="class/cls_article.asp" -->
修改为
vb 代码复制内容到剪贴板
- <!--#include file="BlogCommon.asp" -->
- <!--#include file="common/function.asp" -->
- <!--#include file="common/library.asp" -->
- <!--#include file="common/ubbcode.asp" -->
- <!--#include file="common/cache.asp" -->
- <!--#include file="common/checkUser.asp" -->
- <!--#include file="common/ModSet.asp" -->
- <!--#include file="class/cls_article.asp" -->
- <!--#include file="Plugins.asp" -->
评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇

文章来自:
Tags:
相关日志: