(2014-03-08, 01:27:54)vanmo Wrote: 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
Hey guys,
Maybe it can help, late, I know.
I had the same issue, my web site is on a test folder. Here is the code to correct the double folder :
PHP Code:
$baseurl = implode('/',array_shift(explode('/',$baseurl)));
Edit file ThePhotoGallery.php like this :
PHP Code:
# breadcrumbs
if (strpos($folder, '/')) {
$code .= '<div id="the_photo_gallery_breadcrumbs">';
$crumbs = explode('/', $folder);
$baseurl = trim(remove_querystring_var($_SERVER['REQUEST_URI'], 'album'), '/');
$baseurl = implode('/',array_shift(explode('/',$baseurl)));
echo $baseurl;
$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>';
}
Tested on sub nested folders.