Hi Colin,

The is_loaded() method is supposed to return true only if the plugin is
active. So the current behavior you are suggesting seem to be a bug.
What version of Habari you are getting this with? Could you file a ticket in
Trac for this issue?

PS: The Smugmug Silo looks like a nifty idea, thanks in advance for the
effort :)

On Sat, Nov 15, 2008 at 6:47 PM, Colin <[EMAIL PROTECTED]> wrote:

> Hi there
>
> I'm in the process of creating a plugin (a Smugmug Silo) and want to check
> for the existence of other plugins so I can offer users the option of taking
> advantage of their functionality in conjunction with my plugin, if
> available.
>
> In particular I'm interested in offering the option of taking advantage of
> the Thickbox plugin, if it's installed.
>
> So I've got everything working and am now coming to detect the presence of
> the Thickbox plugin, so I call "Plugins::is_loaded('Thickbox')".  Now as
> this is available in my installation (ie appears in the plugins list), it
> returns TRUE as expected.  However, and this is where my issue is: the
> plugin is NOT active yet, so I can't take advantage of it's functionality
> (well I could, but I'm trying to be good here).
>
> Surely the Plugins::is_loaded() method should only return true for
> activated plugins. There isn't a similar "is_active()" method, though I
> could probably cobble something similar together in the plugin itself.
>
> So, do we need an "is_active($name, $version = NULL)" method or should
> "is_loaded()" only return TRUE for active plugins?
>
> Opinions?
>
> Cheers,
> Colin
> --
> Colin Seymour
> Blog: http://www.colinseymour.co.uk
> Tech Stuff: http://www.lildude.co.uk
>
>
> >
>


-- 
Ali B / dmondark
http://www.awhitebox.com

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to