Cos-html-cache Plugin Post Comment error resolution

Source: Internet
Author: User
Tags comments cos
After using WordPress's generate static page plugin Cos-html-cache, each article comments, always displays the previous reviewer's information.

After using WordPress's generate static page plugin Cos-html-cache, after each article comments, always show the previous reviewer's information, including cleaning cookies in the case also shows: Welcome to visit XXX again. If you do not clean cookies, click on the name after the input box directly display the name of the previous reviewer and the mailbox, once the cookie cleaning, the above only show welcome to XXX, but do not display names and mailboxes and other input boxes, click on the name, each input box has no value. Helpless under, just put a few JS file deleted, hope this method can help you.
Find the comment file below Wp-content\themes comments.php, find that display: Welcome again to visit the DIV layer, directly deleted, I delete these below, you see your code.
<!– Visitors 1 Start –>
<?php if ($comment _author!= ""):?>
<script type= "Text/javascript" >function setstyledisplay (ID, status) {document.getElementById (ID). Style.display = status;} </script>
<div>
<?php printf (' Welcome again to <strong>%s</strong>. '), $comment _author)?>
<span id= "Show_author_info" ><a href= "Javascript:setstyledisplay" (' Author_info ', "); SetStyleDisplay (' Show_ Author_info ', ' none '); Setstyledisplay (' Hide_author_info ', ");" > Change user name </a></span>
<span id= "Hide_author_info" ><a href= "Javascript:setstyledisplay" (' Author_info ', ' none '); SetStyleDisplay (' Show_author_info ', '); Setstyledisplay (' Hide_author_info ', ' none '); > Cancel Change </a></span>
</div>
<?php endif;?>
<!– Visitor 1 End –>
There is also the following paragraph:
<!– Visitors 2 Start –>
<?php if ($comment _author!= ""):?>
<script type= "Text/javascript" >setstyledisplay (' hide_author_info ', ' none '); Setstyledisplay (' Author_info ', ' None ');</script>
<?php endif;?>
<!– Visitor 2 End –>
OK, just fix the problem and go to bed.
This article Sky (www.zzjs.net) original editor, please observe the industry rules, reprint reserved copyright.



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.