Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 14    Views: 113

Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
11/09/13 04:33 AM (12 years ago)

Using BuzztouchMods self hosted plugins on Buzztouch.com

Hi guys and gals, A lot of questions recently on when the market is getting open, I'm getting a lot of requests for my Add To Favourites plugins. All of us plug developers are just waiting like the rest of you. MrDavid created a site called BuzztouchMods.com and recently started a Market Place with a couple of really sweet plugins including My add to favourites plugin. These are unfortunately self hosted not because they were made to be self hosted, it's just because the market isn't open. The plugins can be hard coded into your iOS project but this then this will reset if the project is updated, not ideal. What you guys who don't have self hosted have is though the option to install a fantastic plugin by stobe called the json snippet keeper. What this will let you keen to get hold of some plugins do is manually insert a screen on your control panel (a json snippet keeper screen) and fill it with the json that would have been present in the (custom plugin json). So if you go and buy the json snippet keeper tool, it will appear in your buzz touch.com control panel. We'll use the example now of my Add to favourites plugin. 1. Upload and install Json Snippet Keeper. 2. go to your project in buzz touch.com. 3. Create a new screen let's call it "My Favourites". 4. There should be a big box with JSON Data for this screen, with a little bit of json typed in. In this box replace the text with this. {"itemId":"item_ID_from_header_instructions","itemType":"Ak_add_to_favourites", "itemNickname":"My Favourites", "navBarTitleText":"My Favourites"} (PLEASE NOTE the item ID is the number given to you in the information at the top instructions of the snippet keeper.) 5. that's it for the control panel, that has pretty much replicated a simple favourites list plugin. 6. Next for Xcode in the self hosted zip you downloaded from Buzz touch Mods, drag in only the iOS classes into your project. namely in this case Ak_add_to_favourites.h Ak_add_to_favourites.m Ak_favouriteList.h Ak_favouriteList.m Tick the boxes and add. If your a neat freak and like them to be in a little folder highlight the 4 files in Xcode right click and select "New group from selection". now they'll be in a nice little folder. 7. if you attempt to run you will get a few errors the reason being that there is a couple of code changes. All the plugins from the self hosted zip will use BT_appDelegate instead of yourApp_appDelegate. so where it says BT_appDelegate change it to this if your app is called kittsyIsAwesome you would change it to kittsyIsAwesome_appDeleagate. If you delete it it will auto type anyway. there is one in Ak_add_to_favourites.m 1 on line 39 #import "BT_appDelegate.h" 2 on line 94 BT_appDelegate *appDelegate = (BT_appDelegate *)[[UIApplication sharedApplication] delegate]; 2 on line 192 BT_appDelegate *appDelegate = (BT_appDelegate *)[[UIApplication sharedApplication] delegate]; Ak_favouriteList.m 1 on line 2 #import "BT_appDelegate.h" 2 on line 55 BT_appDelegate *appDelegate = (BT_appDelegate *)[[UIApplication sharedApplication] delegate]; 2 on line 76 BT_appDelegate *appDelegate = (BT_appDelegate *)[[UIApplication sharedApplication] delegate]; Now if you run you should have it all loaded with no errors yippee. That's it there is a tutorial inside the plugin that explains how to put the add to favourites buttons in. Good luck and happy apping.
 
shak77
buzztouch Evangelist
Profile
Posts: 399
Reg: Jan 18, 2011
location unknow...
7,240
like
11/09/13 07:05 AM (12 years ago)
Thank you so much, Kittsy!
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
11/09/13 07:06 AM (12 years ago)
:)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/09/13 04:40 PM (12 years ago)
Another pearl. Thanks Kittsy! Cheers! -- Smug
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/09/13 05:45 PM (12 years ago)
I'm going to link this in the BTM Marketplace, superb thread/tutorial! David https://buzztouchmods.com/market
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
11/09/13 06:02 PM (12 years ago)
Sorry for the dumb question, but can you explain: "The plugins can be hard coded into your iOS project but this then this will reset if the project is updated? I know the plugin folder is dragged into xcode and compiled. When I make a change within the plugins in my control panel, it looks to be updated when I try it on a device. Is it just the Add to Favourites plugin that doesn't update? Thanks.
 
mishgolf
Aspiring developer
Profile
Posts: 98
Reg: Nov 02, 2012
Sunshine Coast,...
980
like
11/10/13 12:36 AM (12 years ago)
Thanks Kittsy. Big help, great plugin!
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
11/10/13 02:34 PM (12 years ago)
@Kittsy, I am self-hosted but if I wasn't I'd love you right now! But I love you anyway :) Thanks for taking the time to write a great tut and for a great plugin! Farcat
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/10/13 04:03 PM (12 years ago)
 
GraciousWolf_PE
Aspiring developer
Profile
Posts: 372
Reg: Feb 15, 2012
Montreal
10,720
like
11/13/13 10:07 PM (12 years ago)
Hey Kittsy! I know I was one of those that messaged you about the Favourites plugin - thanks for this tutorial, worked like a charm! I saw your previous post and it's understandable that you're very busy at the moment, but on the off chance that you see this post, how easy would it be to incorporate the self-hosted "Favourites" plugin into an Android project? And how would you add the "+" button? Thanks again for this wonderful plugin. I was going to wait for the BT market to re-open, but it's been one of the features that my educational apps absolutely needed with hundreds of lessons, games, and activities. Thanks again! Nicholas
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/14/13 09:58 AM (12 years ago)
To add the + button read the PDF included in the plugin! David https://buzztouchmods.com/market
 
GraciousWolf_PE
Aspiring developer
Profile
Posts: 372
Reg: Feb 15, 2012
Montreal
10,720
like
11/14/13 11:49 AM (12 years ago)
Ah, nevermind, thanks David, I just realized that the plugin is only for iOS! Thank you. :) Nicholas
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/14/13 11:52 AM (12 years ago)
No problem! Cheers Nicholas! David https://buzztouchmods.com/market
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
11/21/13 11:36 AM (12 years ago)
Kittsy, I am having some issues now with this plugin with the new BT 3.0 projects. Specifically it references the BT_viewControllerManager.h file and "screenData" which no longer seem to exist. Any ideas on how to fix this?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
11/21/13 12:03 PM (12 years ago)
hi muzzy, currently at the day job will try and take a look. I'll sort a fix, can you not still compile with the older versions
 

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.