Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 28    Views: 154

chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
01/11/13 11:52 AM (13 years ago)

2 new plugins submitted

I just submitted 2 new plugins. The Webform Generator and User Settings. The "User Settings" plugin is an add-on to the Webform Generator plugin. See videos below for a demo. You may need to give it a minute to process the video. Webform Generator: http://youtu.be/ayAH2HXLmX8 User Settings: http://youtu.be/K81E0L_8-VA
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
01/11/13 12:01 PM (13 years ago)
looks useful, needed a solution for forms, good job.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/11/13 01:14 PM (13 years ago)
That webform looks radical. Waaaaaay cool. Can't wait to test it! Cheers! -- Smug
 
Black White
I hate code!
Profile
Posts: 292
Reg: Feb 22, 2012
hanoi
4,770
like
01/11/13 01:40 PM (13 years ago)
good job @chis1 :)
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
01/11/13 01:44 PM (13 years ago)
Webform looks ace. Hope someone creates an android version.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/11/13 01:53 PM (13 years ago)
Very nice @chris1! How did you set up your self-hosting like that? LA
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/11/13 01:57 PM (13 years ago)
Hi Chris, Good job and well done!! Best Regards, Danny
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/11/13 01:59 PM (13 years ago)
Thanks-it's standard self-hosting setup. I installed it just to work on this plugin
 
chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
like
01/11/13 02:06 PM (13 years ago)
This could be very useful. Although, I am kind of curious to where the data is sent? I saw you enter "fieldnames" into some of the text boxes... when you entered the url for the submit button...are you including that script with the plugin?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/11/13 02:12 PM (13 years ago)
You'll need to serve your own php file, but I can help with how to write it.
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
01/11/13 02:19 PM (13 years ago)
Great plugin. Looking forward to seeing it in the market. Will the package include .php file as well? Thanks,
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/11/13 02:23 PM (13 years ago)
Doesn't include a sample php script, but I can post a how-to with one once it goes live.
 
chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
like
01/11/13 02:23 PM (13 years ago)
I'd definitely recommend including sample php file with the plugin package because many users don't know how to code PHP. I'd hate to have to spend money on a plugin I couldn't utilize because I didn't know how to code the php file. Would definitely appreciate any help or tutorial of some sort of the file you have already :)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/11/13 02:35 PM (13 years ago)
It's do best as a how-to I think, so that people can easily customize to their needs. I can link to it in the instructions for easy reference. How-to will include a sample script as well as instructions.
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
01/11/13 03:04 PM (13 years ago)
That'll be most welcome. Thanks,
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/11/13 03:17 PM (13 years ago)
Great job!! I like that it can be customized and lots of settngs.Looking forward to it in the market! Congrats
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
01/11/13 03:48 PM (13 years ago)
Looks awesome! The only question, can the slider be dictated as to the value increase? Eg: You have 10>100 and the value shows as 46.26, can it go 40-41-42-43... (whole numbers, or 40,45,50 etc) Just a thought. Look forward to this as I'm working of data forms now for an app, this would make it much more flexible! Thanks.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/11/13 03:50 PM (13 years ago)
You could easily add a line of code to do so. Once it goes live I'll help u with that.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/11/13 10:04 PM (13 years ago)
OMG -- you rock, Chris! I just told my wife that you started from HTML and have learned yourself to this amazing level with BuzzTouch and much perseverance! Let me have at those plugins, hurry up board-of-review! :-) While you are still energized, I suggest to comment the code in the manner that David Book explains in the Webinars. // -- Niraj
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/11/13 10:05 PM (13 years ago)
Oh forgot to ask ... Any chance the videos can be output at a higher resolution of 720p? Then we can read what's on your screen instead of squinting. Thanks, -- Niraj
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/11/13 10:06 PM (13 years ago)
Thanks Niraj. I haven't watched the webinars yet, but I did add a good deal of commenting and debugger-output into the code. Probably still not up to David's standards though ;) As for the videos, sorry about that - I was using Quicktime to do the screencast, since that's what I have. I'll post some screenshots of the control panel pages.
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
01/12/13 07:56 AM (13 years ago)
Currently I presume I can't preload fields via php and a SQL database? Does it (or can it in the future) use the data URL to pass values in? Cheers.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
01/12/13 09:45 AM (13 years ago)
Congrats Chris. Miguel
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/12/13 10:43 AM (13 years ago)
@Fingers Crossed: You're correct that the plugin currently isn't set up to receive data from a sql database to prepopulate. I'll have to think about how that can be accomplished. It should certainly be possible though. As far as passing in data via the URL, I haven't tested that out, but I think it will work. However, there's another way that might be even better. Something I didn't demo in the video but will be an important part of the plugin is hidden fields. You can set up as many "hidden fields" as you want on the control panel, along with the field name and value that should be sent. Here's how that might work: Let's say your php script will send an email with the user data. If you only have one screen of the plugin in your app, you could set up your php file to receive the data and send it to a certain email address. However, let's say that you have multiple forms in your app, or across your collection of apps. Further, let's say that each form should send an email out, but to a different email address. You could have a different php for each form, or you could do it all with one like so: The php file would look something like this: $to = $_POST["adminEmail"]; ------- Then, the hidden field added to the plugin would look like this: Field Name = "adminEmail" Value = "[email protected]" Hopefully that makes sense. Screenshots are coming next.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/12/13 11:06 AM (13 years ago)
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
01/12/13 11:37 AM (13 years ago)
Sold! Tim
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
01/12/13 03:17 PM (13 years ago)
This plugin reminds me of the JSON Snippet Keeper in complexity. There are a few others like this in the queue--really for advanced users, but something worth the effort to learn. Maybe we should schedule a webinar with Warren on plugins like this. Then the new users could refer to the video recording of the webinar on an ongoing basis.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/12/13 06:50 PM (13 years ago)
Okay - so @Fingers Crossed got me thinking. It's definitely possible to load values from an online database. But there's several approaches that can be taken. Essentially, they boil down to using server-side processing (e.g., php, ruby, etc) to create a JSON output from an SQL database. Here's what that would allow: Option 1) Dynamically load forms from an SQL database, using the same fields and values for all users of the app. This is possible already using the dataURL property of the plugin. It gives the advantage over creating the form on the Buzztouch control panel in that fields can be populated using your already existing database, and changed on the fly as the database changes. Option 2) Change the User Settings plugin to allow for both saving info to the device (as it is now) and sending the data to a webserver for storage in an sql database; Also, change the User Settings plugin to load data from the database. This would allow users to "sync" their information with the cloud. Possible rejection from Apple, though, if they decide you should be syncing with iCloud, not your own cloud. Option 2 could become powerful if you combined it with hidden fields. For instance, you could set up the User Settings like a login screen, where you have input fields for username and password. Then you have however many hidden fields on that screen that would store data retrieved from the database. That data gets saved to the "settings" file on the device, which can be accessed and automatically loaded from a Webform Generator screen, or any other plugin screen that was adapted to load information from the settings file. Since the information would be saved to the device, users would only need to enter their information once. This, of course, is only for advanced users. But the possibilities are big.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/12/13 09:26 PM (13 years ago)
Okay - here's something else the plugin can easily be adapted to do. -After hitting the submit button, the resulting php file could output a url to the screen. The plugin could grab the url, then go to a Custom URL screen and load that url. Or, for that matter, it could grab anything else and process it as needed. Of course, you may need a custom plugin to display the data the way you want it.
 

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.