[vbresults.com] Custom Field Regex Capture

Add-ons [vbresults.com] Custom Field Regex Capture 1.0.0

Register & Get access to index
Compatible XF Versions
2.0 , 2.1 , 2.2 , 2.3
Visible Branding
Yes
Summary

Make custom field regex captures accessible to value and wrapper display HTML options; works with user, thread, resource, and media fields. For example, you can extract video ID's from regex URL fields.

1753187044629.png
1753187053795.png


Custom field regex:

Code:
(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))(?<videoId>[\w-]{11})(?![\w-])

1753187114559.png


Custom field wrapper display HTML:

HTML:
<iframe width="560" height="315" src="https://www.youtube.com/embed/{$videoId}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

1753187145606.png
Author
XenForo
Views
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from XenForo

Back
Top Bottom