How to put vote addon inside Extended Comment.
I have try to put it, but it always show an error: ERROR: Tag "form" - Page not found
Extended Comment Template named article-comment.php:
Here is my vote code in comment list:
The comment are fine and its also duplicating the comment at the extended comment template, but the vote isn't voting up.
Am i doing anything wrong?
Thankyou.
I have try to put it, but it always show an error: ERROR: Tag "form" - Page not found
Extended Comment Template named article-comment.php:
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template title='Article Comments' clonable='1' hidden='1' order='199'>
<cms:editable type='vote_updown' search_type='decimal' name='comment_vote' label='Vote Comment' order='199'/>
</cms:template>
<?php COUCH::invoke(); ?>
Here is my vote code in comment list:
- Code: Select all
<cms:form
masterpage='article-comment.php'
mode='edit'
page_id=k_page_id
anchor='0'
method='post'
>
<cms:if k_success>
<cms:db_persist_form
comment_vote=frm_vote
/>
<cms:redirect k_page_link />
</cms:if>
<span style="display: none"><cms:input type='radio' name='vote' opt_values='Up=1' /></span>
<a href="javascript:;" onclick="parentNode.submit();" class="sh-section__btn-upvote sh-btn-icon sh-section__btn-like" type="submit" name="submit"><i class="icon-Upvote"></i> <span><cms:show_votes 'comment_vote' ><cms:show count_up/></cms:show_votes></span></a>
</cms:form>
The comment are fine and its also duplicating the comment at the extended comment template, but the vote isn't voting up.
Am i doing anything wrong?
Thankyou.