Đoàn Hoàng Nam
Active member
How can I create a like button in Thread List that when I click on it => I like that thread's first post?
I would be like this
I tried this code but it didn't working
It says there's an error
Sorry for my bad English
I would be like this
I tried this code but it didn't working
Code:
<xen:if is="{$thread.canLike}">
<a href="{xen:link posts/like, $thread}" class="LikeLink item control {xen:if $thread.like_date, unlike, like}" data-container="#likes-post-{$thread.post_id}"><span></span><span class="LikeLabel">{xen:if $thread.like_date, {xen:phrase unlike}, {xen:phrase like}}</span></a>
</xen:if>
It says there's an error
Sorry for my bad English