Please use at least version 1.8.3 of NextGEN Gallery. This plugin is not tested with lower versions
[ A T T E N T I O N ] NextGEN Gallery core modification required!
Read
installation page
NextGEN Gallery Authors is an add-on for the best wordpress gallery plugin i have seen! With my plugin, you can show galleries filtered by author.
[ A T T E N T I O N ] NextGEN Gallery core modification required!
To use this plugin, you need to make a simple change to a NextGEN Gallery file(tested with version 1.8.3).
This will be necessary until the change will not be integrated (I have already sent the request to Alex Rabe).
To make the change, follow the instructions:
- Open the following file: /wp-content/plugins/nextgen-gallery/nggfunctions.php;
-
The changes affect the function nggCreateAlbum, go to row 580, just before the
// check for page navigation
if ($maxElement > 0) {
1. ## Enter the following filter:
$galleries = apply_filters('ngg_album_galleries_before_paging', $galleries, $album);
------------------------;
1. To check if you have done correctly, check the screenshot (plugins/nextgen-gallery-date/date/admin/images/ngg-new-filter.png);
Now, install the plugin:
- Install & Activate the plugin (you need NextGEN Gallery plugin to be active!)
- Check if there is a nggallery folder (and the gallery.php inside) in your theme folder. If not, create that folder, then open the "nextgen-gallery" folder in wordpress plugin folder, open "view" folder, copy gallery.php and album-extend.php and paste them in the nggallery folder you created before.
- in album-extend.php, inside te cycle 'foreach ($galleries as $gallery)' you can use this var '$gallery->author_galleries' to get a link (like this http://lorem.com/lorem-ipsum/nggallery/auth-1) to reload the page only to show galleries created by that author.
You can link directly the name of the author in this way:
$author = get_the_author_meta('display_name', $gallery->author);
...
<a href="<?php $gallery->author_galleries ?>"><?php $author ?>
...
That's it ... Have fun