if($attachment->has_thumbnail)
else
{
$imageUrl = \XF::app()->router()->buildLink('full:attachments', $attachment);
}
Yes, attachments must be pictures for og:imageAnother question, please:
Code:if($attachment->has_thumbnail)
Are there attachments without thumbnails?
Then we have to add something like
Code:else { $imageUrl = \XF::app()->router()->buildLink('full:attachments', $attachment); }
Oh! Ok, maybe every picture has a thumb, but not every attachment is a picture?
I clearly don't have the time right now, so I'll see about doing it next weekendDo you have any time planned for the next update, please?
foreach($attachments as $attachment)
Why would it be exacuted 10 times?If we have ten attachments, we run this ten times, right?
I have just redone some tests and in fact it works very well the robo have access to the attachment.There is indeed a problem for og:image as guests can't see thread attachments, so the default image of the og:image is used. We need to set up a system and say that if there is an attachment and this attachment is used for the meta og:image twitter:image then this attachment must be available for guests.
Hello, we'll have a look when updating our add-on to XF 2.3I have managed to have an jpg on the server and add the URL to the seo-fields.
In the header of a thread I have og-image and twitter-image with the same url to the picture on the server.
When I add a new item to facebook the picture is fetched, very nice!
But if i do the same with twitter (i tried all three cards, summery ...) there is nothing, I have to upload the picture by hand.
Do you have any idea, why twitter does not "eat" my picture?
If i use:https://www.opengraph.xyz for a test, all pictures are there from a url of a thread.
What could be the reason that twitter does not add my picture? Change any options in twitter?
Use a paid instead a free account?
Can you pass me the link to the page that shouldn't be indexed, but is.I have no indexed a thread, however it still seems to appear in the site index. Is this expected? I'm sure that noidexed pages should not appear in the site index.
Hello,
Can you pass me the link to the page that shouldn't be indexed, but is.
Regards, CRUEL-MODZ
We use essential cookies to make this site work, and optional cookies to enhance your experience.