XF 2.2 Is a part text replacement possible in custom BB code simple replacement?

Pol57

Member
Basically I want a custom BB code to turn a youtube URL into an image of the thumbnail

PHP:
convert:
[youtubethumb]https://www.youtube.com/watch?v=XXX[/youtubethumb]

into:
[image]https://i.ytimg.com/vi/XXX/maxresdefault.jpg[/image]

Is this possible with custom BB code with a simple replacement or do I need to use a PHP callback?
 

Brogan

XenForo moderator
Staff member
That would be possible but assuming you want to do that for multiple embeds with varying values of XXX, would need to use the add-on.

 
Top