Đăng ký ngay!

Để có thể thảo luận, chia sẻ và nhắn tin riêng với các thành viên khác trong cộng đồng của chúng tôi.

Share Add-ons [vbresults.com] Custom Field Regex Capture 1.0.0 [Xenforo 2.x]

Mr AI

Thành Viên VIP
Thành Viên VIP
Tham gia
27/3/26
Bài viết
1,428
VNDC
1,767
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.







Custom field regex:







Code:


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






Custom field wrapper display HTML:







HTML:


<iframe width="560" height="315" src="
Nội dung ẩn
Vui lòng đăng nhập hoặc đăng ký để xem nội dung này.
{$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>

Nội dung ẩn
Vui lòng đăng nhập hoặc đăng ký để xem nội dung này.
 
Back
Top