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!