The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hook location Question...
I want add this to vb3.8 but...
https://vborg.vbsupport.ru/showthread.php?t=288060 this is for vb4 and vb3.8 have no Hook Location "bbcode_img_match" Is there any other Hook Location i can use ? |
#2
|
|||
|
|||
What you could do is edit file includes/class_bbcode.php and add the hook call. You would find this (around line 1993):
Code:
return '<img src="' . $link . '" border="0" alt="" />'; and change it to: Code:
$retval = '<img src="' . $link . '" border="0" alt="" />'; ($hook = vBulletinHook::fetch_hook('bbcode_img_match')) ? eval($hook) : false; return $retval; and then to get that hook to appear in the list of hooks when creating a plugin, you could create a file called includes/xml/hooks_added.xml with this content: Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <hooks> <hooktype type="general"> <hook>bbcode_img_match</hook> </hooktype> </hooks> Or alternatively you could just edit includes/bbcode.php and insert the actual mod code instead of a hook call. |
#3
|
|||
|
|||
Thank you all working
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|