Hello All!
I am working with the Voting AddOn.
I want to only upvote (i.e. Like).
So the following code:
And to hide the Radio button and submit without button:
Issue is:
I have a DBF in the footer too (embedded as footer.html). So I get the error multiple "k_nonce".
When I try to submit the vote (using above code) i get the error
Except for the Rest of the code is as explained above i have followed the tutorial at: viewtopic.php?f=5&t=8133
I am working with the Voting AddOn.
I want to only upvote (i.e. Like).
So the following code:
- Code: Select all
<cms:form class="detail-banner-btn" masterpage='listing-detail.php' mode='edit' page_id="<cms:show k_page_id />" anchor='0' method='post'>
<cms:if k_success>
<cms:db_persist_form
my_vote=frm_vote
/>
<cms:redirect k_page_link />
</cms:if>
<label>
<cms:hide><cms:input type='radio' name='vote' /></cms:hide>
<input type='radio' name='f_vote' value='1' />
<a>
<i class="fa fa-thumbs-o-up"></i> Like
</a>
</label>
<!-- <input type="submit" name="submit" value="Vote"/> -->
</cms:form>
And to hide the Radio button and submit without button:
- Code: Select all
<script type="text/javascript">
$('input[type=radio]').hide();
$(document).ready(function() {
// make following action fire when radio button changes
$('input[type=radio]').change(function(){
// find the submit button and click it on the previous action
$('input[type=submit]').click()
});
});
</script>
Issue is:
I have a DBF in the footer too (embedded as footer.html). So I get the error multiple "k_nonce".
When I try to submit the vote (using above code) i get the error
ERROR: Tag "form" - page_id required
Except for the Rest of the code is as explained above i have followed the tutorial at: viewtopic.php?f=5&t=8133