Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 107

twotonesimone
Aspiring developer
Profile
Posts: 26
Reg: Sep 01, 2012
Wadhurst
4,060
10/05/12 01:05 PM (13 years ago)

calendar type plugin

anyone working on a calendar type plugin? Ideally that shows month overview and you can add things to days to show in app? the person who does this first is going to be able to charge big money for this one I think its in high demand
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
10/05/12 04:52 PM (13 years ago)
I've been working on one, but making the database to store local values has been a pain, I've been looking into how the notepad does it, and to say the least, it might take a few weeks before I can tackle it fully. If everyone was self hosted, it would just be a matter of storing it into their databases, it would be a public plugin through, and not local. Perhaps a option to turn public and local on and off. Ahhhh! If another plugin developer beats me to it, so be it! ;p I'll definitely post here for you if I make a breakthrough.. Cheers, David https://buzztouchmods.com
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/06/12 01:42 AM (13 years ago)
Hi Guys...some thoughts... Not everyone needs to be self hosted to get something like this working. Getting technical here, @MrDavid will understand what I'm saying, not sure about @twotonesimone? ... There are two key elements to this. The view in the device and the way you manage the items. The way you manage the items in the list / calendar can be standard database stuff. Think "child items" just like menu rows, buttons, map locations, etc. Each item on the Calendar is a child item of the Calendar Screen. Thinking in these terms helps you understand that you dont' need to be self hosted to use something like this. The already setup database on buzztouch.com, or self hosted, could handle this type of plugin without any modifications to the database structure. Calendar data that the app consumes, that comes from the config file or a URL for that screen would look something like... {"itemId":"111", "itemType":"calendarPlus", "itemNickname":"work calendar", "navBarTitleText":"Calendar", "childItems":[ {"itemId":"01", "itemType":"calendarPlusItem", "startDate":"01/01/2012 02:00 PST", "endDate":"01/01/2012 02:45 PST", "title":"Board Meeting", "description":"be there or be square", "location":"location info", other properties for a calendar item..."}, {"itemId":"02", "itemType":"calendarPlusItem", "startDate":"01/01/2012 02:00 PST", "endDate":"01/05/2012 02:45 PST", "title":"Board Meeting", "description":"be there or be square", "location":"location info", other properties for a calendar item..."}, {"itemId":"03", "itemType":"calendarPlusItem", "startDate":"01/01/2012 02:00 PST", "endDate":"01/07/2012 02:45 PST", "title":"Board Meeting", "description":"be there or be square", "location":"location info", other properties for a calendar item..."}, ] } The control panel's index.php file for this plugin would allow the user to enter items, just like entering map locations, buttons, rows, etc. Next, the device consumes this data just like all the other screens. How you display it could get tricky, or be super simple. In the simplest manner, the calendar items would be displayed on a vertical list, just like a menu. Tapping a row would lead to a screen (that's included in the plugin) that loads the details. This details screen could be created using Interface Builder. Heck, it could look super sweat if the event items (child items) included enough data like street address, image, whatever. Another more complex example would be to show this data on the default calendar (iOS or Android). In iOS this idea would use the EventKit framework. EventKit allows developers to add / remove events to the users calendar on their device. Lots and lots of ways to display this data. I would lean towards a simpler, easier to understand list type screen so everyone that uses the app is sure to be "looking at the same thing" and not try to add things to user calendars. It always gets dicey when your app adds things to user calendars. Even if they know it's happening they almost always come back to it later and ask "how did that get on my calendar!" @MrDavid...you can so do this!
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
10/06/12 09:46 AM (13 years ago)
I'm so on it @David, thanks a ton. Keep an eye on this thread? I might need a little push here and there! This is the first time I'll be working with JSON directly. David https://buzztouchmods.com
 

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.