Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Jul 2017, 17:40
unitedpunjab's Avatar
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Real name: Dhillon
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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

then echo $test in headinclude template.

Last edited by unitedpunjab; 18 Jul 2017 at 17:53.
Reply With Quote
  #2  
Old 18 Jul 2017, 17:43
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
You might want to tell us what you want to accomplish first.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 18 Jul 2017, 18:13
unitedpunjab's Avatar
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Real name: Dhillon
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://www.vbulletin.org/forum/show...hreadid=323668

with preg_match in php script (amp.php).

--------------- Added 19 Jul 2017 at 16:43 ---------------

This is the code I am trying to plugin-fy.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #4  
Old 20 Jul 2017, 13:33
unitedpunjab's Avatar
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Real name: Dhillon
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 ?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit: this worked


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by unitedpunjab; 25 Jul 2017 at 10:20.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:35.

Layout Options | Width: Wide Color: