Advertisement:

Author Topic: [suggestion] PLuggin  (Read 1553 times)

keny

  • Full Member
  • ***
  • Posts: 137
[suggestion] PLuggin
« on: June 30, 2011, 07:58:05 pm »
Hi guys,

can you make a function that will check require version of Osclass when installing a plugin ?

In same time something for upgrading pluggin to will be great.

Finnaly :

If we could in theme files put a code like that <?php osc_run_hook('hook','pluggin_name') ; ?> so we could choose where with want each pluggin to apear in design, i think about a optional way to display pluggin if nothing is given then regular hook apply.

I am not sure if ist all clear if needed i can provide a image that i think can say more.

Thanks and sorry if something is already in OsClass.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: [suggestion] PLuggin
« Reply #1 on: July 04, 2011, 12:10:05 pm »
Hi,


Great idea, already in our plans to make a version check for plugins, we'll include it as soon as possible since we have a bunch of plugins right now and it's difficult to select the correct version of each one.


For your second idea, I'm sorry I couldn't understand very well.

you could use osc_run_hook("hook") but not osc_run_hook("hook", "plugin_name") well, you can use it, but EVERY plugin with a hook "hook" will be called and passed as param the value "plugin_name". I'm not sure want you're trying to do. If you could explain a little more the idea, it will be great. You could create your own hooks osc_run_hook("custom_hook_name") and it will work (if there's any plugin with that hook). I don't recommend using hooks on theme files, since a theme could have then or not, so not every plugin will work with every theme, but of course, there're some hooks that NEED to be inside the theme files.


Thanks