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:
PHP Code:
<?php
class vB5_Frontend_Controller_Random extends vB5_Frontend_Controller {
public function randomnum() {
$output = rand(1,3);
return $output;
}
}
?>
Put the following in your template:
{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.