Posts Tagged ‘PJBlog’

【PJBlog – Skins】白春绿


25 五

今天CW让我帮他把网站鼓捣好看点,因为都是用PJBlog,只要装上不同Skin就好随自己喜好切换风格了。于是建议他去PJBlog官方论坛的皮肤专版去淘皮…米想到这家伙忒懒列,还是让俺帮他挑。米办法,自家兄弟:(.挑吧··开始

还别说,刚把论坛排序方式改成按回复数倒排,就看中了排第一的FatMouse做的一张皮“白春绿”。(原帖:http://bbs.pjhome.net/forumdisplay.php?fid=27&filter=0&orderby=replies&ascdesc=DESC)问题是,FatMouse提供的下载地址已经失效,跑到他的个人网站找,皮的发布贴是有,只是已经不再提供下载列,也谢绝索取。米办法,只能晚上回来自己在FatMouse的网站上拉皮下来列…先Down CSS,然后是用到的几张背景图…Ubb编辑器么通用,无视··



弄好以后再改Logo图片,改完自己的再套成CW的。差不多就这样列,间中还改掉了CSS的两处小Bug…日志归档方式也参照FatMouse网站上的样式改了程序代码…半夜还动脑子想程序流程,晕啊…

现在就传上来提供下载吧:下载文件 点击下载此文件

PS:等俺回去CW记得请俺吃大餐哈^_^,就到科大后面烧烤··瓦咔咔…大块吃肉大口喝酒

PJBlog修改备忘


25 五

使用PJblog这么长时间以来一直小改不断,大改也时而发生。今天换皮的时候突然想到,要是PJblog更换新版本,也许布局也会有调整,那么皮肤自然也要重新调整才能用列。而之前改动的一些代码自然升级覆盖之后无法保留,更谈不上正常使用列,于是乎觉得还是暂且把自己修改好的地方做点笔录,对日后更新版本再做修改做好准备。

修改内容如下:

1.日志归档代码
修改涉及页面:common/cache.asp
将如下代码红色字及中间内容

程序代码 程序代码

'—————–读取日志归档缓存——————–
    if action<>2 then
            Dim archive_item_Len,Month_array
            if ubound(blog_archive,1)=0 then archive="":exit function
            Month_array=Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月")
            archive_item_Len=ubound(blog_archive,2)
            For i=0 to archive_item_Len
                archive=archive&"<a class=""sideA"" href=""default.asp?log_Year="&blog_archive(1,i)&"&log_Month="&blog_archive(2,i)&""" title=""查看当前日期的日志"">"&blog_archive(1,i)&"年"&Month_array(blog_archive(2,i)-1)&" ["&blog_archive(0,i)&"]</a>"
            Next
    end if
end function
'=====================End Function========================



替换为:

程序代码 程序代码

if action<>2 then
Dim archive_item_Len,Month_array,TempYear,MonthCounter
if ubound(blog_archive,1)=0 then archive="":exit function
Month_array=Array("01月","02月","03月","04月","05月","06月","07月","08月","09月","10月","11月","12月")
archive_item_Len=ubound(blog_archive,2)
TempYear=blog_archive(1,0)
MonthCounter=0
For i=0 to archive_item_Len
IF i=0 Then archive="<a class=""sideA"" style=""margin:0px 0px 0px -2px;"" href=""default.asp?log_Year="&blog_archive(1,i)&""" title=""查看"&blog_archive(1,i)&"年的日志"">"&blog_archive(1,i)&"</a>"
IF blog_archive(1,i)=TempYear Then
archive=archive&"<a style=""margin-right:3px;"" href=""default.asp?log_Year="&blog_archive(1,i)&"&log_Month="&blog_archive(2,i)&""" title="""&blog_archive(1,i)&"年"&blog_archive(2,i)&"月有"&blog_archive(0,i)&"篇日志"">"&Month_array(blog_archive(2,i)-1)&"</a>"
MonthCounter=MonthCounter+1
IF MonthCounter=5 Then MonthCounter=0:archive=archive&"<br/>"
Else
MonthCounter=1
archive=archive&"<a class=""sideA"" style=""margin:6px 0px 0px -2px;"" href=""default.asp?log_Year="&blog_archive(1,i)&""" title=""查看"&blog_archive(1,i)&"年的日志"">"&blog_archive(1,i)&"</a>"
archive=archive&"<a style=""margin-right:3px;"" href=""default.asp?log_Year="&blog_archive(1,i)&"&log_Month="&blog_archive(2,i)&""" title="""&blog_archive(1,i)&"年"&blog_archive(2,i)&"月有"&blog_archive(0,i)&"篇日志"">"&Month_array(blog_archive(2,i)-1)&"</a>"
TempYear=blog_archive(1,i)
End IF
Next
end if



此外为了使月份能够按顺序输出还需要将该函数前面的“写入日志归档缓存”中的“Month([log_PostTime]) Desc”改为“Month([log_PostTime]) ASC”。
OK,最后再到后台管理中重建数据缓存就一切搞定了。
PS:某些皮肤的侧边较窄,如果发生撑破侧边栏的话,可将代码中的“MonthCounter=6”的数字改小,或者改动margin-right:3px; 。

——————————————————-

2.Google广告代码的添加
涉及页面:class/cls_default.asp,class/cls_article.asp及后台管理中添加Google Ad侧边栏
修改内容详见页面…

——————————————————-

3.Statistics侧边栏内容个性化
后台管理模块中修改…

——————————————————-

4.blog底部部分信息隐藏
涉及页面:foot.asp
修改内容详见页面…

——————————————————-

5.验证码自动填写
涉及页面:foot.asp,getcode.asp

——————————————————-

6.原Support侧边模块,改名为Subscibe
后台管理模块编辑处修改
替换images目录下,rss2.png,atom.png两个图片

——————————————————-

暂时就想到以上这些,以后继续改动或者临时想起来改动过的内容再慢慢添加好咧。现在得睡觉列~

VHUGES

We Are Hugo & Jessie's Family