• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Embed Like in a Post?

Veer

Well-known member
#1
Hello

Is it possible in any way to embed Like link in a post? and work the same way (ajax) as it does in its own position.

Thanks
 

Jake Bunce

XenForo moderator
Staff member
#2
As in a "like" link for another post? It requires HTML in your post which isn't supported. But you can install this addon to allow HTML:

http://xenforo.com/community/resources/parsehtml-permission-protected-html-bbcode.119/

Then you can enter this code into a post to setup a "like" link to another post:

Code:
<a href="posts/249/like" class="LikeLink item control like" data-container="#likes-post-249"><span></span><span class="LikeLabel">Like</span></a>
AJAX will work here, but the like/unlike text won't update correctly on refresh.