Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 93

thepiguy
Code is Art
Profile
Posts: 2
Reg: May 25, 2012
Cochrane
4,720
05/27/12 12:30 PM (13 years ago)

Advice Creating a Custom Plugin

I need to make a page on its own with many different buttons, text fields, etc. on it. Is there a tutorial or video that can explain how to go about doing this? If not, a quick explanation would be great.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/27/12 01:10 PM (13 years ago)
I would consider using HTML unless it has to be native (not that HTML isn't native). Fred
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
05/30/12 08:08 AM (13 years ago)
No tutorials or quick explanations that I've found. just lots of trail and error here for me but I'm making slow progress..... Read the "BT Installing and Creating plug-in guide" that is packaged in the server install file. That's where i started. Two major hurdles I keep running into: #1 - the BT "JSON Proprietary approach". I can modify raw code but interperting these chnages in code to work with the BT Control panel so the plug-in could be manipulated there - that is proving to be very tricky. requires some PHP coding. #2 - Every great code sample/tutorial i see/watch uses .XIB files to design the screen or connect actions to buttons. Haven't quite figured out how to use .XIB files in my BT project yet.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/30/12 08:21 AM (13 years ago)
#1 - the BT "JSON Proprietary approach". I can modify raw code but interperting these chnages in code to work with the BT Control panel so the plug-in could be manipulated there - that is proving to be very tricky. requires some PHP coding. Perhaps you'll teach us. #2 - Every great code sample/tutorial i see/watch uses .XIB files to design the screen or connect actions to buttons. Haven't quite figured out how to use .XIB files in my BT project yet. The reason is that Buzztouch frame work doesn't allow this. If you look at the various plugin readme.txt files you'll see, or better said, you won't see .XIB files. To do so you would need to jump out of the Buzztouch framework. Sorta of creating an app within an app. Fred
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
05/30/12 08:47 AM (13 years ago)
^^ not true. I have seen posts here with users that claim to have sucessfully used .XIB files in BT projects. i'd love to hear from the guys in this thread and see an sample of how they did it. http://www.buzztouch.com/forum/thread.php?tid=69BA9F58F348D52E3CAB150&command=isSearching&currentPage=1&topicTitle=xib&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= I'm getting close i think...... I've got XIB files in my BT project and it compiles and works. I just can't get that screen linked to my BT screen yet!
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/30/12 09:06 AM (13 years ago)
"I've used .xib files while calling a custom plugin in BT. Works just fine. In the existing plugins, I believe you dont see any .xib files because they all re-use the main views created by BT already." from that post referenced above. That's my point, Buzztouch dynamically creates screens from the files using JSON. To use your XIB files you need to create an activity. That activity wouldn't be a Buzztouch activity but an iOS activity. You need to create a Buzztouch window to call on said activity. It can be done via a URL. One of the Buzztouch_mods guys posted how to in iOS. (Don't have the link. ) (Haven't figured it out in Android) OR, Create a Buzztouch screen / action that launches the activity (call us Screen). Fred
 

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.