• 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?

Dean

Well-known member
#1
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.
 

Kier

XenForo Developer
Staff member
#4
Assuming you want to target forum id 42 with the image:

HTML:
<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 />
		Like
	</xen:if>
</a>