PDA

View Full Version : [Resolved] Missing elements when exporting the XML file of my Mod


YannZeRookie
02-25-2014, 08:07 PM
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.

Did you develop your addon in debug mode?

Yes.

Are those items actually assigned to your product?

Yes.

--------------- Added 1393409214 at 1393409214 ---------------

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.