Quote:
Originally Posted by Wayne Luke
I've uploaded some basic documentation on API Extensions and Hooks to here.
The addon system in vBulletin 5 is different and the idea of PHP Plugins embedded in the database should be discarded. You probably will not be able to simply update your existing plugins, you'll need to rewrite how you retrieve information from the API or have your app call the API directly.
|
Hello,
I tried to write some extension code as your gave pdf document,but when I call the method in template it does not work.
The following is my code:
PHP Code:
class Testzz_Api_Site extends vB_Api_Extensions {
protected $product = 'zzz';
protected $developer = 'ttt';
protected $title = 'test Product';
protected $minver = '5.0.0';
protected $maxver = '5.0.99';
protected $AutoInstall = 1;
protected $extensionOrder = 10;
public function testCodeFunc($prev) {
return '<!-- test package -->';
}
}
I called the method in template:
PHP Code:
{vb:data wzttestvar,Testzz_Api_Site, testCodeFunc}
{vb:raw wzttestvar}
How can I make this work?
And I remembered that there are some xml folder and file need to be maked inside the package folder,should I create xml folder for the extension,but I do not know how to make the xml file for the extention api?
Thanks.
Btw:
I'm Tapatalk Tom Wu,We may need vBulletin official team to give us more guide on the VB5 plugin development,and we may can start more deep technical cooperation with your company.
Any help would be appreciated.