Discussion Forums  >  Self Hosted Control Panels

Replies: 12    Views: 106

Biplov
I hate code!
Profile
Posts: 97
Reg: Mar 01, 2012
Eindhoven
4,120
05/23/12 04:17 AM (13 years ago)

editing the plugins

Is it by some strange reason possible to change the codes of plugins in server itself?
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/23/12 04:56 AM (13 years ago)
Hi Biplov, Is this answering the question? http://www.buzztouch.com/forum/thread.php?tid=6C0AB90E606D12BCB6DE1E4 Best Regards, Danny
 
Biplov
I hate code!
Profile
Posts: 97
Reg: Mar 01, 2012
Eindhoven
4,120
like
05/23/12 05:01 AM (13 years ago)
Hi danny, I posted this before I saw ur comment in previous post. Sorry for that. our domain name is www.philipsappcms.com but after that i don't understand this part your_btserver_install, even my tutor didn't understand :(
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/23/12 05:06 AM (13 years ago)
Hi Biplov, Find the location of your plugin folder. That's what I'm trying to say with it. your_btserver_install should probably be your_btserver_install_directory. Some people have BT-Server installed in a subdirectory. That's why I mentioned it that way. OK in your case it should be : www.philipsappcms.com/files/plugins/bt_quiz/ios-source/BT_screen_quiz.m This is the file that's taken when you export your app from the control panel. If you make changes in this file, these changes will affect all apps you create after the changes where done! Much more understandable this way? Best Regards, Danny
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/23/12 06:15 AM (13 years ago)
@PSMDanny, good info & explanation. Perhaps, another method is to modify the plugin files then upload to the Control Panel. Fred
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/23/12 06:23 AM (13 years ago)
Hi Fred, Thanks. Your way of modifying would require (after modifying the files) to re-zip the plugin --> upload to Control Panel --> export your app --> import in xcode/eclips it's the same result but takes much more time than editing the files directly in xcode (and test) and after that make the same changes on the server-files for future projects. Or do I misunderstand your method? Best Regards, Danny
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/23/12 06:53 AM (13 years ago)
No, that's exactly what I meant. Certainly more steps, but some might find the process easier to understand. In addition doing it using my method helps them understand how to create a plugin. Fred
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/23/12 06:55 AM (13 years ago)
Hi Fred, Your absolutely right about the learning path. Happy for us all that multiple ways lead to the same reult and anyone should use the method they feel comfortable with. Best Regards, Danny
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/23/12 06:56 AM (13 years ago)
But what I do like about your method is the ability to test the changes in the plugin. Fred
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/23/12 06:58 AM (13 years ago)
Another point with your method is that every time you need to download the source again you make api-calls and they can be "expensive" Best Regards, Danny
 
Biplov
I hate code!
Profile
Posts: 97
Reg: Mar 01, 2012
Eindhoven
4,120
like
05/23/12 07:07 AM (13 years ago)
I don't have mac laptop with me here in office at the moment. so what I did was open the bt_quiz folder and made the change in the .m file, saved the file, zipped the bt_quiz folder, upload the changed plugin in the server and check if the change works. For some reason changing the code around the line 179 from .6 to .1 or .10 didn't create huge change. Red is still almost pink. I also tried .2 still no difference :( To change the code in server itself, We can only access the front end of our server right now. We have our ftp enabled but don't have account to login through ftp. My tutor have contacted the buzztouch team for this. Once I go home i'll download the code run it through xcode and check it in simulator once again. Hope it works then :)
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/23/12 08:20 AM (13 years ago)
Perhaps the "best method" is a combo, your method + my method, especially if you made multiple modifications to the plugin. Use your method to modify the plugin. Then use my method to install into the Control Panel Advantage is: you don't have to duplicate the changes. Don't have to worry about errors in duplicating modifications . You have modified plugin you can export to others. But as you noted, one should be aware of consequences, (API calls) and in the end the best method is always the most appropriate method for the circumstances. Fred
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/23/12 08:23 AM (13 years ago)
Hi Fred, Correct answer... you earn 100 points extra, haha. Best Regards, Danny
 

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.