Hello

First of all i want to say thanks for spending your time in the development of this nice module.

I am working now in an aegir set-up and its not posible to detect the library unless you place it in the route/sites/all/libraries of this multi site setup.

Maybe you could change the code that defines the default shadowbox path to work together with the libraries module so that you can use the functions libraries_get_libraries() & libraries_get_path($name, $base_path = FALSE). In this way you will always have the correct path i think.

grts

frederic

Comments

manfer’s picture

Status: Active » Closed (cannot reproduce)

But the path to shadowbox library is configurable in the shadowbox setup admin/config/media/shadowbox so even if you install the library in different place than sites/all/libraries/shadowbox you still can configure the correct path there on a per site basics if you want.

The only thing that shadowbox do is to look by default on sites/all/libraries/shadowbox for the library but it doesn't restrict where to install the library. It just doesn't look automatically in other places.

manfer’s picture

Status: Closed (cannot reproduce) » Active
manfer’s picture

I don't know how those aegir setups work but if you install the shadowbox library in different place the variable that holds the path is shadowbox_location. So if there is a way to programatically do changes on that setup you have to do what variable_set do.

variable_set('shadowbox_location', 'your_desired_path');