When the comment is empty, no comment will be displayed and the method to protect the zblog topic

web front end seven thousand and forty-two 12 years ago (2012-12-04)

zblog ASP Comment Title Code:

 <script type="text/javascript">if(<#article/commnums#>==0){document.write("No comment")}else{if(<#article/commnums#>==1){document.write("1 Comment")}else{document.write("<#article/commnums#> Comments")}};</ script>

This code is used to display no comments when the article has no comments, and N comments when the number of comments is N. Of course, it can also be used flexibly. When the comment is empty, "No Comments" will be displayed, and when there are comments, "Latest Comments" will be displayed.

 <script type="text/javascript">if (<# article/commnums #>==0) {document. write ("no comment")} else {document. write ("latest comment")}</ script>


How to do well theme Protect against theft?


Method 1:

Change the file extension under the theme template folder from“ html ”Change to“ asp ”, just rebuild the file.


Method 2:

Log in FTP to rename the theme template directory, for example“ toyean-theme ", and then modify the zb_users in the root directory in the background file management/ c_option.asp , find ZC_TEMPLATE_DIRECTORY=“ TEMPLATE ", replace the" TEMPLATE Change to toyean-theme ", just rebuild the file.


The above two methods can effectively protect ZBlog topics from theft.