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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2008, 03:34 PM
ckbcowboy's Avatar
ckbcowboy ckbcowboy is offline
 
Join Date: Jul 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Is there a Product XML DTD, Schema, or guidelines document?

So, I've created a mod by downloading an existing mod, cleaning out its XML data, and then adding in all my own data. Everything works wonderfully, and I expect to be uploading my mod very soon.

The thing is, I want to provide helpful documentation in that XML file. There are a lot of nodes, some of which look promising (helptopics for example) but I'm not sure how they're meant to work. And the few mods I've downloaded to look at don't have any help content.

Is there a Product XML DTD, Schema, or guidelines document? Perhaps a sample Product with simple "hello world" functionality and phrases, options, help topics, faq entries, etc?

I'e been searching these forums for maybe half an hour, with no success.. and this is something that I think should be one of the first things I see here, a prominent FAQ entry or announcement! Something along the lines of "Getting started: Creating your first mod"

I'd appreciate any help you can offer, thanks!

- Cowboy
Reply With Quote
  #2  
Old 07-07-2008, 03:40 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The XML files are generated by vBulletin; you don't have to write them yourself. There should be lots of information about this in the articles area of this website.
Reply With Quote
  #3  
Old 07-07-2008, 03:50 PM
ckbcowboy's Avatar
ckbcowboy ckbcowboy is offline
 
Join Date: Jul 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SirAdrian: I prefer to code in a text editor, when possible. All I'm really looking for though is a description of the XML format.

Besides, I've been looking through the vBulletin Plugin & Products system, and I only see options to Edit Product, Dependencies, Install/Uninstall Code, and manage Plugins. I don't see anything in there about creating any kind of inline help or documentation.

- Cowboy
Reply With Quote
  #4  
Old 07-07-2008, 05:09 PM
Taragon's Avatar
Taragon Taragon is offline
 
Join Date: Sep 2007
Location: The Netherlands
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello ckbcowboy,

This might help you a bit https://vborg.vbsupport.ru/showpost....28&postcount=3
Reply With Quote
  #5  
Old 07-08-2008, 01:17 AM
ckbcowboy's Avatar
ckbcowboy ckbcowboy is offline
 
Join Date: Jul 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Taragon: thanks. I read through all those threads, but didn't really learn much that I didn't already know. There seems to be plenty of help regarding the vB API, and how to hook and create templates, but I'm more specifically looking for documentation on how the other nodes in the Product XML file work.

Surely there's got to be some documentation out there that describes the Product XML format.. right?

- Cowboy
Reply With Quote
  #6  
Old 07-08-2008, 02:27 AM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it is meant to be download through the admin CP not to be created by editing a xml file.
Reply With Quote
  #7  
Old 07-08-2008, 05:19 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Enable debug mode - it will reveal a lot of options.
Reply With Quote
  #8  
Old 07-08-2008, 06:44 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everything in the XML will be generated for you by vBulletin when you export your product. There is really no reason to edit the XML manually.
Reply With Quote
  #9  
Old 07-08-2008, 06:51 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ckbcowboy View Post
Surely there's got to be some documentation out there that describes the Product XML format.. right?
Actually, no, I dont think there is (not public anyway).
Reply With Quote
  #10  
Old 07-08-2008, 07:50 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The from the XML file is all stored in the database anyway. You increase the risk of bugs and errors if you try and write the file yourself.

I don't see why you want to go and spend the time writing it out character by character, at the end of the day its just going to be fed straight back into vBulletin.

The XML file itself is used only once and probably not even see by the user, once you import a product you can edit everything through the AdminCP anyway.
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 03:26 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.04198 seconds
  • Memory Usage 2,249KB
  • Queries Executed 13 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete