vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Products: Writing them (https://vborg.vbsupport.ru/showthread.php?t=132038)

Lionel 11-20-2006 04:39 PM

Products: Writing them
 
Are there any scripts to assist in the making of the xml or you guys painfully do them manually line by line?

Adrian Schneider 11-20-2006 04:44 PM

You export the product from the product manager - then it downloads it as XML.

Lionel 11-20-2006 04:47 PM

Yes, I did that, but that does not take care of the queries, the database tables creation

Adrian Schneider 11-20-2006 04:48 PM

You can be lazy and export them from something like phpMyAdmin.

Lionel 11-20-2006 04:54 PM

yeah, you still need to manually do the
Quote:

<code version="1.0.0">
- <installcode>
- <![CDATA[ $db->reporterror = 0;
echo "Adding Tables<br /><br />";
$db->query_write("
CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "
same for templates

Adrian Schneider 11-20-2006 05:22 PM

You mean the XML itself, or the PHP? The XML should be 100% generated.

Lionel 11-20-2006 05:57 PM

the xml is not 100% generated. Queries and templates were not in products export

Adrian Schneider 11-20-2006 06:01 PM

Create templates in the MASTER STYLE and set the product to your template if you want them to export. If by query, you mean install code, then yes, it is. You can add/edit install/uninstall code in the Edit Product page.

Guest190829 11-20-2006 06:02 PM

Quote:

Originally Posted by Lionel (Post 1121684)
the xml is not 100% generated. Queries and templates were not in products export

Everything is exported into the XML, technically no one should be directly editing the xml file unless they know what you are doing. (Too make quick edits)

Customs templates need to be added in the MASTER style and the product field needs to be selected with the specific product you want the custom template to be associated with.

I'm not sure what you mean by queries?

You add install code via:

Admin CP -> Plugins & Products -> Manage Products -> Edit ->

There are text fields for Install and Uninstall code.

Lionel 11-20-2006 06:11 PM

Ah, master style. I have been doing them in the main default style.
OK that takes care of that.
All that's left now, are the database table creation.

in Admin CP -> Plugins & Products -> Manage Products -> Add/Import New Project -> is no where to be found in my 3.60. I do have an Add/Import Product that asks me for prduct ID, Title, Version, Description, Product URL and Version check.

I don't see where to add the install code.


All times are GMT. The time now is 03:50 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.01032 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
  • (2)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