• Maintenance Notice ! 🚧

    We are currently making some updates to improve our services. During this time, there may be temporary outages or disruptions.

    We appreciate your patience and understanding.


    All current Registered Users must Reset the Password !

DGT Girl

[vbresults.com] Custom Field Regex Capture 1.0.0

No permission to download
Compatible Versions
2.0, 2.1, 2.2, 2.3
Additional Requirements
PHP 7.1+
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.

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

Example

vbresultscom Custom Field Regex Capture-1.webp



vbresultscom Custom Field Regex Capture-2.webp


Custom field regex:

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


vbresultscom Custom Field Regex Capture-3.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>

vbresultscom Custom Field Regex Capture-4.webp
Author
DGT Girl
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top