Auto OpenGraph for threads

Auto OpenGraph for threads 1.0.0

No permission to download
D

Deleted member 184953

Guest
Nicolas FR submitted a new resource:

Auto OpenGraph for threads - Automatically sets the OpenGraph image with the first image or attachment in the thread.

A simple add-on that allows to set the Open Graph image of a thread using the first image (embedded or attached) of the first thread post. Useful for sharing threads on social networks (Twitter, Facebook, etc...).

This add-on uses @JoyFreak's "[JoyFreak] Set Open Graph Image" resource template modification. Thanks to him for his permission.

Read more about this resource...
 
It appears it only applies for new threads after the add-on is activated.

Is there a way to rebuild the meta data for older threads?
 
Hello, the add-on will create an OpenGraph image for any thread that has an image in its first post, regardless of when the thread was created. But the thread links already shared (on social media, or UNFURLed) are not affected.

Maybe with this add-on you could solve this but i have not tested it.
 
Hello, the add-on will create an OpenGraph image for any thread that has an image in its first post, regardless of when the thread was created. But the thread links already shared (on social media, or UNFURLed) are not affected.

Maybe with this add-on you could solve this but i have not tested it.
Actually it does work fine.
It pulls the image from post#1 of that thread irregardless of thread creation time.

I wrongly assumed it pulls the first image of the thread. Example post#1 has null images but post#10 does have the first one of the thread.

It works well the way it is. Thanks for the reply.
 
Hello, the add-on will create an OpenGraph image for any thread that has an image in its first post, regardless of when the thread was created. But the thread links already shared (on social media, or UNFURLed) are not affected.

Maybe with this add-on you could solve this but i have not tested it.
Actually they update over time, so no need to do anything. Just takes time.
 
Hello, do you have a concrete example with a URL?
Hi,


I am testing with following tool

 
Currently Auto OpenGraph only works for "classic" type discussions (thread_view template) and the example you give is an Article type discussion (thread_view_type_article template). I will take a closer look to implement the code on all thread types.

Capture web_8-12-2022_93257_localhost.jpeg
 
But have you configured the Metadata logo in your ACP? it should at least show up for threads without an image.
ACP >> Appearance >> Style properties >> Basic options

Capture web_8-12-2022_93930_localhost.webp

This is an article-type discussion with only a YT video in the body of the post.
 
I will take a closer look to implement the code on all thread types.
@Black Horse Off Road I said a stupidity, it works correctly for all types of discussions, the templates of Article, Suggestion, Poll, Question type discussions being extensions of the common template thread_view. You were just missing the OG logo in the style properties you have now added.
 
This resource has been removed and is no longer available.
 
Use instead this add-on from the original coder @JoyFreak:

:)
 
Back
Top Bottom