[vbresults.com] Custom Field Regex Capture

[vbresults.com] Custom Field Regex Capture 1.0.0

No permission to download
Compatible XF 2.x versions
  1. 2.0
  2. 2.1
  3. 2.2
  4. 2.3
Additional requirements
PHP 7.1+
Visible branding
Yes, but removable with payment
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.

  1. Under Admin > Add-ons > Install/upgrade from archive, import/install the attached add-on zip

[Branding-free license includes 11+ add-ons]

⭐⭐⭐⭐⭐ If you like this add-on and want more, please leave a short review here!

Example

Edit thread.webp


View thread field.webp


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

Regex.webp


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>

Wrapper display HTML.webp


Enterprise custom development - vbresults.com
Author
vbresults
Downloads
3
Views
44
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from vbresults

Back
Top Bottom