I know that. But the visual picture does not come out at first. when I use the debug functionView page source and search for og:image
Social networks will usually select the first one.
og: image code does not appear when I examine the source codeLink to thread on your forum?
I do not want to use the plugin. Why do not producers help?
thread_view
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$fpSnippet}"
arg-shareUrl="{{ link('canonical:threads', $thread) }}"
arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />
<xf:if is="{$thread.FirstPost.Attachments.first().thumbnail_url}">
<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="{{ link('canonical:attachments', $thread.FirstPost.Attachments.first()) }}" />
<xf:else/>
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$fpSnippet}"
arg-shareUrl="{{ link('canonical:threads', $thread) }}"
arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />
</xf:if>
<xf:page option="ldJsonHtml">
<xf:if is="$thread.User.avatar_highdpi">
<xf:set var="$image">{$thread.User.getAvatarUrl('h', null, true)}</xf:set>
<xf:elseif is="$thread.User.avatar_date" />
<xf:set var="$image">{$thread.User.getAvatarUrl('l', null, true)}</xf:set>
<xf:elseif is="property('publicMetadataLogoUrl')" />
<xf:set var="$image">{{ base_url(property('publicMetadataLogoUrl'), true) }}</xf:set>
</xf:if>
<xf:if is="$image">
<xf:if is="{$thread.FirstPost.Attachments.first().thumbnail_url}">
"image": "{{ link('canonical:attachments', $thread.FirstPost.Attachments.first()) }}",
<xf:else/>
<xf:if is="$thread.User">
"image": "{{ (($thread.User.avatar_highdpi
? $thread.User.getAvatarUrl('h', null, true)
: $thread.User.getAvatarUrl('l', null, true))
?: base_url(property('publicMetadataLogoUrl'), true))|escape('json') }}",
</xf:if>
</xf:if>
Any updated Emre?I did. I will share soon.
Preparing.
We use essential cookies to make this site work, and optional cookies to enhance your experience.