Ok, my mistake. It seems that vB5 doesn't have a plugin/hook system like vB4. The hooks you see are template hooks, you need php hooks.
For my addons I use only api extensions
Simple example:
- create in /forum/core/packages a subdir /testimportarray/api
- create a file arr.php
The subdir name /
testimportarray has to be the same as in class
TestImportArray_Api_Arr and public $product = '
testimportarray';
The subsubdir name /
api is repeated in class TestImportArray_
Api_Arr
The filename
arr.php has to be the same like in class TestImportArray_Api_
Arr
Then check in AdminCP/Add-ons & Hooks/Api Extensions and PHP Hooks if your Api is listed without error
Then you can use the api function getArray in each template
No members have liked this post.