Discussion Forums  >  Uncategorized

Replies: 12    Views: 531

MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
08/02/11 06:31 PM (14 years ago)

Has anyone gotten Custom Plugins to work?

Followed the documentation and David's post here: http://www.buzztouch.com/forum/thread.php?tid=4428C12C6969387495D4A0F&status=&searchInput=custom&sortColumn=FT.dateStampUTC&sortUpDown=DESC¤tPage=1&doViews=1 No luck. I've done a lot of trial and error and code modification, but just end up crashing the app. Anyone able to help?
 
Bytewizard
buzztouch Evangelist
Profile
Posts: 32
Reg: Jul 04, 2011
Manila, Philipp...
1,020
like
08/03/11 12:51 AM (14 years ago)
I got it working! Try this method : In the BT Control Panel create a temporary CustomHTML screen and link it to you menu item. Download the Source code, Extract then open the project in xCode Create new UIViewController base view under BT_plugins folder and name it myPlugin edit myPlugin.h to subclass BT_viewController parent class as stated in the BTv1.5 Documentation: see below #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import BT_viewController.h @interface myPlugin : BT_viewController { } @end Edit your BT_config.txt as follows: THIS IS YOUR MENU ITEM : { itemId : 2D0D94920EBFE0C3FA0F1E4, titleText : My Costum Plugin, loadScreenWithItemId:55E6ADF9F14F05E54766468 }, THIS IS YOU customHtml SCREEN { itemId : 55E6ADF9F14F05E54766468, itemType : BT_screen_plugIn, itemNickname:My Costum Plugin, classFileName : myPlugin }, Hope that help... :) Thanks!
 
Lyle @SFNeNT
buzztouch Evangelist
Profile
Posts: 168
Reg: Apr 29, 2011
Chicago, IL
2,830
like
08/03/11 04:44 PM (14 years ago)
How would I go about getting this to work on Android, I have a functional app widget for one of my apps but I can only get it to display tittle and icon no content. Anyone know how I would link the content of my app to the widget?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
08/03/11 06:12 PM (14 years ago)
@DJBytewizard - Thanks. That was helpful. I've been able to get it to work so far as an item on a menu list. Still trying to figure out how to trigger it from a tab. By the way, I ended up using childitems to make it work. {itemNickname:Store, itemId:4023F7DA59F7D8CFE3787DC, itemType:BT_menuItem, navBarTitleText:Store, hideFromSearch:0, childItems:[ {itemId:DFA42272AAC0A9BC8005D98, itemType:BT_menuItem, loadScreenWithItemId:272869888D996F0329CD05E, loadScreenWithItemType:BT_screen_plugIn, titleText:Custom Plugin}]},
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/03/11 11:11 PM (14 years ago)
@DJBytewizard: Great post. Tough do pull this stuff off without any examples, or control panel support. @MGoBlue: To set the screen you created as the home screen for a tab, find the tabs array near the top of you config data. Set the homeScreenItemId of one of the tabs to the unique id of the plug in screen you created. In the example above your tab would be homeScreenItemId:4023F7DA59F7D8CFE3787DC
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
08/04/11 06:45 AM (14 years ago)
@David: Thanks. I thought the same thing and have tried it, but always get a Screen not found? error. I actually posted the wrong code above. What I've been successful with is: {itemNickname:Menu, itemId:5AB61502B482C627CF3C300, itemType:BT_screen_menuList, navBarTitleText:Menu, childItems:[ {itemId:DFA42272AAC0A9BC8005D98, itemType:BT_menuItem, loadScreenWithItemId:272869888D996F0329CD05E, loadScreenWithItemType:BT_screen_plugIn, iconName:tag.png, titleText:Sports Store}, {itemNickname:Custom Plugin, itemId:272869888D996F0329CD05E, itemType:BT_screen_plugIn, navBarTitleText:Store, classFileName:myPlugin} If I use homeScreenID:5AB61502B482C627CF3C300 I get the menu list. If I use homeScreenID:DFA42272AAC0A9BC8005D98 or homeScreenID:272869888D996F0329CD05E I get a Screen not found?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
08/04/11 09:05 AM (14 years ago)
@David - By the way, I'm making good progress on trying to integrate in-app purchases with my BuzzTouch apps. It's definitely been challenging, but making progress.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/05/11 10:26 PM (14 years ago)
In App Purchse progress - awesome! Not easy for sure. Screen Not Found: Are you sure the name of the class file you created is myPlugin. You should have two files, myPlugin.h and myPlugin.m This class (the .h is the interface the .m the implemntation) should be a sub-classed UIViewController
 
lsmith
Code is Art
Profile
Posts: 12
Reg: Jan 30, 2011
Sacramento
420
like
09/08/11 06:13 PM (14 years ago)
This is a great discussion. I am going to try it tonight. Just what I was looking for.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/09/11 02:04 PM (14 years ago)
@ismith: Looks like a Sac-town club here (with Gold River above)... my digs too. Jump in if you can't get the plug-in thing going. It's super-nerdy and barely documented....can't wait to start making videos of all the plug-ins we've created here.... LONG list to work out after the 9/15 Android release ;-)
 
appdev2010
Aspiring developer
Profile
Posts: 8
Reg: Dec 01, 2010
Atlanta
80
like
10/05/11 08:48 AM (14 years ago)
David, I am having a similar issue as what MGoBlue is having with custom plugins for tabs. I am able to get it working on menu items. Is there anything different that needs to be done to get the custom plugins working for tabs?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/05/11 11:14 AM (14 years ago)
Hmm...as it turns out, Custom Plugin screens where NOT intantiating (fancy word for 'being created') when set as a tabs home screen. The download server has been updated with the fix and note added to the change log. One file was changed: BT_viewControllerManager.m in the BT_Layout folder. Two methods in this file were updated: initViewControllerForScreen() and handleTapToLoadScreen(). Re-download your project...should work ;-)
 
appdev2010
Aspiring developer
Profile
Posts: 8
Reg: Dec 01, 2010
Atlanta
80
like
10/10/11 12:38 PM (14 years ago)
Thanks David, that worked like a charm, appreciate the quick response.
 

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.