Discussion Forums  >  Self Hosted Control Panels

Replies: 3    Views: 96

AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
09/19/13 08:36 PM (12 years ago)

add a self hosted plugin

I have a new plugin I have added to my self hosted server. Can I add this to an existing project without downloading the source (I have a number of custom edits to the code) Can I just copy the plugin source code to the plugins folder in my xcode project?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/19/13 08:58 PM (12 years ago)
You'll want to copy the iOS class files into your xcode project. It's 'nice' to have a parent directory to keep it separate from the other files, but not strictly necessary. And the new plugin/screen needs to be in your Apps control panel/screens, so that it will be included in the BT_config.txt file. Keep in mind the 'original' config.txt file (currently in your project) won't have that plugin/screen, so you'll constantly be refreshing, unless you also update your BT_config.txt file. Cheers! -- Smug
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/19/13 11:57 PM (12 years ago)
And...your plugin probably references BT_appDelegate in a few places. If so, replace all of the occurances of BT_appDelegate with your app delete name. Do this after dragging the .h's and .m's into your project. BT_appDelegate becomes [your app name]_appDelegate everywhere you see it.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/20/13 12:37 AM (12 years ago)
Yep. I forgot one of the most important parts, lol! oops! Thanks David :) if your app is named 'mycoolapp' then then replace BT_appDelegate with 'mycoolapp_appDelegate' (in your newly added plugin class files). You can find an example in every other plugin that was packaged with the original download. Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.