[JoyFreak] Set Open Graph Image

[JoyFreak] Set Open Graph Image 2022-11-24

No permission to download
XF Compatibility
  1. 2.2.x
Short Description
Download and Discuss Premium, Business [JoyFreak] Set Open Graph Image 2022-11-24 version with External download URL on Premium Content Best Download Discussion Community. There are store on a third-party network disk platform. From [JoyFreak] Set Open Graph Image have 231 Views.
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:
Code:
<xf:set var="$fpSnippet" value="{{ snippet($firstPost.message, 0, {'stripBbCode': true}) }}" />


Add below:

HTML:
<xf:if is="$thread.cover_image">
<xf:macro template="metadata_macros" name="metadata"
    arg-description="{$fpSnippet}"
    arg-shareUrl="{{ link('canonical:threads', $thread) }}"
    arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}"
    arg-imageUrl="{$thread.cover_image}" />
<xf:else/>


Find:
Code:
arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />


Add below:
Code:
</xf:if>


Save.

Example at Gaming Forum
Author
axtona
Views
231
First release
Last update
Ratings 0.00 star(s) 0 ratings
Link was Broken? Please  Send Message to NP Team with direct message, You will get it very quickly!
Support Developer If you are satisfied with your test or project have earn money successfully, Maybe you can click more information button to support with buying.

More resources from axtona

[cv6] Letter Index A
[cv6] Letter Index 1.1.0 RC 3
This AddOn adds a lettered TabIndex to selected forums.
[cv6] Core A
[cv6] Core 1.2.0 RC 3
Core AddOn which from now on, (nearly) all my AddOns will require.
Archive Threads A
Allows users to archive (move) their own threads to a predefined different forum.
Top