Z-blog Common Skills Summary

Source: Internet
Author: User

Here are some common tips for collecting z-blog, for lovers to customize their blogs.

        
    •   High-Performance Log search

Use: Search is very consuming system resources of the action, and for multiple keyword search and fuzzy search, processing is also very troublesome, here provides a very efficient and practical search method, is to use Google's site search technology, when your log by Google indexed most of the time, This search method is particularly effective. This method is not recommended for new stations or low levels of Google Web pages.

Method:

Modify the Search.asp file, backup the original file, and create a new Search.asp file with the following contents:

Response.Redirect http://www.google.com/search?q= "&request.querystring (" Q ") &" &domains= Www.youdomain.com&sitesearch=www.youdomain.com

        
    •   to automatically convert the @ to [at] in the email address

Use: The e-mail address of the user will automatically convert the @ sign to [at], which can effectively prevent the mail address is collected.

Method:

Modify C_system_lib file Strc=replace (strc, "< #article/comment/email#>", Strc_email)

Amended to

Strc=replace (STRC, "< #article/comment/email#>", Replace (Strc_email, "@", "[at]")

        
    •   Start Comment Confirmation code feature

Purpose: To prevent spammers from sending spam messages through the program.

Method:

Modify the c_option.asp to zc_comment_verify_enable=false the const

Modified to const ZC_COMMENT_VERIFY_ENABLE=TRUE

        
    •   Increase Access Statistics function

Use: The first page shows a total number of visits, you need to add the article statistics plug-ins.

Method:

Modify C_system_event.asp, looking for: Strstatistics=strstatistics & "<li>" & zc_msg125 & ":" & objRS (" Alltrackbacknums ") &" </li> "

Add a row after it:

Strstatistics=strstatistics & "<li>" & zc_msg129 & ":" & objRS ("Allviewnums") & "</li>"

        
    •   Increase the direct deletion comment function of the log page

Use: In the log page you can delete comments directly without the need to enter the Admin interface to delete.

Method:

Open the b_article_comment.html file in the template directory

Add a line <a href= "... /cmd.asp?act=commentdel&id=< #article/comment/id#>&log_id=< #article/id#> "rel=" nofollow "> Delete Message </a>

        
    •   Cannot rebuild files after pasting a record in a blog_comment table

Execute the following SQL statement in the database to fix the error:

Update blog_comment set comm_homepage= "where comm_id not in" Select comm_id from Blog_comment where Comm_homepage<> ;'')



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.