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<> ;'')