Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2010, 05:44 PM
pjdaley pjdaley is offline
 
Join Date: Feb 2004
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 04-15-2010, 01:29 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-18-2010, 09:47 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 07-19-2010, 05:18 AM
ranz ranz is offline
 
Join Date: Dec 2005
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-23-2011, 11:48 AM
sacobra sacobra is offline
 
Join Date: Mar 2010
Location: Bangalore
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ranz View Post
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
Reply With Quote
  #6  
Old 05-23-2011, 12:24 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow how far I've come from July 2010.

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:56 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.05410 seconds
  • Memory Usage 2,203KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete