Pixelpost

Authentic Photoblog Flavour

Advanced Next Mod v1.1

 
Download (3.6 KB)

Developer Description

I've taken the Advanced Next addon and implemented the changes mentioned in the comments. I've also tweaked it so that when you get to the first image in the category and click on the image, it takes you to the last image, so they cycle round. Similar with the previous and next buttons.

I've added three new tags:

<CURRENT_CATEGORY> - returns the name of the category being browsed, or 'All pictures'
<TOTAL_IN_CATEGORY> - returns the total number of pictures in the currently selected category
<CURRENT_POSITION> - tells us which picture we're looking at in the current category

So for example my image page says:

Browsing: Landscapes     Image: 3 of 15

A small modification is needed to functions_browse.php (in the includes folder) for the addon to work. If you've modified functions_browse before and don't want to overwrite the whole file, search the new file for:
// modification for advanced_next addon
and make the changes described there.

Note that you don't need the original advanced next addon for this one to work, in effect this one supercedes the original addon.

Read All 9 Reviews » Write A Review

  1. Perfect 5
    jim 7 Months Ago Report as Spam

    I finally got this to work...fantastic!

    What I finally had to do was find a template that this worked with..it was the "lightwhitetwo" template. I copy & pasted a part at a time into my template, until I found the parts that worked. It was tedious but not too difficult.

    I also had to change a line in my "browse_template.html" file. It was conflicting with another addon..."The Page-By-Page-Archive for category and month".

    It took awhile to find all this, but it's worth it to me.

    Thanks for the explanations below and for this wonderful addon.

  2. Perfect 5
    cjj0457 7 Months Ago Report as Spam

    This is great and I got it to work. My previous and next links go to the next image in the category selected perfectly and they cycle through. Wonderful!

    However, My image row does not match the category selected. Any suggestions on how to make that happen??

  3. Perfect 5
    rony 7 Months Ago Report as Spam

    for some reason, the tags that i mentioned are not showing up in my previous review, so i'm going to clarify in this one...
    Ok! After hours of trying to figure this addon out, it works! so for those who still can't figure it out (i don't blame you, if it weren't for my husband, i'd still be trying to figure it out!)
    i'm going to tell you exactly what to do because this is an awesome addon!!
    1. download this latest version to your computer.
    2. unzip the files.
    3. copy the "advanced_next.php" file to your addon folder.
    4. copy the "functions_browse.php" to your includes folder (or if you don't want to overwrite your existing file, you can modify it as it says in the description above).
    5. turn the addon "on" in the admin panel.
    6. replace the tag "IMAGE_PREVIOUS_ID" in your 'image template' with"IMAGE_PREVIOS_URL_CATEGORY".
    7. do the same for the "NEXT".
    8. put in the 3 additional new tags in your template where you want to see the name of the category you are browsing and your location in it.
    so thanks for the addon, works great, just a bit tricky with the thin instructions.