ZBLOG 1.4 SP1 static patches and plugin releases

Source: Internet
Author: User
Tags date auth end version

It took some time today to upgrade the Zblog to 1.4 SP1, and the static patches were upgraded to SP1 at the same time, and the plug-in mode was supported.

The change in the static patch code section changes only the c_system_event.asp and c_system_lib.asp two files, while the plugin feature provides a new addition of two files. Altogether is therefore four documents.

The use and installation of this patch is very simple, first download the Z-blog 1.4 SP1 official version, and then download Z-blog 1.4 SP1 The static version of the patch, note that this patch can only be used on this version, do not use on other versions. The two ASP files in the patch are covered in the original catalogue, and the Catbuild directory can be placed in the plugin directory.

A typical user can install a static patch using the following 3 actions:

1, download the original Z-blog 1.4 SP1.

2, download the Moon static patch 1.4 SP1. Overwrite the original file with 2 of the files. Install plugin at the same time.

3. Re-file reconstruction operation.

At this point, the Z-blog directory file should be static.

If your zblog is a modified version of your own, you can use the following actions to manually perform static modifications. The operation is more complex and is not recommended for use.

c_system_event.asp File Modification:

648 lines modified to:

Strarchives=strarchives & "<li><a href=" "& Zc_blog_host & Zc_static_directory &"/"& Year (DTMYM (i)) & "_" & Right ("&month" (DTMYM (i)), 2 & ". & Zc_static_type &" ">" & Year (DTM YM (i)) & "" & Zva_month (Month (DTMYM (i)) & "(" & objRS (0) & ")" + </a></li> "



1643-1646 Lines modified to:

S=zc_static_directory & "/" &y& "_" &right ("& (M-1), 2) &". "& Zc_static_type

T=zc_static_directory & "/" &y& "_" &right ("& (M+1), 2) &". "& Zc_static_type

If m=1 Then s=zc_static_directory & "/" & (y-1) & "_12" & "." & Zc_static_type

If m=12 Then t=zc_static_directory & "/" & (y+1) & "_01" & "." & Zc_static_type

1649 Lines modified to:

Strcalendar=strcalendar & "<p class=" "Y" "><a href=" "" &zc_blog_host &s& "" "><<</ a> <a href= "" "& Zc_blog_host &zc_static_directory &"/"&y&" _ "&right (" &m,2) & "." & zc_static_type& "" > "&y&" · " &m& "</a> <a href=" "&zc_blog_host &t&" ">>></a></p>"



Then belong to the added code section:

Add a line before 1201 lines:

Makecatrebuild

Add the following code after line 1206:

'*********************************************************

' Objective: All Category ReBuild

'*********************************************************

Function Makecatrebuild ()

Dim objpage

Dim objRS

Dim artlist

Dim Cate_id,cate_year,cate_month

' Generate catalog file start

Set objrs=objconn.execute ("Select cate_id from Blog_category order by cate_id")

While Not objrs.eof

' Get directory ID

Cate_id=cstr (objRS ("cate_id"))

' Generate a classified directory file

Set artlist=new Tarticlelist

Artlist.loadcache

Artlist.template= "CATALOG"

If Artlist.exportbycache (Request.QueryString ("page"), Cate_id,request.querystring ("auth"), Request.QueryString (" Date "), Request.QueryString (" tags "), zc_display_mode_all) Then

Artlist.build

Artlist.filename= "Cat_" & cate_id

Artlist.save

End If

Set artlist=nothing

Objrs.movenext

Wend

Objrs.close

Set objrs=nothing

' Generate category Catalog file end

' Generate date Directory file start

Set objrs=objconn.execute ("Select year (log_posttime) as Cate_year,month (Log_posttime) as Cate_month from Blog_article Group by year (Log_posttime), month (log_posttime) ")

While Not objrs.eof

' Get directory ID

Cate_year=cstr (objRS ("Cate_year"))

Cate_month=cstr (objRS ("Cate_month"))

' Generate a Date directory file

Set artlist=new Tarticlelist

Artlist.loadcache

Artlist.template= "CATALOG"

If Artlist.exportbycache (Request.QueryString ("page"), Request.QueryString ("Cate"), Request.QueryString ("auth"), Cate_year & "-" & Cate_month,request.querystring ("tags"), zc_display_mode_all) Then

Artlist.build

Artlist.filename=cate_year & "_" & Right ("&cate_month,2")

Artlist.save

End If

Set artlist=nothing

Objrs.movenext

Wend

Objrs.close

Set objrs=nothing

' Generate Date Catalog file end

Makecatrebuild=true

End Function

'*********************************************************

C_system_lib.asp Modification:

110 Lines modified to:

URL = zc_blog_host & zc_static_directory & "&" Cat_ "& ID &". "& Zc_static_type

1346 Lines modified to:

S=zc_blog_host & "Catalog.asp?" & T & "Page=1"

1365 Lines modified to:

S=zc_blog_host & "Catalog.asp?" & T & "page=" & I

1376 Lines modified to:

S=zc_blog_host & "Catalog.asp?" & T & "Page=" & Intallpage

If you do not want to manually modify, directly download the following file overlay on it.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.