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

Нет прав для скачивания
  • Автор Автор axtona
  • Дата создания Дата создания
XF Compatibility
  1. 2.2.x
Short Description
Get the place to high speed external link Скачать and Discuss [JoyFreak] Set Open Graph Image 2022-11-24. Now Current version with Внешний URL для скачивания. There are store on a third-party network disk platform. From The Content have 240 Просмотры on NullPro Community .
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:
Код:
<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:
Код:
arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />


Add below:
Код:
</xf:if>


Save.

Example at Gaming Forum
Автор
axtona
Просмотры
240
Первый выпуск
Обновление
Рейтинги 0,00 звёзд Оценок: 0
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.

Ещё ресурсы от axtona

A
an advanced WordPress timeline plugin that showcases your life history timeline
Просмотры
420
Обновлено
A
A simple template modification that turns node icons to clickable links.
A
The plugin allows you to create a "Quick Tag User" button in forum topics.