1. 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?

Discussion in 'XenForo Questions and Support' started by Veer, Jul 4, 2012.

  1. Veer

    Veer Well-Known Member


    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.

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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:


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

    <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.
    Veer likes this.
  3. Veer

    Veer Well-Known Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page