Simple instruction of JComments integration into YOOtheme Zoo
1. Download attached files
2. Extract
com_zoo.plugin.zip and put
com_zoo.plugin.php to folder: /components/com_jcomments/plugins/
3. Extract all files from
elements.zip to folder /administrator/components/com_zoo/elements/
4. Open your Zoo template (/components/com_zoo/templates/
your_template_name/item.php) and insert in block <div class="item"> following code (if ommited):
<?php if (isset($elements['comments'])) : ?>
<div id="comments" class="comments"><?php echo $elements['comments']->render(ZOO_VIEW_ITEM); ?></div>
<?php endif; ?>
For example in /components/com_zoo/templates/
article/item.php this looks like:
<div class="item">
. . . . .
<?php if (isset($elements['comments'])) : ?>
<div id="comments" class="comments"><?php echo $elements['comments']->render(ZOO_VIEW_ITEM); ?></div>
<?php endif; ?>
</div>
5. Go to administration panel -> Zoo -> Types, select your type and press Edit. Then add JComments element and configure fields:
-
Name - comments
-
Label - JComments
-
Description -
-
Display - On item view
And save changes