Pixelpost

Authentic Photoblog Flavour

Advanced Next v1.0

 
Download (1.1 KB)

Developer Description

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

Install Instructions:

  1. unzip advanced_next.php to the addon folder
  2. activate the plugin from your admin panel
  3. use the above tags in your template

Read All 9 Reviews » Write A Review

  1. Average 3
    Unknown 6 Years Ago Report as Spam

    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.

  2. Perfect 5
    Unknown 6 Years Ago Report as Spam

    can somebody told me, why it doesn't work by me. i make the changes from "sitarah" and "stmintz". thanks

  3. Good 4
    Unknown 6 Years Ago Report as Spam

    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>"; }