How Create a product vbulletin 6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jakob.s
    Member
    • Oct 2023
    • 32

    How Create a product vbulletin 6

    Hello
    where i can find a document for creating product or plugin for vb6?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73427
    • 6.0.X

    #2
    vBulletin 6 doesn't have plugins in the sense of vBulletin 3 and 4… However neither vBulletin 3 or 4 supported Template Hooks. Plus many of the popular addons from older versions of the software have become standard features over the years.

    The easiest way to modify your vBulletin and add functionality is to use either Template Hooks or the Display Template module in Site Builder.

    This article includes how to include custom PHP in a template: https://forum.vbulletin.com/articles...p-in-templates

    You can then assign your custom templates to a Template Hook (Hooks & Products → Manage Hooks) or use the Display Template module in Site Builder.

    There are a lot of template hooks. You can see them in Debug Mode by going to Settings → Options → Products/Hook System and setting "Add Hook Name in Comments" to Yes and "Show Hook Links" to one of the Yes options. Once displayed, clicking on the Hook Name will take you directly to the Manage Hooks → Add New Hook page in the AdminCP. There you can specify a template to show, pass variables to your template and set it to a product if desired.
    Click image for larger version

Name:	hooks.png
Views:	75
Size:	307.8 KB
ID:	4487589



    The only time you would need to create a product is if you wanted to distribute something to others. We have never really documented the creation of new products though. Even in older versions of the software.
    1. To create a Product in vBulletin 6:
    2. Create a folder to contain the project at ./core/packages/%projectname%
    3. Inside this folder create an optional project.php file (one is attached).
    4. Put your site into Debug Mode.
    5. In the AdminCP go to Hooks & Products → Manage Products.
    6. Click "Add New Product"
    7. Fill out the form.
    8. Save the Product.
    9. Select "Export Product"
    10. Place the resulting XML file in ./core/packages/%projectname%/xml

    Then while your site is in debug mode, create the settings, templates, and phrases for your product. When you add these in Debug Mode, you would select your product from the dropdown. You can even assign Pages created in Site Builder to a Product, though you have to currently do this in the database. Once you have everything assigned to a product, you would head to Hooks & Products → Manage Products. Export you custom product and it will include everything assigned to it previously in the Product's XML file. This new file would overwrite the one that already exists /core/packages/%projectname%/xml folder for your product.

    Of course, if you need to get manipulate data, contact external servers, or run your own database queries, you would have to write the classes for that in your project folder.
    Attached Files
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • delicjous
      Senior Member
      • Mar 2014
      • 492
      • 6.X

      #3
      There are also examples in the do_not_upload folder of the package you downloaded for the install.

      Thanks Wayne for advertising the important but not widely known hook-position-option I created once (https://www.vbulletin.org/forum/showthread.php?t=326068) and thanks to vB it a default option now.
      This Option is a key part of my developing because you find the hook-positions instantly and could search in the templates and take a look what data could be transferred to your hooked template.

      Comment

      Related Topics

      Collapse

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎