- Compatible XF 2.x versions
-
- 2.2
This guide will help you to set your forum's open graph image. It will use the first image in your thread, whether linked directly or attached.
Open template: thread_view
Find:
Add below:
Open template: thread_view
Find:
Code:
<xf:set var="$fpSnippet" value="{{ snippet($firstPost.message, 0, {'stripBbCode': true}) }}" />
Add below:
Code:
<xf:if is="$thread.cover_image">...
You do not have permission to view the full content of this resource.
Log in or register now.