Home  >  Article  >  CMS Tutorial  >  How to call comments in phpcms

How to call comments in phpcms

藏色散人
藏色散人Original
2020-01-08 10:58:162851browse

How to call comments in phpcms

How to call comments in phpcms?

comment contains the comment template file;

To call the comment module, you can go to the content folder and find the show.html file. This is the content page template for the message you send. , and doesn’t this file come with a comment module? Now that it is confirmed that the calling code of the comment module is in this file, next...you will find it after a closer look. The comment call is as follows. You can test it yourself

{if $allow_comment && module_exists('comment')}
<iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>

Many calling codes in the system are already written there. , look more at those files and you will find what you want

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of How to call comments in phpcms. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn