vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Guide on Product System of Vbulletin (https://vborg.vbsupport.ru/showthread.php?t=195399)

Dman91 11-04-2008 04:52 AM

Guide on Product System of Vbulletin
 
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

Quote:

Originally Posted by Dman91 (Post 1664216)
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

Code:

<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

PHP Code:

$vbulletin->options['id'


Dman91 11-20-2008 04:52 AM

any file i need to include ?
like include global.php ?


All times are GMT. The time now is 04:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01094 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete