本站隆重推出全新栏目“淘宝网购物导航“:实时更新淘宝的各类促销活动、成交排行、优惠充值等信息,让您网购更加安心,放心,省心!

让你的PJBLOG3静态下也支持侧栏插件(最新日志、热门日志等)

打开common\cache.asp,找到:

vb 代码复制内容到剪贴板
  1. If blog_module("IndexOnly") = False Then                       
  2.     side_html = side_html"<div id=""Side_"&blog_module("name")""" class=""sidepanel"">"                       
  3.     If Len(blog_module("title"))>0 Then side_html = side_html"<h4 class=""Ptitle"">"&blog_module("title")"</h4>"                       
  4.     side_html = side_html"<div class=""Pcontent"">"&blog_module("HtmlCode")"</div><div class=""Pfoot""></div></div>"                       
  5. End If                       
  6.                        
  7. If blog_module("IsSystem") = True Then                       
  8.     side_html_static = side_html_static"<div id=""Side_"&blog_module("name")""" class=""sidepanel"">"                       
  9.     If Len(blog_module("title"))>0 Then side_html_static = side_html_static"<h4 class=""Ptitle"">"&blog_module("title")"</h4>"                       
  10.     side_html_static = side_html_static"<div class=""Pcontent"">"&blog_module("HtmlCode")"</div><div class=""Pfoot""></div></div>"                       
  11. End If   

修改成

vb 代码复制内容到剪贴板
  1. If blog_module("IndexOnly") = False Then                    
  2.         side_html_static = side_html_static"<div id=""Side_"&blog_module("name")""" class=""sidepanel"">"                    
  3.         If Len(blog_module("title"))>0 Then side_html_static = side_html_static"<h4 class=""Ptitle"">"&blog_module("title")"</h4>"                    
  4.         side_html_static = side_html_static"<div class=""Pcontent"">"&blog_module("HtmlCode")"</div><div class=""Pfoot""></div></div>"                    
  5.         side_html = side_html"<div id=""Side_"&blog_module("name")""" class=""sidepanel"">"                    
  6.         If Len(blog_module("title"))>0 Then side_html = side_html"<h4 class=""Ptitle"">"&blog_module("title")"</h4>"                    
  7.         side_html = side_html"<div class=""Pcontent"">"&blog_module("HtmlCode")"</div><div class=""Pfoot""></div></div>"                    
  8. End If  

打开插件目录下的install.xml文件(注意:这两行的“*”和“**”要对应,即上“*”=下“*”,上“**”=下“**”)

vb 代码复制内容到剪贴板
  1. side_html=replace(side_html,"<$*$>",**)  

在上面代码下面插入一行:

vb 代码复制内容到剪贴板
  1. side_html_static=replace(side_html_static,"<$*$>",**)  

以后开发的插件直接在INSTALL.XML中带入side_html_static就可以了,勿须做其他修改。

打开根目录下的static_js.asp文件找到

vb 代码复制内容到剪贴板
  1. 'Response.CacheControl = "no-cache"  

修改为

vb 代码复制内容到剪贴板
  1. Response.CacheControl = "no-cache"   

打开根目录下的static_js_mod.asp文件

找到

vb 代码复制内容到剪贴板
  1. <!--#include file="BlogCommon.asp" -->                     
  2. <!--#include file="common/function.asp" -->                     
  3. <!--#include file="common/library.asp" -->                     
  4. <!--#include file="common/cache.asp" -->                     
  5. <!--#include file="common/checkUser.asp" -->                     
  6. <!--#include file="common/ModSet.asp" -->                     
  7. <!--#include file="class/cls_article.asp" -->  

修改为

vb 代码复制内容到剪贴板
  1. <!--#include file="BlogCommon.asp" -->                     
  2. <!--#include file="common/function.asp" -->                     
  3. <!--#include file="common/library.asp" -->                     
  4. <!--#include file="common/ubbcode.asp" -->                     
  5. <!--#include file="common/cache.asp" -->                     
  6. <!--#include file="common/checkUser.asp" -->                     
  7. <!--#include file="common/ModSet.asp" -->                     
  8. <!--#include file="class/cls_article.asp" -->                     
  9. <!--#include file="Plugins.asp" -->     

 

评论: 0 | 引用: 0 | 查看次数: -


发表评论
昵 称:
密 码:    游客发言不需要密码.
邮 箱:    支持Gravatar头像
网 址:
验证码:    点击输入框
内 容:
您一共可以输入1000个字
选 项:
不想保留信息请删除cookie
发表评论后您发表的内容自动复制到了剪贴板
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭