View Full Version : Combined Galleries
Cyclist
18th of April 2005 (Mon), 02:17
Is there a way that the gallery browser from a search in all categories (combined categories) does NOT relate to the gallery of the currently displayed photo but to the performed search?
Pekka
18th of April 2005 (Mon), 11:53
If I understood your question correctly you want to get back to "All exhibitions combined" listing page (instead of photo's exhibition) with the "photo browser" link on photo page, when browsing all exhibitions as combined? (there does not seem to be an easy way to say it after all :) )
I actually have started to think that way is better and more logical. The exhibition link(s) for the photo is always available in photo detail data.
Here's how to do it:
NOTE: TO SEE THE CODE CORRECTLY CLICK REPLY AND SEE IT IN THERE. FORUM SOFTWARE CREATES ODD SPACES ON LONG LINES.
In photo.php find
ob_start();
if ($export == "no") {
print "<a href=\"list.php?exhibition={$exhibition}";
$temp = $uncookied;
if ($viewall == "1") {
$temp["pagesearch"] = "off";
$temp["exhibition"] = $exhibition;
}
$uncookied_id = ee_uncookied_make ($temp);
print "&u={$uncookied_id}{$uncookied_splitter}{$offset}{$u ncookied_foochar}{$passparam}\"";
}
and replace it with
ob_start();
if ($export == "no") {
if ($viewall == "1") {
print "<a href=\"list.php?exhibition=all";
} else {
print "<a href=\"list.php?exhibition={$exhibition}";
}
print "&u={$uncookied_base_id}{$uncookied_splitter}{$offse t}{$uncookied_foochar}{$passparam}\"";
}
in list.php
find
if (isset($pagesearch)) {
$offset = "0";
}
and replace it with
if (isset($pagesearch)) {
//$offset = "0";
}
In languages/xxx/photo.php change (example in eng)
$translated["all_exhibitions_combined_info"] = "Clicking gallery browser link will take you to gallery of the currently displayed photo. Click your browser's back button to return to combined listing.";
to
$translated["all_exhibitions_combined_info"] = "";
Do this for every installed language.
Let me know if it worked.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.