Solution to cos-html-cache plug-in comments

Source: Internet
Author: User

After using the static page plug-in cos-html-cache generated by wordpress, after each article is commented, the information of the previous reviewer is always displayed, including the information displayed when the cookie is cleared: welcome to XXX again. If the cookie is not cleared, click the name and the input box to directly display the name and email address of the previous reviewer. Once the cookie is cleared, only welcome to XXX again rather than the name and email boxes are displayed, after clicking the name, each input box has no value. In desperation, I deleted several js files. I hope this method can help you.
Find comments. php, the Comment file under wp-contenthemes, and find the display: Welcome to the div layer again, and delete it directly. I will delete the following. You can check your code.
<! -Start with visitor 1->
<? Php if ($ comment_author! = ""):?>
<Script type = "text/javascript"> function setStyleDisplay (id, status) {document. getElementById (id). style. display = status ;}</script>
<Div>
<? Php printf (_ ('Welcome to visit again <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 the change </a> </span>
</Div>
<? Php endif;?>
<! -End of visitor 1->
There is also the following section:
<! -Guest 2 start->
<? Php if ($ comment_author! = ""):?>
<Script type = "text/javascript"> setStyleDisplay ('hide _ author_info ', none'); setStyleDisplay ('author _ info', none'); </script>
<? Php endif;?>
<! -End of visitor 2->
OK. Just solve the problem and go to bed.

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.