Discussion Forums  >  Self Hosted Control Panels

Replies: 27    Views: 151

David_Mollet
I hate code!
Profile
Posts: 70
Reg: Nov 05, 2011
Melbourne Austr...
5,500
11/14/12 04:08 AM (13 years ago)

Seeking Guidance From My Expert Colleagues RE Self Hosted Install

Hi fellow Buzztouchers, I’d really appreciate some help here as I’m doing something that a lot of people have considered, but I’m not sure anyone has done yet, I’m actually hiring a programing professional to make a plugin for me! (coz really guys, I’m not fit to shine the shoes of a programmer, even though many of you have encouraged me to have a go). My guy is called Victor Tatarasanu, and I’m paying his firm to develop a Loyalty Plugin for BOTH iPhones and Androids. It’s a bit scary paying to have a plugin made, it’s a big commitment for me and I have a budget I’m desperately trying to stay within. Victor is an experience App Developer, he's a bright guy but he has never seen or worked with Buzztouch prior to this and I’d really appreciate it if you guys could support me by supporting him when he has a question (if you can It'll definately save me some money and help me complete the project). As I understand it, he is having some problems related to setting up the self hosted control panel. I know heaps of you guys have tons of experience on this and it would really make a huge difference to me if you could help Victor out. He’s going to post his questions below, thanks in advance for your support and over to Victor…
 
David_Mollet
I hate code!
Profile
Posts: 70
Reg: Nov 05, 2011
Melbourne Austr...
5,500
like
11/14/12 04:38 AM (13 years ago)
Whoops, Victor accidentally used my account to post... Lets try that again so you can meet him - Take 2, introducing Victor...
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 04:44 AM (13 years ago)
David, thank you for warm welcome. I have installed buzztouch on my local machine having XAMPP as a server. I created a test plugin using plugin creation tool but i can't install it on dev server. I'm getting: Error Un-Zipping Archive? This error is sometimes caused by the type of software that was used to create the .zip archive, it could not be opened. Before debugging the code i guess it's best to ask if you if you encounter the error. Regards, Victor Tatarasanu
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 04:57 AM (13 years ago)
---
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
11/14/12 05:32 AM (13 years ago)
Best advice for this error is to unzip the plugin and install manually in the plugins folder (files-->plugins). Then go to to "Plugins" (on the front end) and click "Refresh Plugins" and it should appear. I have used this procedure when things wouldn't go as planned. Regards, Andy
 
David_Mollet
I hate code!
Profile
Posts: 70
Reg: Nov 05, 2011
Melbourne Austr...
5,500
like
11/14/12 05:43 AM (13 years ago)
Good idea. it worked :)
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
11/14/12 05:44 AM (13 years ago)
Happy to help. Even happier that it worked! :)
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 05:45 AM (13 years ago)
Thanks. I will come back with other questions if i'll need.
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
11/14/12 05:46 AM (13 years ago)
I'm no expert, by any means, but will be happy to lend a hand when I can. Andy
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 06:37 AM (13 years ago)
Hm.. i was looking into database for a plugin and I was trying to understand how you add a property to an plugin for example 'second name'. I have to describe it somewhere ? Or it does this automatically - and i missed some step ?
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 06:47 AM (13 years ago)
Or maybe I need to alter the table in the save_Json.php, though doesn't seem a good way to do it.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/14/12 06:52 AM (13 years ago)
Hi @victorash, Welcome! Can you explain a little more about "database for a plugin" and "second name"?
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 07:06 AM (13 years ago)
Hi @LA, I was creating a new plugin and i was starting with adding a new property (similar to Screen Name) - textfield. My first thought was that it saves the value into the database in a separate column. When i saw again the DB structure, I realised isn't happening in that way. So, after i added this new property in the plugin everything seems fine, it saves the value, but after refresh i don't get back the value stored. I guess it's a mistake in plugin's index.php file.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/14/12 07:08 AM (13 years ago)
Hey @victorash, That would be my first check would be the index.php. You making a plugin for a database? LA
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 07:11 AM (13 years ago)
No, By database i'm referring to the BT_Server database. I thought every plugin has an entry with custom rows. But i saw then bt_items and changed my thoughts. :)
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/14/12 07:12 AM (13 years ago)
lol ok now I understand. LA
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 07:57 AM (13 years ago)
What's the best approach when developing a plugin? I just created a plugin, added a new property for test, test it on my local bt server, and uploaded back to buzztouch.com. When i try to use it I don't see the changes. I'm missing something ?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/14/12 08:00 AM (13 years ago)
@victorash, Try making the changes in the config text in the control panel to reflect the id, type...etc. LA
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 08:03 AM (13 years ago)
@LA, You're saying that I should change version number, or ?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/14/12 08:10 AM (13 years ago)
In your config.text, make sure the screen id's match, itemId, itemType...like if you have childitems. Take a look in your control panel under configuration data. LA
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 08:15 AM (13 years ago)
I don't see the changes made in the index.php. So, the plugin screen is default. Should i wait for a review/approval ? I guess without and apiKey I can't test the plugin locally ? - meaning making an app, add some screens, download it and run it in xcode ?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/14/12 08:27 AM (13 years ago)
Yes you can test it on iphone. LA
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
11/14/12 08:28 AM (13 years ago)
You will need a Buzztouch API key to compile, download and then run on your phone.
 
victorash
Apple Fan
Profile
Posts: 11
Reg: Sep 25, 2012
Cluj-Napoca
1,960
like
11/14/12 08:31 AM (13 years ago)
@LA, @andydahl, Thank you guys for taking time to answer my questions. I will acquire a licence and I will try again.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/14/12 08:41 AM (13 years ago)
@victorash, Sorry I just assumed you were using @David_Mollet account. LA
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
11/14/12 09:30 AM (13 years ago)
welcome Victor! I would definately suggest watching this excellent video David made on building a BT plug-in. http://www.youtube.com/watch?v=OJrMVTn8z0s&feature=youtu.be That video unraveled the mystery for a lot of us that have been using BT and trying to build plug-ins. The information and demonstration David does in there will teach you how to build a working plugin. He shows you exactly how to connect it to the control panel. Everything is there you need and David is an awesome teacher/instructor. This post here has sample code and also a must read for you: http://www.buzztouch.com/forum/thread.php?tid=61A19811BADC9373C0AC264&command=isSearching&currentPage=1&topicTitle=json&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= It may not not be bad to watch some of the other how to videos. I would learn to build a single screen app first before you start designing viewcontrollers. @DavidMollet - you need to set him up with a self hosted install. This way he can test his code and the Control Panel without waiting for BT approval. he'll get nowhere fast without self hosted as BT thankfully has a as a review process before you can load scripts on THIER server.
 
David_Mollet
I hate code!
Profile
Posts: 70
Reg: Nov 05, 2011
Melbourne Austr...
5,500
like
11/14/12 07:05 PM (13 years ago)
A big thanks to everyone here who has supported me by supporting Victor, I am extremely grateful and feel very lucky to be part of a community like this that goes out of its way to help each other - truly, you're all awesome people.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/15/12 06:51 AM (13 years ago)
Pleasure @David_Mollet...I didnt help much but I tried my best. LA
 

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.