Hai guys,
first.. the above solution for fancyboxproblems works: i.e. remove the -1.3.4 from fancybox-1.3.4.pack.js and from fancybox-1.3.4.css in thephotogallery.php.
second: can anyone please help with fixing the breadcrumbs. In firefox/chrome the first breadcrumb should go to the homepage of the gallery/site, but instead it refers to the current sub-gallery. It works fine though in IE.
this the code from thephotogallery.php: why dows it put anything after baseurl?
# breadcrumbs
if (strpos($folder, '/')) {
$code .= '<div id="the_photo_gallery_breadcrumbs">';
$crumbs = explode('/', $folder);
$baseurl = trim(remove_querystring_var($_SERVER['REQUEST_URI'], 'album'), '/');
$code .= '<a href="'.$baseurl.'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> » ';
$crumbadd = null;
foreach ($crumbs as $crumb) {
if ($crumb != '') {
if ($crumbadd) {
$crumbadd = $crumbadd.'/'.$crumb;
} else {
$crumbadd = $crumb;
}
if (name_convert($crumb) == name_convert($folder)) {
$code .= '<strong>'.name_convert($crumb).'</strong>';
} else {
$code .= '<a href="'.add_querystring_var($baseurl, 'album', $crumbadd).'" >'.name_convert($crumb).'</a> » ';
}
}
}
$code .= '</div>';
}
PS: if there is a better plugin with support for subdirectories please let me know..
cheers
first.. the above solution for fancyboxproblems works: i.e. remove the -1.3.4 from fancybox-1.3.4.pack.js and from fancybox-1.3.4.css in thephotogallery.php.
second: can anyone please help with fixing the breadcrumbs. In firefox/chrome the first breadcrumb should go to the homepage of the gallery/site, but instead it refers to the current sub-gallery. It works fine though in IE.
this the code from thephotogallery.php: why dows it put anything after baseurl?
# breadcrumbs
if (strpos($folder, '/')) {
$code .= '<div id="the_photo_gallery_breadcrumbs">';
$crumbs = explode('/', $folder);
$baseurl = trim(remove_querystring_var($_SERVER['REQUEST_URI'], 'album'), '/');
$code .= '<a href="'.$baseurl.'" >'.i18n_r($thisfile_tphotogall.'/PHOTO_GALLERY').'</a> » ';
$crumbadd = null;
foreach ($crumbs as $crumb) {
if ($crumb != '') {
if ($crumbadd) {
$crumbadd = $crumbadd.'/'.$crumb;
} else {
$crumbadd = $crumb;
}
if (name_convert($crumb) == name_convert($folder)) {
$code .= '<strong>'.name_convert($crumb).'</strong>';
} else {
$code .= '<a href="'.add_querystring_var($baseurl, 'album', $crumbadd).'" >'.name_convert($crumb).'</a> » ';
}
}
}
$code .= '</div>';
}
PS: if there is a better plugin with support for subdirectories please let me know..
cheers