网站运营
位置:首页>> 网站运营>> 去掉OBlog页面底部版权信息及图片的方法

去掉OBlog页面底部版权信息及图片的方法

  发布时间:2009-07-05 18:36:00 

标签:asp,oblog,版权

从尊重开发者劳动成果来说,不应该去掉版权信息,但版权信息真的不美观,所以可以换成适合模板的美观的版权信息。同时本方法仅供学习使用,不得用于任何违法的事情,否则后果自负。

  第一,在INC目录中找到“class_blog.asp”、“class_sys.asp ”两个文件。

  第二,在class_blog.asp中

查找:

show=show&"<div id=""powered""><a href="/blog/"http://oblog.oioj.net"" target=""_blank""><img src=http://www.xishuiw.com/info/2008-7/"/blog/"images/oblog_powered.gif"" border=""0"" alt=""Powered by Oblog."" /></a></div>"&VbCrLf&"<div id=""ad_userbot""></div></body>"&VbCrLf&"</html>"

改为

show=show&"<div id=""ad_userbot""></div></body>"&VbCrLf&"</html>"


查找:

show = show & "<div id=""powered""><a href="/blog/"http://www.oblog.cn"" target=""_blank""><img src=http://www.xishuiw.com/info/2008-7/"""&blogurl&"images/oblog_powered.gif"" border=""0"" alt=""Powered by Oblog."" /></a></div>" & vbCrLf & "</body>" & vbCrLf & "</html>"

改为:

show = show & "</body>" & vbCrLf & "</html>"


  第三,在class_sys.asp 中

查找:

User_CopyRight = CacheConfig(7) & "</div>" & "<div id=""powered""><a href="/blog/"http://www.oblog.cn"" target=""_blank""><img src=http://www.xishuiw.com/info/2008-7/""images/oblog_powered.gif"" border=""0"" alt=""Powered by "" /></a>"

改为:

User_CopyRight = CacheConfig(7)

查找:

Site_bottom = Site_bottom & "<div style=""display:block;clear: both;text-align: center;width: 100%;padding: 8;""><a href="/blog/"http://www.oblog.cn"" target=""_blank""><img src=http://www.xishuiw.com/info/2008-7/""images/oblog_powered.gif"" border=""0"" alt=""Powered by "" /></a></div>" & vbCrLf

删除它

  第四,找到OblogUserDefault31.css文件,删除其中的

#powered {
clear: both;
text-align: center;
width: 100%!important;
width: 200px;
margin:0 auto;
padding: 8;
}


  第五,找到OblogUserDefault4.css文件,删除其中的

#powered {
clear: both;
text-align: center;
width: 200px!important;
width: 100%;
margin:0 auto;
height:15px;
}

  最后将修改好的文件覆盖之前的就可以了!

0
投稿

猜你喜欢

手机版 网站运营 asp之家 www.aspxhome.com