vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   [Resolved] Missing elements when exporting the XML file of my Mod (https://vborg.vbsupport.ru/showthread.php?t=308887)

YannZeRookie 02-25-2014 08:07 PM

[Resolved] Missing elements when exporting the XML file of my Mod
 
Hello,

I am finishing coding my first Product to extend VB 5.0.5 (a TeamSpeak 3 plug-in that allows our users to connect to TS3 in one click, including creating new accounts on-the-fly and synchronizing VB and TS groups).

I am exporting the XLM file in preparation of packing my Product to move it to production.

Unfortunately, there are 2 things that are missing in the XML file:
  • The <options> section is empty, although I have several settings for my Product
  • The <cronentries> section is empty too, although I have a cron job for that Product.

I triple-checked, and my Settings are properly tied to my Product in the admincp. Same thing for my cron job. And I do have <phrase> entries that come from my settings and from my cron job, so it must have found them:

<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrasetype name="Scheduled Tasks" fieldname="cron">

What did I do wrong? :confused:

Thanks in advance for any hints,

Yann

Zachery 02-25-2014 10:16 PM

Did you develop your addon in debug mode? Are those items actually assigned to your product?

YannZeRookie 02-25-2014 10:23 PM

Thanks for the quick answer.

Quote:

Originally Posted by Zachery (Post 2483738)
Did you develop your addon in debug mode?

Yes.

Quote:

Are those items actually assigned to your product?
Yes.

--------------- Added [DATE]1393409214[/DATE] at [TIME]1393409214[/TIME] ---------------

I found the cause of the problem: the "vBulletin Default" flag has to be set to YES for each setting. Same thing for the Scheduled Task parameters.

This corresponds to the "volatile" column in the database, which is tested against 1 in adminfunctions_product.php:get_product_export_xml( )

On second thought, I'm not exactly sure about the role of this parameter, but I'll leave it to YES going forward.


All times are GMT. The time now is 06:40 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.01824 seconds
  • Memory Usage 1,714KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (3)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