MyBB Community Forums
Plugin so links pull preview instead of just text? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Requests (https://community.mybb.com/forum-65.html)
+---- Thread: Plugin so links pull preview instead of just text? (/thread-223108.html)



Plugin so links pull preview instead of just text? - Metallix - 05-20-2019

You know how when you post a link on Twitter or Facebook it shows a preview of the site with a thumbnail and whatever text is on the page? Is there a way to do that on myBB? I've seen other forum software that integrates this in already, would anyone be willing to make a plugin that does this?


RE: Plugin so links pull preview instead of just text? - Wildcard - 05-21-2019

I have a custom plugin on my forum that does just that. I have never released it because I haven't had time to work all the bugs out. (You can see it in action here)

If you are interested in making something like I did, you can simply use cURL to download the linked webpage, scrape it for OpenGraph and other meta tags, and then build an element to embed that displays the gathered information.

Also, doylecc's Automedia plugin uses a third-party service to do something similar to what you are asking.