![]() |
|
zen photo plugin creation [first steps] - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: zen photo plugin creation [first steps] (/thread-4626.html) |
zen photo plugin creation [first steps] - schwingel - 05-02-2009 Hi. Recently I started studying zenphoto plugins, My attempt is to integrate zenphoto with zencart, Well but, i'm already blocked in the first steps of this process. because when I tried to create an example plugin I'm facing a problem. Probably i'm jumping some important step in the basics of plugin creation. My problem is: after created, included in the directory plugins, my plugin file zenCart.php is discovered by zenphoto and appears in the configuration page. Bu when i tried to enable it (i clicked in the checkbox. etc. ) everything appear to be ok, but in fact it`s not enabled. when i execute an reload the checkbox appears unchecked again. somebody can help me, please. Regards from Brazil. A. zen photo plugin creation [first steps] - acrylian - 05-02-2009 Did you check the error log? Anyway, without a code example of your plugin we can't really help. zen photo plugin creation [first steps] - schwingel - 05-02-2009 Hi Acrylian. Thanks for the response. In the server logs I didn't find any useful info. I'm didn't checked the zenphoto logs. Actually... has it logs? I tried to find it, but I can't. Well, my code started getting the paypal plugin and exchanged every point where i have an 'paypal' string to 'zenCart' string. The file names are modified too. It was my first attempt and didn't work. Then I started cutting the code. And did tests with the same paypal modified files cutting all the code mantaining only the headers with plugin informarmation (author, version, etc). Didn't work too. after save checking the plugin option it dissapeared after a page reload. In my last test I just created a new file zenCart.php in the plugin directorie and tried to check and save the configuration. failed too. Do you know if there are a plugin template? an skeleton to be used to plugin developers? thanks in advance. A. zen photo plugin creation [first steps] - acrylian - 05-02-2009 There is no template, you could look at some of the included plugins but I guess you did already. Additionally we have a tutorial on our site. zen photo plugin creation [first steps] - schwingel - 05-02-2009 Yes. I did it. I checked the documentation found in this link too: http://www.zenphoto.org/2008/04/zenphoto-plugin-architecture/ here's a sample (very simple) of the code from zenCart.php. With this example I have the option to enable the plugin, but after the the option is saved and a reload in the page is done the checkbox appears unchecked. zen photo plugin creation [first steps] - schwingel - 05-02-2009 Hi acrylian. I discovered the cause of the problem. I used another name to de plugin... a large one. Like zenCartPlugin and then it worked. I'm not sure why it do not work with the short name zenCart. Tryed with other names... like abc.php and worked well to. Just the zenCart appear to fail. Anyway, thanks for the help. Regards zen photo plugin creation [first steps] - schwingel - 05-02-2009 Hi acrylian. I discovered the cause of the problem. I used another name to de plugin... a large one. Like zenCartPlugin and then it worked. I'm not sure why it do not work with the short name zenCart. Tryed with other names... like abc.php and worked well to. Just the zenCart appear to fail. Anyway, thanks for the help. Regards zen photo plugin creation [first steps] - acrylian - 05-02-2009 You need the following setup for options:
} // class end Edit: Ok, glad you managed it. zen photo plugin creation [first steps] - dyeshurun - 22-02-2009 I am having the same problem with any plugin, also "official plugins". |