vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Creating a product xml file. (https://vborg.vbsupport.ru/showthread.php?t=240465)

pjdaley 04-14-2010 05:44 PM

Creating a product xml file.
 
Ok I have the xml currently creating the installation for my product. The product code is all done and works if you use the page however what I don't understand and seems to be incredibly confusing is how in the hell do I actually implement the code?

Is there like a Hello World product example laying around here that everyone has seen except me?

How do I add a settings tab? How do I add settings options and actually call those options. I see how they are used via other xml's but that is hardly helpfully in actually explaining how it works.

My product is very simple.

It creates a new table and users can leave i guess you could say "reputation" points and feedback on a user.

So the user will have a positive, neutral, or negative "rep" number.

But how in the hell are you supposed to know the XML values to add to the correct templates and options and add tabs in the user profile, etc.

Sorry if this is common knowledge. I have been coding in PHP for almost 8 years now and this vbulletin product development has me going insane.

Lynne 04-15-2010 01:29 AM

The Hello World product examples are any modification you download from the modifications area. Most people learn by finding a mod similar to what they want and looking to see how it was done.

BirdOPrey5 07-18-2010 09:47 PM

These are basically my questions too... I could look at other products but it amazes me there isn't a write-up someplace that goes step by step on things like adding settings and such- is there really no such resource on all of vb.org?

ranz 07-19-2010 05:18 AM

I'm pretty sure there is, as I remember reading a while ago something about Adding the Product, configuring it, then exporting it - that then creates the XML file.

sacobra 05-23-2011 11:48 AM

Quote:

Originally Posted by ranz (Post 2071365)
I'm pretty sure there is, as I remember reading a while ago something about Adding the Product, configuring it, then exporting it - that then creates the XML file.

I guess you mean this http://www.vbulletin.com/docs/html/exporting_product

Regards

BirdOPrey5 05-23-2011 12:24 PM

Wow how far I've come from July 2010. :p

No what the OP and myself were asking about was how do we MAKE a product, not export one. Really the "secret" for me was I had to put vBulletin into DEBUG mode... Once you do that you can easily add settings, add templates, and add new products to bundle it all together.

Just add the line:
Code:

$config['Misc']['debug'] = true;
To your config.php file.

But NEVER do this on your live forum, only put your test forum in debug mode, regular users should have no access to a forum in debug mode.

Once that's done you should be able to figure things out from there by following existing mods.


All times are GMT. The time now is 10:39 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.01979 seconds
  • Memory Usage 1,721KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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