Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 14    Views: 93

Innovativegeek
Code is Art
Profile
Posts: 60
Reg: Jul 29, 2011
Orlando
3,400
10/10/13 07:21 PM (12 years ago)

Creating an App Template

Greetings BT community! If this post is not in the proper forum apologies. I am working on a project for a client (creating 2 identical apps,except for graphics used). I was wondering if there was a way to make a copy of the app and create a duplicate (which would save me time from having to recreate each individual page). I hope the above makes sense lol. Thanks in advance for any help :)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/10/13 07:26 PM (12 years ago)
If you're running self hosted, the 'Screen Copy and Paste Utility' over at BT Mods can help. It copies non-menu screens from one project to another. https://www.buzztouchmods.com/downloads.php?cat_id=2&download_id=49 Cheers! -- Smug
 
Adam
Aspiring developer
Profile
Posts: 247
Reg: Oct 23, 2010
Southern Califo...
4,470
like
10/10/13 07:27 PM (12 years ago)
If you have a self hosting server, this works great (By:SmugWimp): https://www.buzztouchmods.com/downloads.php?cat_id=2&download_id=49 Adam
 
Adam
Aspiring developer
Profile
Posts: 247
Reg: Oct 23, 2010
Southern Califo...
4,470
like
10/10/13 07:29 PM (12 years ago)
Sorry for the duplicate post. I guess we were writing at the same time haha. Adam
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/10/13 07:30 PM (12 years ago)
Thanks for the kind words and endorsement, Adam :) Cheers! -- Smug
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
10/10/13 07:49 PM (12 years ago)
How about if you are NOT self hosted? Kevin
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/10/13 08:00 PM (12 years ago)
Unfortunately, if you're not self hosted you're limited to the default capabilities within the BT hosted server which currently do not support outside scripts. If this were the case with no plans to migrate off later, I'd say document each screen so that it can be manually duplicated as easily as possible, and any 'childItems' I would have as a separate file so that it can be easily duplicated or linked to the new screen. Cheers! -- Smug
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
10/10/13 08:30 PM (12 years ago)
Echo the above. Self hosted is the place to be, so much more power and versatility. The BT version is rock solid but going sold hosted gives you that extra ounce of power as documented above.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
10/11/13 04:24 AM (12 years ago)
> if there was a way to make a copy of the app You can use the JSON Snippet Keeper to help you transfer the parts of the internal structure of an app from one app to another. The best way to do this would be organize the app so that it uses JSON from the external files only. Whenever there is an option such as Screen Data URL in the description of the screen, you can use an external file for JSON. The point is that such an external file can be read both from an Android and from an iOS app, withouth change. Smug has a utility to copy parts of an app and it is useful indeed, except that you will have to manually create the menus yourself. External JSON is the way to go, I'm afraid!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/11/13 02:33 PM (12 years ago)
I don't know how I forgot the Json snippet keeper... If you only buy one plugin, that is the one to buy. It's probably the most powerful plugin available, with respect to project modification. And yes, for app duplication in a BT Hosted environment, it's the preferred method. Cheers! -- Smug
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
10/11/13 02:37 PM (12 years ago)
Hey Smug, have you given any thoughts on creating a utility that will copy a screen WITHIN an app? My app has over 1000 screens, and recreating a Thumb Viewer screen or Youtube screen for example is very time consuming, when I only need to change a single filename at the end of a URL, lol. It would be great to select a screen and say "Make X amount of copies"... then I could make say 100 youtube screens at once, all with the same settings, then just go in and change the one line I need in each one.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/11/13 02:48 PM (12 years ago)
If you're self hosted the screen copy utility should cover that... but only one at a time... You're saying create (user defined quantity of) screens ? That could get dangerous, lol! Cheers! -- Smug
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
10/11/13 02:56 PM (12 years ago)
lol, yes, it could get dangerous, unless you knew exactly what you were doing. I could see one typo making your app have 1000 screens instead of 10. Maybe have a popup saying "Are you sure?". Maybe another fail safe on top of that if the quantity is over a certain threshold (say more than 20 screens requires you to enter a password or something). I didn't know that the screen copy utility could copy screens within the same app, I thought it was only from one app to another. I'll have to give it a try. I scoped it out not too long ago, but never installed it because I didn't have the need to go from one app to another. I'll see if I can play with it this weekend. :)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/11/13 03:02 PM (12 years ago)
Basically you'll just choose the same app as your source as well as your destination. I think it'll work. If not, I can show you an edit that will allow you to. Cheers! -- Smug
 
Innovativegeek
Code is Art
Profile
Posts: 60
Reg: Jul 29, 2011
Orlando
3,400
like
10/13/13 01:17 AM (12 years ago)
Thank you everyone for all the great responses. Definitely going to explore some of the options, and see what works best for me.
 

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.