![]() |
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 ? |
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="" />'; 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"?> Or alternatively you could just edit includes/bbcode.php and insert the actual mod code instead of a hook call. |
Thank you all working :)
|
All times are GMT. The time now is 03:51 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:
|