Modify the time before the title of the Zblog list plug-in's article ranking call

Source: Internet
Author: User

I recently modified a zblog template and found that the time before calling zblog articles exists, which looks strange and uncomfortable. So I searched the internet to find out how to remove the time before zblog's latest publication, I found several items which are not the places I want to modify. What I want to modify is: The bus flying list plug-in (Article ranking), the time before the article title (I am talking about the time displayed in the source code, not on the web page ).

1. You only need to modify the time when the webpage is viewed. There are two ways to remove the page:

1. Find the c_system_base.asp file under the FUNCTION folder under the root directory of the website, use NotePad to edit and find Day (objArticle. PostTime), 2), and locate it to see the following code:

If (Not objRS.bof) And (Not objRS.eof) Then For i= 1 to ZC_PREVIOUS_COUNT Set objArticle=New TArticle If objArticle.LoadInfoByID(objRS( "log_ID" )) Then strPrevious=strPrevious & "<li><a href=" "" & objArticle.Url & "" " title=" "" & objArticle.HtmlTitle & "" "><span class=" "article-date" ">[" & Right( "0" & Month(objArticle.PostTime), 2 ) & "/" & Right( "0" & Day(objArticle.PostTime), 2 ) & "]</span>" & objArticle.Title & "</a></li>" End If Set objArticle=Nothing objRS.MoveNext If objRS.eof Then Exit For

Set ["& Right (" 0 "& Month (objArticle. postTime), 2) & "/" & Right ("0" & Day (objArticle. postTime), 2) & "] Delete, save, upload, overwrite, and recreate the image in the background.

2. Find the CSS file under the personal theme template, Add. article-date {display: none;} in the CSS code, and then save the upload to overwrite the source file.

This modification removes the time effect on the page.

  

 

This is before modification.

  

 

This is the modified effect.

2. The list plug-in for bus flying is installed. When the article is called, move the mouse over the article title and you will see the displayed time. See the format in the source code (generation time + Article name)

For example:

 

1 <li><a href="http://www.xxxx.com/post/8.html" title="[12:45:41] Introduction to the working principle of the nasal cleanser"> Introduction to the working principle of the nasal cleanser </a> </li>

 

After modification, the title time is removed as follows:

 

1 <li><a href="http://www.xxxx.com/post/8.html" title="Introduction to the working principle of nasal cleanser"> Introduction to the working principle of the nasal cleanser </a> </li>

 

The specific modification is as follows:

Find the list plug-in called by the bus flying article, and find the include. asp file of PLUGIN/busfly_randomsort/Under the root directory of the website.

Use NotePad to find Not B _objRS.eof and locate the following code:

If (Not B _objRS.bof) And (Not B _objRS.eof) Then
For I = 1 to out_count
Set busfly_randomsort_objArticle = New TArticle
If busfly_randomsort_objArticle.LoadInfoByID (B _objRS ("log_ID") Then
StrOut = strOut & "<li> <a href =" & Strong & "title =" "[" & Strong & "]" & busfly_randomsort_strReplace (strong, busfly_randomsort_chReplace) & ">" & busfly_randomsort_cutTitle (busfly_randomsort_objArticle.Title, busfly_randomsort_INTCUTLEN) & "</a> </li>"
End If
Set busfly_randomsort_objArticle = Nothing
B _objRS.MoveNext
If B _objRS.eof Then Exit

From the code above, we can see that the code that affects the display of Chinese time is ["& busfly_randomsort_objArticle.PostTime &"] to delete this code, save it, upload it, overwrite it, And then recreate it.

Do not delete the error. For the convenience of modification, I will directly replace the Code with the delete number. You can copy the following code to overwrite the above Code. (It is mainly about quotation marks and spaces. It is only possible after a few retries)

If (Not B _objRS.bof) And (Not B _objRS.eof) Then
For I = 1 to out_count
Set busfly_randomsort_objArticle = New TArticle
If busfly_randomsort_objArticle.LoadInfoByID (B _objRS ("log_ID") Then
StrOut = strOut & "<li> <a href =" & Strong & "" title = "& busfly_randomsort_strReplace (busfly_randomsort_objArticle.Title, busfly_randomsort_chReplace) & ">" & busfly_randomsort_cutTitle (busfly_randomsort_objArticle.Title, busfly_randomsort_INTCUTLEN) & "</a> </li>"
End If
Set busfly_randomsort_objArticle = Nothing
B _objRS.MoveNext
If B _objRS.eof Then Exit

After the modification, the page looks as unchanged as before, and the time hiding in the source code is removed.

One cainiao, not well written.

This article by the nasal cleanser blog http://www.eduotao.com

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.