1. Open include/functions.inc.php:

find:

                $query = "SELECT COUNT(*) from {$CONFIG['TABLE_PICTURES']} WHERE ((aid='$album' $forbidden_set_string ) $keyword) $approved $ALBUM_SET";

before, add:

                if (function_exists(group_pictures_get_pids)) {
                    global $PHP_SELF;
                    if ($PHP_SELF == "thumbnails.php") $ALBUM_SET .= group_pictures_get_pids();
                    if ($select_columns != '*') $select_columns .= ", ".implode(", ", group_pictures_get_criteria_array());
                }



2. Open include/search.inc.php:

find:

        $sql .=  " $ALBUM_SET AND approved = 'YES'";

after, add:

        if (function_exists(group_pictures_get_pids)) {
            $sql .= group_pictures_get_pids();
        }



3. Install the plugin



4. Configure the plugin by using the button at the plugin manager