Ever wanted the next and previous buttons to maintain the category the picture was loaded in? Well now you can. Just install this plugin and you have 4 new tags you can use. This is most useful if you are opening the images with the category attached like this: http://visiblephoto.com/?category=3
<IMAGE_PREVIOS_LINK_CATEGORY> - creates previous link with category maintained<IMAGE_PREVIOS_URL_CATEGORY> - returns url to previous image with category maintained<IMAGE_NEXT_LINK_CATEGORY> - creates next link with category maintained<IMAGE_NEXT_URL_CATEGORY> - returns url to next image with category maintained
You need to escape the quotes in stmintz comment. For the mod to be complete I also made several changes to my index.php, in order to display the correct thumbnails (only those in the category), and add the &category= to the elements of the thumbnail.
This is a good idea of a mod but only including the addon file is not enough.
can somebody told me, why it doesn't work by me. i make the changes from "sitarah" and "stmintz". thanks
This is the modification I made to append the category id to the thumbnail links:
in functions_browse.php
replace:
$thumb_output .= "<a href="$showprefix$id"><img src="$thumbnail" alt="$title" title="$title" width="$local_width" height="$local_height" class="thumbnails" /></a>";
with:
if (isset($pp_cat) && !empty($pp_cat)) {
$thumb_output .= "<a href="$showprefix$id&category=$pp_cat"><img src="$thumbnail" alt="$title" title="$title" width="$local_width" height="$local_height" class="thumbnails" /></a>";
} else {
$thumb_output .= "<a href="$showprefix$id"><img src="$thumbnail" alt="$title" title="$title" width="$local_width" height="$local_height" class="thumbnails" /></a>";
}