Jump to content

OG Image for Forum Topics (Support Topic)


opentype

Recommended Posts

4 hours ago, xtech said:

This is a great plugin.

I am starting a new community and i am thinking on buying it. My question is: most of the times people just paste a link to an image, would it be possible to do like this pseudocode (i believe it's better than explaining in words):

There are no plans for this for various reasons. (Performance issues, work required … and the fact that linked images are also often GIFs, emoji and so on, while if you go through the trouble of actually uploading an attachment, it’s much more likely a proper “topic image”.)

Link to comment
Share on other sites

  • 6 months later...

Hello. I bought but it doesn't work for me. In my case og:image is always the same (defined in Admin Panel of forum). 

Please look at example with attachment: https://www.xperiasite.pl/topic/38680-czy-xperia-1-iii-pojawi-się-jeszcze-w-tym-miesiącu/

Is it possible to overwrite default image? I can make changes in theme code to force your plugin to work but need some tips. 

 

Link to comment
Share on other sites

7 hours ago, juggler_pl said:

Привет. Купил, но у меня не работает. В моем случае og: image всегда одно и то же (определяется в админпанели форума). 

Посмотрите пример с приложением:  https://www.xperiasite.pl/topic/38680-czy-xperia-1-iii-pojawi-się-jeszcze-w-tym-miesiącu/

Можно ли перезаписать изображение по умолчанию? Я могу внести изменения в код темы, чтобы заставить ваш плагин работать, но мне нужны советы. 

 

 

Link to comment
Share on other sites

9 hours ago, juggler_pl said:

Hello. I bought but it doesn't work for me. In my case og:image is always the same (defined in Admin Panel of forum). 

Please look at example with attachment: https://www.xperiasite.pl/topic/38680-czy-xperia-1-iii-pojawi-się-jeszcze-w-tym-miesiącu/

It seams to be a problem of your default theme. I switched to “dark” and then the OG:image is set correctly. 

 

As an explanation: Theme hooks need be attached to a certain HTML code. In the specific case it’s:

<div class="ipsClearfix">

… in the topic template, called via:

#elClubContainer > div.ipsClearfix

But if your theme designer changed or removed that code, then the hook will not be executed. 
You might pass on this information to your theme designer and maybe he adds that code back for you. 

Link to comment
Share on other sites

Thanks a lot for your reply. I cleared cached via support in AP and now is ok - for new topics 🙂

Could you confirm or not that your plugin works only with new created topic? Topics created before installation of plugin have default ig:image and it is normal?   

Link to comment
Share on other sites

9 minutes ago, juggler_pl said:

Thanks a lot for your reply. I cleared cached via support in AP and now is ok - for new topics 🙂

Could you confirm or not that your plugin works only with new created topic? Topics created before installation of plugin have default ig:image and it is normal?   

It will work for every topic that has an attachment – old or new. 
But social networks might cache older images if the link was shared before. So it might take some time to see the new og:image. 

Link to comment
Share on other sites

Ok. One more question because for my old topics it doesn't work - in code is figured default og:image. Even on default IPS theme. For new topics as I wrote is ok. 

Is it important for your plugin that some of my pictures (old) were uploaded in domain/uploads/ and new are placed in domain/uploads/monthly_year_month/ ? Or it doesn't matter? 

 

Link to comment
Share on other sites

  • 1 month later...

Hi,

I just deleted the first (and only image) of the first message of a topic to put a new one. Unfortunately, the plugin now puts the following image of another message in the topic, an image that has nothing to do with the first message.

I tried to change the attach_date with an older date but it still pick the wrong image. It looks like the plugin get the lowest id of all image in the topic.

I don't want to change the attattachments id because I don't want to play with attachments_map.

Can I filter by topic ID to change this in the plugin hook :

{{\IPS\Output::i()->metaTags[\'og:image\'] = $imageurl->url;}}

?

Link to comment
Share on other sites

  • 2 weeks later...

Hey @opentype - do you know if this would cause any issues with sites hosted on Invision Community's Cloud plan? 

It's attempting to pull the first image uploaded to the post, but is having trouble doing so 😅

I am seeing this: The following required properties are missing: fb:app_id

 

Screen Shot 2021-04-14 at 12.45.07 PM.png

Screen Shot 2021-04-14 at 12.45.17 PM.png

Edited by breatheheavy
Link to comment
Share on other sites

43 minutes ago, opentype said:

I guess there is a (temporary?) problem on Facebook’s side. I don’t see sharer images for any link I try. 

 

38 minutes ago, Nathan Explosion said:

Correct - at this moment in time, another site I am involved in (not using Invision) is experiencing an issue with the sharing image.

In short...F*****book.


So weird. Facebook has been giving me trouble last few days in other ways, too. It wouldn't fetch the links at all yesterday. Ok well kinda(?) relieved it's on FB's end and not something IC-related 😅

Hopefully it will resolve itself soon! 

Appreciate you following up!! 🙏 

Edited by breatheheavy
Link to comment
Share on other sites

  • 3 months later...
6 hours ago, OMGTECH said:

hai,

this plugin is work. but not the .webp file. 

The plugin works for any image format that Invision Community supports, including WebP in IC 4.6.

However, I cannot control which image formats social media websites accept. I did a quick test. Twitter seems to accept WebP images, Facebook doesn’t currently. But you have to tell that to Facebook. It’s out of my control. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...