Closed KridKon closed 2 months ago
For integration you can read the VK docs
Open your theme layout.html.php
and add below:
<!-- Put this script tag to the <head> of your page -->
<script type="text/javascript" src="https://vk.com/js/api/openapi.js?168"></script>
<script type="text/javascript">
VK.init({ apiId: 0, onlyWidgets: true });
</script>
Open post.html.php, add:
<!-- Put this div tag to the place, where the Comments block will be -->
<div id="vk_comments"></div>
<script type="text/javascript">
VK.Widgets.Comments("vk_comments", {limit: 10, attach: "*", pageUrl: <?php echo $post->url;?>});
</script>
Thank you very much
I will close this one. Thanks
Please integrate the comments Vk.com. I really liked your CMS, help me integrate VKontakte comments