In some posts, users don't insert attachment images to post content. So could you also handle this case?
Do you mean situations when users upload an image but they don't actually insert the image into the post message?
In some posts, users don't insert attachment images to post content. So could you also handle this case?
Do you mean situations when users upload an image but they don't actually insert the image into the post message?
Yes!
will cache your default og:image if there is no image in you subjectIn some posts, users don't insert attachment images to post content. So could you also handle this case?
<meta property="og:image" content="http://forum.movsa.org.au/data/avatars/m/0/108.jpg?1381669565" />
<meta property="og:image" content="http://www.movsa.org.au/images/movsa/Vietnamese%20Traditional%20Costume%20Day%202012.jpg" />
I modified the template modification simply reversing the order of the two og:image.I too desperately want a fix for this problem.
<xen:if is="{$xenOptions.facebookAppId} OR {$xenOptions.facebookAdmins}">
<meta property="og:site_name" content="{$xenOptions.boardTitle}" />
- <xen:if is="{$avatar}"><meta property="og:image" content="{$avatar}" /></xen:if>
+ <meta property="og:image" content="<xen:callback class="OpenGraphImage_Callback" method="getImage" params="">{xen:helper fullurl, {xen:property ogLogoPath}, 1}</xen:callback>" />
+ <meta property="og:image" content="{xen:helper fullurl, {xen:property ogLogoPath}, 1}" />
+ <xen:if is="{$avatar}"><meta property="og:image" content="{$avatar}" /></xen:if>
<meta property="og:type" content="{xen:if $ogType, $ogType, article}" />
<meta property="og:url" content="{xen:raw $url}" />
<meta property="og:title" content="{xen:raw $title}" />
<xen:if is="{$description}"><meta property="og:description" content="{xen:raw $description}" /></xen:if>
{xen:raw $ogExtraHtml}
<xen:if is="{$xenOptions.facebookAppId}"><meta property="fb:app_id" content="{$xenOptions.facebookAppId}" /></xen:if>
<xen:if is="{$xenOptions.facebookAdmins}"><meta property="fb:admins" content="{xen:helper implode, {$xenOptions.facebookAdmins}, ','}" /></xen:if>
</xen:if>
<xen:if is="{$avatar}"><meta property="og:image" content="{$avatar}" /></xen:if>
<meta property="og:image" content="{xen:helper fullurl, @ogLogoPath, 1}" />
<meta property="og:image" content="<xen:callback class="OpenGraphImage_Callback" method="getImage" params="">{xen:helper fullurl, @ogLogoPath, 1}</xen:callback>" />
<meta property="og:image" content="{xen:helper fullurl, @ogLogoPath, 1}" />
<xen:if is="{$avatar}"><meta property="og:image" content="{$avatar}" /></xen:if>
That is certainly possible and even quite useful. I'm going to find some free time and implement something like this.Please @JulianD is it possible to add more og:image tags? At least the first 4/5 images found.
Same question from me. Im using xf 1.4Hi I have been looking for something like this. Is it still working with 1.4?
I'm using it on my 1.4 forum. Go ahead and try it for yourself. If you have any problem, let me know.Same question from me. Im using xf 1.4
We use essential cookies to make this site work, and optional cookies to enhance your experience.