Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 May 2015, 21:40
ub.ch ub.ch is offline
 
Join Date: Jul 2010
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
Reply With Quote
  #2  
Old 27 May 2015, 21:46
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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: http://www.vbulletin.org/forum/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.
Reply With Quote
  #3  
Old 27 May 2015, 21:52
ub.ch ub.ch is offline
 
Join Date: Jul 2010
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?
Reply With Quote
  #4  
Old 27 May 2015, 21:56
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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.
Reply With Quote
  #5  
Old 27 May 2015, 21:59
ub.ch ub.ch is offline
 
Join Date: Jul 2010
Originally Posted by MarkFL View Post
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?
Reply With Quote
  #6  
Old 27 May 2015, 22:02
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by ub.ch View Post
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.
Reply With Quote
  #7  
Old 27 May 2015, 22:04
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by ub.ch View Post
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.
Reply With Quote
  #8  
Old 27 May 2015, 22:07
ub.ch ub.ch is offline
 
Join Date: Jul 2010
awesome!
Thank would be more than kind of you, sir
Reply With Quote
  #9  
Old 28 May 2015, 07:30
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by ub.ch View Post
awesome!
Thank would be more than kind of you, sir
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.
Reply With Quote
  #10  
Old 28 May 2015, 10:32
ub.ch ub.ch is offline
 
Join Date: Jul 2010
even better!
(although the wait is cumbersome, but that's the way it is )

Thanks again!
Reply With Quote
  #11  
Old 28 May 2015, 11:22
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Originally Posted by MarkFL View Post
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.
I wrote one a while back. need to update it and create the next parts.
Reply With Quote
  #12  
Old 28 May 2015, 14:21
ub.ch ub.ch is offline
 
Join Date: Jul 2010
Originally Posted by MarkFL View Post
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.
here it is!
http://www.vbulletin.org/forum/showthread.php?t=318840

Thank you so so much!!
Reply With Quote
  #13  
Old 28 May 2015, 17:04
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by ub.ch View Post
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.

Originally Posted by Black Snow View Post
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.

Originally Posted by ub.ch View Post
You're quite welcome!
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
vB Addon/PHP Addon Rotating Banner with Flash Integration!!!!! GoTTi vBulletin 2.x Full Releases 33 15 May 2004 17:32
[RELEASE-addon] Homepage Login on Non-VB Page -- Addon badmeetsevil- vBulletin 2.x Full Releases 24 28 Jun 2003 19:45
vB Addon/PHP Addon *Support Email Services Form* GoTTi vBulletin 2.x Full Releases 8 05 Mar 2003 10:53



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 18:02.

Layout Options | Width: Wide Color: