2020-12-05, 01:05 PM
Link Highlighter Plugin
|
2020-12-05, 01:11 PM
Hello vk_knight
That is a very interesting idea. We'll look into this very soon at ModMyBB. We'll keep you posted
2020-12-05, 01:20 PM
@KevinVR Got the idea by seeing Xenforo boards.
![]() ![]()
2021-01-26, 05:05 AM
Any updates regarding this plugin people?
2021-01-26, 05:03 PM
interesting im waiting this one too
2021-01-28, 05:43 PM
(This post was last modified: 2021-01-28, 06:15 PM by Laird. Edited 4 times in total.)
Today I woke up inspired to add this feature to Link Tools as flagged as a possibility here. I have a bunch of ideas, but would love to hear what you guys are actually looking for. Am about to start coding, so get in quick. :-)
Here are some preliminary questions that I have:
OK, that's about it so far. Suggestions and comments welcome.
2021-01-28, 09:38 PM
I think perhaps some domain white or black list settings so your plugin works on the
mycode_url template. They should be appended to the end of the paragraph, I think this is how services like Discord do it.Quote:Any preview images downloaded (and optionally resized or otherwise manipulated) by an object of the LinkHelper class would be stored in a custom directory under
Perhaps some cache mechanism should be added instead for updating the preview image if possible #7). But more importantly make it easy (with hooks?) for plugins to modify the location of the stored (image files) data. I'm thinking about sites storing images outside the forum file system (CDN). I have thought about coding such a feature myself, but I have never got around it I will probably never do. But I have seen some interesting libraries to accomplish it (I think you don't use libraries for your current stable release): https://github.com/oscarotero/Embed
2021-01-28, 10:33 PM
Thanks for the feedback, Omar.
(2021-01-28, 09:38 PM)Omar G. Wrote: I think perhaps some domain white or black list settings I suggested above providing three new plugin settings, the first of which includes the option to white/blacklist domains - do you mean something on top of this, or did you simply just miss them in my admittedly long list? (2021-01-28, 09:38 PM)Omar G. Wrote: so your plugin works on the If you mean that the plugin should pull the same links out of posts that are pulled out for the mycode_url template, then, yes, it will do that (and already does). It will also work for bare URLs (again, as it already does). I think though that link previews will be disabled for video tags. Or am I misunderstanding you?(2021-01-28, 09:38 PM)Omar G. Wrote: They should be appended to the end of the paragraph, I think this is how services like Discord do it. Fair enough - sounds like a good way to do it. (2021-01-28, 09:38 PM)Omar G. Wrote:Quote:Any preview images downloaded (and optionally resized or otherwise manipulated) by an object of the LinkHelper class would be stored in a custom directory under Now I'm even wondering whether downloading images at all is a bad idea given that it potentially violates copyright. Perhaps images should simply be linked to on their original sites. The only problems with that are that some sites block images that are not referred from the site itself and that some images may have an excessively large file size for a preview. (2021-01-28, 09:38 PM)Omar G. Wrote: I have thought about coding such a feature myself, but I have never got around it I will probably never do. But I have seen some interesting libraries to accomplish it (I think you don't use libraries for your current stable release): I don't use libraries, no, and would prefer to keep it that way, but if I was to use one, that sure looks like a good one!
2021-01-28, 11:59 PM
Quote:I suggested above providing three new plugin settings, the first of which includes the option to white/blacklist domains - do you mean something on top of this, or did you simply just miss them in my admittedly long list? I just forgot to remove these once I read that part of your post ![]() Quote:Or am I misunderstanding you? No, that was it. Quote:The only problems with that are that some sites block images that are not referred from the site itself and that some images may have an excessively large file size for a preview. I don't think this is an issue as usually meta data images are meant to be accessible by outsiders. If sites block them for specific sites like Facebook well, you can't please or work around everybody. If the image isn't accessible perhaps display no image or a stock image. The same applies if images have some copyright, I would assume sites like Facebook do some kind of caching as well. Also, you can purge the cache for old images (posts accessed too long ago) to control the size of it. Then rebuild on request. Perhaps even ignoring bots for the display of images or embeds altogether.
2021-01-29, 12:16 PM
(This post was last modified: 2021-01-29, 12:18 PM by Laird. Edited 1 time in total.)
(2021-01-28, 11:59 PM)Omar G. Wrote:Quote:The only problems with that are that some sites block images that are not referred from the site itself and that some images may have an excessively large file size for a preview. Good point: mostly, I'd hope, in the modern age, a page will provide an image specifically aimed at social media snippets. If not, yes, a stock image will suffice. (2021-01-28, 11:59 PM)Omar G. Wrote: Perhaps even ignoring bots for the display of images or embeds altogether. That's an interesting idea. I'm not sure though that it would gain us much performance-wise. Are there other reasons to show different contents to bots than to regular users? In any case, a development update: I have made good progress on this feature today - not as much as I'd hoped for, but that's par for the course. Currently implemented are (1) the new settings and (2) the infrastructure for Link Helpers, including prioritisation, and including the generation of (a) preview(s) when posting (a) link(s). Yet to implement is the display of link previews in the appropriate (or any) location in a post, as well as the other features planned above such as the Recount & Rebuild functionality. The day is not over yet though... |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)