View Full Version : Guide on Product System of Vbulletin
Dman91
11-04-2008, 04:52 AM
Where can i get a detailed guide on making and getting products working in vbulletin ? I searched around but it did not help me much.
ragtek
11-04-2008, 05:00 AM
https://vborg.vbsupport.ru/forumdisplay.php?f=187
http://www.vbulletin.com/docs/html/creating_a_product
Dman91
11-04-2008, 05:10 AM
Thanks but how can i access the variables saved in product(xml) for example lets say - User ID from my script ?
Dman91
11-09-2008, 04:36 AM
Help please
Lynne
11-09-2008, 03:00 PM
It's hard to give specifics to your very general question. If you have a variable $myvariable in your plugin, you would use it in your template as $myvariable.
Dman91
11-12-2008, 01:44 PM
I am sorry, i meant accessing it from the php file.
Lynne
11-12-2008, 02:16 PM
I am sorry, i meant accessing it from the php file.
In general, if you define $myvariable in your php file/plugin, you would access it by calling $myvariable in either a template or a php file. Again, it's very hard to be specific when the question is so general.
Dman91
11-20-2008, 04:24 AM
<setting varname="id" displayorder="1"> suppose this is my part of xml file(the product).. user can edit the value via admincp. so how do i access that value in my php file ?
Dismounted
11-20-2008, 04:49 AM
$vbulletin->options['id']
Dman91
11-20-2008, 04:52 AM
any file i need to include ?
like include global.php ?
Dismounted
11-20-2008, 04:53 AM
Of course you need to include global.php - do you think your variables will come out of nowhere? :p
Dman91
11-20-2008, 04:54 AM
thats is why i asked :p
And thanks for help :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.