Advertisement:

Author Topic: [HOW TO] Develop plugins for Osclass!  (Read 19729 times)

Hussard (Madhouse)

  • Full Member
  • ***
  • Posts: 214
  • Outlaw web developer & padawan designer.
Re: [HOW TO] Develop quality plugins (Madhouse guidelines)
« Reply #15 on: April 03, 2014, 12:44:18 pm »
This post was pinned in the development. Can it still be here ?  :'(

jorge.yoma

  • Full Member
  • ***
  • Posts: 127
Re: How to develop quality plugins (development guidelines)
« Reply #16 on: January 09, 2015, 07:10:19 pm »
Thanks for such a good lesson.

I have tried to implement it step by step.
But I got an error.
At first my error is
Quote
The installation generated an error:

Fatal error: Call to undefined function mdh_current_plugin_path() in /homez.***/********/www/a/oc-content/plugins/madhouse_helloworld/index.php on line 12

Regards

Then I scroll down and got the answer.
I have add the function that you write above, but it still generate error.
It's said
Plugin couldn't be installed because it triggered a fatal error

Quote
Fatal error: Uncaught exception 'Exception' with message 'Current file does not belong to a plugin!' in C:\xampp\htdocs\xxxx\oc-content\plugins\madhouse_helloworld\index.php:78 Stack trace: #0 C:\xampp\htdocs\xxxx\oc-content\plugins\madhouse_helloworld\index.php(94): mdh_current_plugin_name(Array) #1 C:\xampp\htdocs\xxxx\oc-content\plugins\madhouse_helloworld\index.php(12): mdh_current_plugin_path('oc-load.php') #2 C:\xampp\htdocs\xxxx\oc-admin\plugins.php(234): include('C:\xampp\htdocs...') #3 C:\xampp\htdocs\xxxx\oc-admin\index.php(84): CAdminPlugins->doModel() #4 {main} thrown in C:\xampp\htdocs\xxxx\oc-content\plugins\madhouse_helloworld\index.php on line 78

That's is for the plugin that I write self and renaming the variable.
So I try to install your plugin in the attachment and I add function that not added yet in index.php.
Then I tried to install it, it's got the same error.
Maybe there is something you forget to describe here  :)

Hi.

thanks Hussard for your work, but I can't install the helloword plugin.

I installed the utils plugin without problem, but any of your solutions make the hello word work.

B/R.


SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: [HOW TO] Develop quality plugins (Madhouse guidelines)
« Reply #17 on: January 14, 2015, 01:18:37 am »
The information of the architecture is very usefull and should definitely be part of OSClass documentation as well as a simple data diagram and explanation of the system's architecture and it's classes so it makes customizations easier and of higher quality (in line with Osclass meant architecture) as is explained by Hussard.

Compliments for explaining the view on how to go about Osclass plugins!


Thanks,
Eric
« Last Edit: January 14, 2015, 01:20:23 am by SmaRTeY »

jorge.yoma

  • Full Member
  • ***
  • Posts: 127
Re: [HOW TO] Develop quality plugins (Madhouse guidelines)
« Reply #18 on: November 13, 2015, 09:15:33 pm »
Hi,

I can't get to downlonad the utils, the link is broken. :-\

gaissa

  • Newbie
  • *
  • Posts: 13
Re: [HOW TO] Develop quality plugins (Madhouse guidelines)
« Reply #19 on: April 26, 2016, 06:46:46 pm »
Yes, where is madhouse_utils?

osclassics

  • Jr. Member
  • **
  • Posts: 91
Re: [HOW TO] Develop quality plugins (Madhouse guidelines)
« Reply #20 on: June 07, 2016, 01:05:58 pm »
Also looking for the utils download link, it is not on the Madhouse page?

Hussard (Madhouse)

  • Full Member
  • ***
  • Posts: 214
  • Outlaw web developer & padawan designer.
Re: [HOW TO] Develop quality plugins (Madhouse guidelines)
« Reply #21 on: July 27, 2016, 04:51:17 pm »
Hello everyone,

After almost two years, here's the second part of the tutorial: How to develop Osclass plugins - part 2

It shows how to create an admin page and a settings page, how to use paginations and how to manage version and upgrades! :)

Important: I've updated the original tutorial to work without Utils and uploaded the source code to Github: Madhouse HelloWorld.