The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need Advice ... how can i make an simple Product with Hook
Hi guys i have a big problem ..
i need a Plugin / Product that fires my php file on every UserPost. But im getting this not to work. I thought it is enough if I create a product and adding a hook. Then I create the folder ( Core / packages / [product name] ) and insert there my php file . But nothing happens . Can someone help me please ? |
#2
|
||||
|
||||
You need to post the code you currently have in the PHP file for the packages directory.
|
#3
|
||||
|
||||
Hi, here is a documentation about how to make a product:
http://www.vbulletin.com/forum/blogs/joe-d/3932614- But it will be usefull to know what you want to do with the php or what the php should do. You could also make you a controller-file when it is simple php. You find a documentation here on page 3-4: https://docs.google.com/document/d/1...sDOyopo4A/edit and a example for a random number here: https://vborg.vbsupport.ru/showthread.php?t=318153 Creat a new php-file "random.php" (place it into ...includes/vb5/frontend/controller/ : PHP Code:
{vb:action random_result, random, randomnum} {vb:raw $random_result} These are small examples to make a product with php included but it would be easier to help you when we know your code. @Replicant: Do you know how to make a product including a sql-selection? I looked into the mods who do this already but I did'nt got how to do. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|