Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 67

CKP
Aspiring developer
Profile
Posts: 10
Reg: Dec 20, 2012
Provo
6,400
01/18/13 04:57 PM (13 years ago)

Add strings to Custom HTML/Text Plugin

I want to add a string (the date) in the header of the plugin screen and variable text (based upon the date) in the main part of the screen. What intro phrases, etc. do I need to add to the JSON code to get this to happen?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/18/13 05:06 PM (13 years ago)
I've not done a plugin, so I'm not the guy to ask. But, here is some sample PHP code with which you can say (if it's 8am) good morning (if it's 8pm) good evening... http://stackoverflow.com/questions/7294711/do-this-only-if-between-this-timeframe Good Luck! Cheers! -- Smug
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/18/13 10:44 PM (13 years ago)
Are you modifying an existing plugin or making a brand-new plugin?
 
CKP
Aspiring developer
Profile
Posts: 10
Reg: Dec 20, 2012
Provo
6,400
like
01/21/13 09:37 PM (13 years ago)
I want to use the current plugin, if possible. The screen format that I'm going for is: Header -- Current Date Section One -- Variable text based upon the Current Date Section Two -- Variable text based upon the Current Date Footer -- Various "buttons" (I have the sections currently in a csv table formatted as follows: Date Section One Section Two
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/22/13 12:20 AM (13 years ago)
If you don't have many screens, can you use the WYSIWYG editor to get the job done? I would edit it in HTML mode and use an HTML <table>. If you insist on using JSON, then a custom plugin is a solution. On the Q&A Webinar from Jan 13, 2013, watch at the 45-minute mark on modifying the Menu-with-Header plugin to add in more "regions" onto the screen. http://www.youtube.com/watch?v=Cfc5aBim0ZU -- Niraj
 
CKP
Aspiring developer
Profile
Posts: 10
Reg: Dec 20, 2012
Provo
6,400
like
01/22/13 09:22 AM (13 years ago)
If I understand David's presentation correctly, all of these modification are made at the xCode and Eclipse levels not at the Buzztouch level. So the "coding"/modifications need to be done twice if I want the app to be on both platforms?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/22/13 09:31 AM (13 years ago)
@CKP -- you understand correctly, for custom plugins, you will have to make a plugin in Xcode and in Eclipse. Some plugin developers choose to release their code for only one or the other platform. -- Niraj
 
CKP
Aspiring developer
Profile
Posts: 10
Reg: Dec 20, 2012
Provo
6,400
like
01/22/13 09:45 AM (13 years ago)
Thanks Niraj. So to summarize. Buzztouch and plugins get one part of the way toward the finished app (especially if there is no customization) but if the app design is outside of the plugin specifications, xCode and Eclipse must be used to programmatically make this happen. Plugins cannot be modified at the Buzztouch level to accommodate these design changes.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/22/13 07:11 PM (13 years ago)
You can modify an existing plugin, as I am currently doing. I am modifying as described in the Q&A Webinar from Jan 13, 2013. Watch at the 45-minute mark on modifying the Menu-with-Header plugin to add in more "regions" onto the screen. http://www.youtube.com/watch?v=Cfc5aBim0ZU It was exciting, I got the two cells to show up on the iPhone with that customization! Next step is to make the corresponding changes on the PHP side, such that the two cells can be configured via the BuzzTouch Control Panel. Is this making sense? -- Niraj
 
CKP
Aspiring developer
Profile
Posts: 10
Reg: Dec 20, 2012
Provo
6,400
like
01/23/13 06:48 AM (13 years ago)
Very helpful. Thanks for your help.
 

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.