vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Steps to make a product? (https://vborg.vbsupport.ru/showthread.php?t=184482)

christian8a 07-06-2008 12:42 AM

Steps to make a product?
 
This might sound like if Im lazy and not to read about coding, but if you could help with this will help alot :up:

What would be the steps in order to create a basic small product, lets say a product that will give members the ability to send a "Poke" for example and that has admin cp options or just a group permission settings, could you just name the steps that something like that would require? :)

tuaguild 07-06-2008 12:57 AM

your best bet would be to look at the xml file for a product and it will show you the basic coding then on a test forum not live do a little testing with the product manager

RLShare 07-06-2008 01:34 AM

Thats not a simple question, theres alot of different aspects to creating products. One tip I have for your though, if you want to add options to the adminCP you will need to create a 'cpnav_yourfilename.xml' and place it in the includes/XML/ folder. Look at some of the existing cpnav_whatever.xml files that are in that folder to give you an idea of how it should be structured. You will notice that you need to use phrases in those files, you will have to define those phrases in VB either with the phrase manager or through a product.xml file but phrases that you want to use as cpnav options need to be of type 'Control Panel Home Pages'. Also when creating the php page that will be linked to from those options in the admincp you might want to check out the file 'includes/adminfunctions.php'. VB offers alot of functions to create forms/tables in the admincp that will automatically keep with the style of the controlpanel in that file.

Dismounted 07-06-2008 06:07 AM

Enable debug mode by adding this to your config.php (it is recommended that you do not enable debug mode on a production/live board).
PHP Code:

$config['Misc']['debug'] = true


christian8a 07-06-2008 10:07 PM

Ok I did all that. Now I have those new options to add, edit or remove settings.

So lets say first step will be, go to manage products and add?
Put the name and all the info there?

nexialys 07-06-2008 10:44 PM

try and learn.. why ask when you already know it's better to try first...

christian8a 07-07-2008 02:12 AM

Thanx for the ones that tried to help ;)


All times are GMT. The time now is 09:25 PM.

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.01017 seconds
  • Memory Usage 1,718KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete