![]() |
Need help with preg_match plugin
I have tried various $post variables and hook locations.
Couldn't get it working. Kindly assist if it is doable. PHP Code:
|
You might want to tell us what you want to accomplish first. :)
|
I want to get the youtube video id from thread / post and use it for meta og:image. in headinclude. or showthread.
Got it working for https://vborg.vbsupport.ru/showthrea...hreadid=323668 with preg_match in php script (amp.php). --------------- Added [DATE]1500478984[/DATE] at [TIME]1500478984[/TIME] --------------- This is the code I am trying to plugin-fy. PHP Code:
|
This works in "postbit_display_start" hook, "$test" returns da value I want but only in "postbit" template.
How do i get the value in headinclude or showthread template ? PHP Code:
Code:
$find = '$YTIMG'; |
All times are GMT. The time now is 09:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|