YouTube Link creates large data block when link is posted in chat, how can I change or restrict that?

Xephius
Xephius
@xephius
7 years ago
93 posts
Hey all,

How can I control how much of the thumbnail, title, and graphic are imported when a URL/Link is dropped in chat on the website? I believe it does this in other areas as well. I would like to be able to:

1) Reduce the amount of description that is imported to just the first few lines with a more button or something. Right now it is a wall of text.

2) Restrict what are allowed URLS. We would like to only allow links from our YouTube channel to be shared on the site and Chat. Is there a way to configure that?

4) I read the documentation for YouTube, Banned Items, and Media URL Scanner and still feel like I am missing something. Is there another module that already does this?

Thanks.
-John
updated by @xephius: 05/30/17 05:16:39AM
michael
@michael
7 years ago
7,744 posts
Its the "Media URL Scanner" module you're thinking of.

What it does, is when its on it retrieves the og:tags from URLS of the link that is posted in and displays them as a 'URL Card'.

You can adjust what is displayed in the url_card.tpl
/modules/jrUrlScan/templates/url_card.tpl

Make sure you use one of the correct methods to alter that .tpl file

Docs: "Altering a Modules Template"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1051/altering-a-modules-template
Xephius
Xephius
@xephius
7 years ago
93 posts
Thanks. Trying this out tonight. :X