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

Images for things such as the "Like" button on a per forum basis?

Discussion in 'XenForo Pre-Sales Questions' started by Dean, Aug 25, 2010.

  1. Dean

    Dean Well-Known Member

    It seems xf.com has the ability to have a forum sorted by the number of Likes for the first post, which is awesome.

    Assuming that will be the way stock software works, would it be possible to add an image or otherwise make the Like button more prominent (bold? larger font?) for my own suggestion forum? On our own site? While keeping the default 'Like' in the other forums.

    It is probably a bizarre question. The idea is to encourage more Likes in our suggestion forum.
  2. Brandon_R

    Brandon_R Guest

    Im pretty sure it can be done in the templates system with a nice if condition and some css changes.
  3. ---MAD---

    ---MAD--- Well-Known Member

    Can't imagine this being difficult at all.
  4. Kier

    Kier XenForo Developer Staff Member

    Assuming you want to target forum id 42 with the image:

    <a href="{xen:link posts/like, $post}" class="LikeLink">
    	<xen:if is="{$forum.forum_id} == 42">
    		<img src="my_like_image.png" alt="I like this!" />
    	<xen:else />
    Onimua and Abomination like this.
  5. Kier

    Kier XenForo Developer Staff Member

    Or even

    <a href="{xen:link posts/like, $post}"
    	class="LikeLink {xen:if '{$forum.forum_id} == 42, 'MyLikeSprite'}">Like</a>
    ked38, Onimua and Abomination like this.

Share This Page