Announcement

Collapse
No announcement yet.

How to make my api work?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to make my api work?

    Hello,

    I tried to write some extension code,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_SitetestCodeFunc}
    {
    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.

  • #2
    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.

    Thanks.
    Last edited by jayeley; Mon 21 Oct '13, 7:05pm.

    Comment


    • #3
      Is there any solutions for it?

      Thanks.

      Comment

      Related Topics

      Collapse

      Working...
      X