View Single Post
  #8  
Old 06 Dec 2018, 13:00
shka shka is offline
 
Join Date: Mar 2016
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

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

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


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

Then you can use the api function getArray in each template

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

Reply With Quote