Advertisement:

Author Topic: [UPDATED 7-Sep] TWO new plugins for our beloved osClass  (Read 5663 times)

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
[UPDATED 7-Sep] TWO new plugins for our beloved osClass
« on: September 04, 2010, 12:15:34 pm »
I'm developing two new plugins for Books and Textbooks. Textbook plugin depends on book plugin, it's an extension of the plugin.

Book Plugin:
It has subtitle, author, ISBN, year, edition and condition fields.

Textbook Plugin:
It has course (subject, i.e. maths, biology,...), course year (1º, 2º, 3º,...) and workbook (has it a workbook?). Since Textbook plugin depends on Book plugin, it has also the same fields as books.

Why not to develop two independent plugins?
Because they will share most of their fields and I don't want to bother the users asking for information is not needed. For example, a normal book will not have a workbook, so I prefer not to ask for them.


Wow that looks amazing, where can I download that amount of awesomeness?
- Books plugin
- Books Plugins v1.0.1
- Textbooks plugin

How do I use both plugins?
In order to use Textbook plugin, you need to install first Book plugin. After installing them, go to configure option and select which category you want to apply those attributes.


This is a beta release. So I will appreciate your feedback and help to improve them.

UPDATE
* Added "editorial" field to plugin, don't know how I miss this one before.
* Added support for experimental new search functions (don't worry, It's compatible with the actual system)


« Last Edit: September 07, 2010, 02:12:43 pm by _CONEJO »

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: TWO new plugins for our beloved osClass
« Reply #1 on: September 06, 2010, 01:50:17 pm »
Great Job!

As soon as I try it, I give you my feedback.

Regards,

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #2 on: September 07, 2010, 03:44:58 pm »
I found two minor errors. The two plugins have the same errors in common:
1.- In admin.php file doesn't work "check all" and "uncheck all". It's because the javascript functions are missing.
2.- When you uninstall books plugin without having installed textbook plugin, the redirect doesn't work well due to an echo.

Here you have the correct files:
- Book plugin: http://gist.github.com/568199
- Textbook plugin: http://gist.github.com/568201

For the rest, it looks great!

computerbar

  • Tutor
  • Sr. Member
  • *
  • Posts: 279
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #3 on: July 27, 2011, 06:57:16 pm »
Hello Guys
Anyupdate on this plugins?
Does it work on 2.1.1? why it is not available under plugins, if working!

I am after the ISBN plugin.

thanks
« Last Edit: July 27, 2011, 07:43:45 pm by computerbar »

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #4 on: July 28, 2011, 10:13:22 am »
computerbar, no, sorry, no updates and they will not work.

I will eventually update them sometime.

Raman

  • Newbie
  • *
  • Posts: 7
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #5 on: January 20, 2012, 12:40:47 pm »
I'm new to OSClass. Where can I download the Book and Textbook plugins to give it a spin?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #6 on: January 20, 2012, 12:43:18 pm »
Hi Raman,

I'm sorry, but you can not. I discontinued those plugins long long time ago

Raman

  • Newbie
  • *
  • Posts: 7
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #7 on: January 20, 2012, 12:46:52 pm »
Thanks for the quick reply. I want to start a free secondhand book mart. Are you able to point me in a direction -- one of these forums maybe?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #8 on: January 20, 2012, 12:58:12 pm »
Hi Raman

You oculd download the version on the first post of this topic, that version in only compatible with 1.x version of OSClass, so DO NOT USE THEM, but could be used as a start for a new plugin.

You could also go to the wiki page : http://wiki.osclass.org/How_to_extend_fields and learn how to create your own plugins.

Or ask in the job forum if someone could help you : http://forums.osclass.org/jobs/


I made them for a personal project as yours which I never finished. I had a personal copy compatible with OSClass 2.x. It could work out of the box, but probably need some modification to adapt it better to new models and DAO. As I said, I discontinued the project some time ago because of lack of free time. Perhaps we could reach an agreement of some sort.


Thanks

Raman

  • Newbie
  • *
  • Posts: 7
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #9 on: January 20, 2012, 01:22:13 pm »
Thank you, again. I shall look at the Wiki, and get back to you. Not only am I a newbie to OSClass (I only downloaded it yesterday), my PHP is pretty shaky too. I am considering OSClass for my Second Hand Book Mart. But if it proves too difficult, I will keep on looking, though I do like what I have seen so far. Cheers.

Raman

  • Newbie
  • *
  • Posts: 7
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #10 on: January 21, 2012, 04:10:59 pm »
My first attempt at Textbook attributes. I have simply modified the Products attributes with its two fields to see how it works. It is possible to add the attributes when I post a new item, but the two fields do not show up on the edit page nor the product page. Wonder what I'm doing wrong.

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #11 on: January 21, 2012, 07:41:03 pm »
Hi Raman,

The problem is you are using the same code in the function textbooks_call_after_install() as textbooks_call_after_uninstall() so you are not adding a table to the database.

Jay

Raman

  • Newbie
  • *
  • Posts: 7
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #12 on: January 22, 2012, 03:10:42 am »
Oh! Thanks, Jay. Blame it on cut-and-paste. I love them and hate them. Let me work on that and see how it goes.

2FR3

  • Newbie
  • *
  • Posts: 7
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #13 on: January 17, 2013, 03:38:34 pm »
The links are brooken :(

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: [UPDATED 7-Sep] TWO new plugins for our beloved osClass
« Reply #14 on: January 17, 2013, 03:45:07 pm »
Hi 2FR3,

Plugins were for version 1.2 of Osclass and incompatible with current versions. Sorry the links are dead.

Do you still need them?

Thanks