vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Addon Development: how to deal with the XML? (https://vborg.vbsupport.ru/showthread.php?t=318838)

ub.ch 05-27-2015 06:40 PM

Addon Development: how to deal with the XML?
 
Heya guys!

It might be that my question is a rather stupid one, but alas I am still asking it:
when developing an addon (with all the bells and whistles; that being admincp, user interaction etc) one has all the files (xmls, phps etc) and the addon xml file...

So far I've been changing the xml, uploading the xml in the admincp and overwritten the existing addon - this can't surely be the 'normal' or right way to do so?

Any advice on how to do this quicker?

Thanks!
Malte

kh99 05-27-2015 06:46 PM

Most things can be done in the admincp, then you export the product xml if you want to save or distribute it (it's a good idea to keep a backup even if you're not distributing it). Some controls don't show up unless the site is in debug mode (e.g. adding/editing options and option groups). If you haven't been using debug mode you might find this useful: https://vborg.vbsupport.ru/showthread.php?t=265999 . The article is on ways to turn it on only for yourself or admins, but the "normal" way (which you'd use if you're developing on a test site, which is a good idea) is there too.

ub.ch 05-27-2015 06:52 PM

thanks for your reply!

I know about the debug mode - but I am not sure how this helps me with frequent updates to my addon.xml?

Once I am done, the feature of downloading it is very very handy (of which I did not know beforehand)

Or is your advice to upload it once and then make the changes within the style manger et al?

MarkFL 05-27-2015 06:56 PM

I now use the "debug mode" method Kevin spoke of on my local dev site. I first create the product, then add the settings I want, then the templates and plugins, and finally debug the codes until everything works as I intend, and then export the XML file. :D

ub.ch 05-27-2015 06:59 PM

Quote:

Originally Posted by MarkFL (Post 2546584)
I first create the product, then add the settings I want, then the templates and plugins

can you walk me through this in more detail?

kh99 05-27-2015 07:02 PM

Quote:

Originally Posted by ub.ch (Post 2546583)
Or is your advice to upload it once and then make the changes within the style manger et al?

Right, that's what I meant. But maybe I didn't understand what you were asking. I think there are some people who do mod development by editing the xml, but I don't think that's what most people do.

MarkFL 05-27-2015 07:04 PM

Quote:

Originally Posted by ub.ch (Post 2546585)
can you walk me through this in more detail?

I will be happy to, but I am about to leave in a few minutes. When I get back for the night in about 4.5 hours, I will write up a step-by-step guide. Once you get the hang of the process, it makes creating/updating add-ons very straightforward. :D

ub.ch 05-27-2015 07:07 PM

awesome!
Thank would be more than kind of you, sir :) :D

MarkFL 05-28-2015 04:30 AM

Quote:

Originally Posted by ub.ch (Post 2546588)
awesome!
Thank would be more than kind of you, sir :) :D

I decided to write an article to be shared with the community, and it is now pending staff approval. If it is approved, I will edit this post to give a link to the article. :D

ub.ch 05-28-2015 07:32 AM

even better!
(although the wait is cumbersome, but that's the way it is :) )

Thanks again!

Black Snow 05-28-2015 08:22 AM

Quote:

Originally Posted by MarkFL (Post 2546598)
I decided to write an article to be shared with the community, and it is now pending staff approval. If it is approved, I will edit this post to give a link to the article. :D

I wrote one a while back. need to update it and create the next parts.

ub.ch 05-28-2015 11:21 AM

Quote:

Originally Posted by MarkFL (Post 2546598)
I decided to write an article to be shared with the community, and it is now pending staff approval. If it is approved, I will edit this post to give a link to the article. :D

here it is!
https://vborg.vbsupport.ru/showthread.php?t=318840

Thank you so so much!!

MarkFL 05-28-2015 02:04 PM

Quote:

Originally Posted by ub.ch (Post 2546603)
even better!
(although the wait is cumbersome, but that's the way it is :) )

Thanks again!

I figured the wait wouldn't be long...the staff here is active and on the ball. :D

Quote:

Originally Posted by Black Snow (Post 2546606)
I wrote one a while back. need to update it and create the next parts.

Yes, and I found your article to be very helpful when I was getting started too. :up:

Quote:

Originally Posted by ub.ch (Post 2546614)
here it is!
https://vborg.vbsupport.ru/showthread.php?t=318840

Thank you so so much!!

You're quite welcome! :D


All times are GMT. The time now is 11:46 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.03636 seconds
  • Memory Usage 1,739KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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