PDA

View Full Version : problem with snippets outside gallery root


okapi
31st of March 2004 (Wed), 12:35
when i call the snippets from outside the root directory of my gallery, i can see the thumbs but also some error messages:

Notice: Undefined variable: orlist in /home/.sites/69/site292/web/photolog/snippets.php on line 222
Notice: Undefined variable: orlist in /home/.sites/69/site292/web/photolog/snippets.php on line 310
Notice: Undefined variable: exlorlist in /home/.sites/69/site292/web/photolog/snippets.php on line 312

what did i do wrong?

(in misc setting i defined the http address to the gallery).

msoo
3rd of April 2004 (Sat), 14:55
Some of the variables weren't declared, in snippets.php (around line 222), change

==========================================
if ($includecategory != "") {

$orlist = "";
$inccats = explode("|",$includecategory);
//ee_print_array($inccats);
foreach ($inccats as $key) {
$cat = trim($key);
$ors[] .= " ee_photo_to_category.ee_category_id = '{$cat}' ";
}
$orlist = implode(" OR ",$ors);
}

==========================================

to

==========================================
$orlist = "";
if ($includecategory != "") {

$orlist = "";
$inccats = explode("|",$includecategory);
//ee_print_array($inccats);
foreach ($inccats as $key) {
$cat = trim($key);
$ors[] .= " ee_photo_to_category.ee_category_id = '{$cat}' ";
}
$orlist = implode(" OR ",$ors);
}

$exlcatfrom = "";
$exlorlist = "";
=============================================

- MS

okapi
4th of April 2004 (Sun), 01:02
thank you very much, michael!

that solved the problem!

everything is working fine now!

cheers
michael

okapi
4th of April 2004 (Sun), 01:34
one (very) small problem left...

calling snippets from a file outside gallery root and from the EE index file (via 1.php) produces different horizontal spaces between the thumbs.

both are calling the same snippets code with the same syntax and absolute paths. i can't find where these spaces are defined - maybe by styles?

EDITED:

i found out how to remove the unwanted vertical space between the thumbs: i set v_space="0"