hi
i’m trying the same… did u find a solution?
right now i’m doing a dirty hack:
1. change in “nggallery.php”, line 229:
function define_tables() {
global $wpdb;
// add database pointer
$wpdb->nggpictures = $wpdb->prefix . 'ngg_pictures';
$wpdb->nggallery = $wpdb->prefix . 'ngg_gallery';
$wpdb->nggalbum = $wpdb->prefix . 'ngg_album';
}
to
function define_tables() {
global $wpdb;
// add database pointer
$wpdb->nggpictures = 'wp_ngg_pictures';
$wpdb->nggallery = 'wp_ngg_gallery';
$wpdb->nggalbum = 'wp_ngg_album';
}
so the plugin uses the same datebase-tables for all blogs
2. then manually change the “path” settings in the db for every blog from “wp-content/blogs.dir/%BLOG_ID%/files/” to “wp-content/blogs.dir/galleries/” or so…
*cheers
Thanks a lot !
your “dirty hack” did the trick for me :o)
I guess the plugin updates are not advisable from now…
with robot/txt what we add?
the normal is
User-agent: Googlebot-Image
Allow: /wp-content/gallery/
in multisite
User-agent: Googlebot-Image
Allow: wp-content/blogs.dir/%BLOG_ID%/files/ ?
hi!
2. then manually change the “path” settings in the db for every blog from “wp-content/blogs.dir/%BLOG_ID%/files/” to “wp-content/blogs.dir/galleries/” or so…
where did you change the path? I m trying to change it from every site but its blocked. (is a multi language site)
thanks!
@nadade
yep, this is a little tricky, because u cannot change this value in the nng-settings (readonly)…
you need:
– basic knowledge of database-structures
– access to a database-admin-tool (usually “phpmyadmin” for mysql-databases)
you do (in the db-admin):
- TAKE CARE NOT TO DESTROY YOUR WHOLE WORDPRESS INSTALLATION !
- look for the “wp_options”-table
- edit the row “ngg_options”
- in field “option_value” look for something like
"gallerypath";s:31:"wp-content/blogs.dir/%BLOG_ID%/files/"
and change it to
"gallerypath";s:31:"wp-content/blogs.dir/galleries/"
(or whatever you like your galleries-folder to be)
- look for more tables like “wp_**_options” (where ** is the number of your blog, may be several depending of the amount of blog u set up), repeat step 2 + 3 for every wp_option table u find
*goodluck
@b_dark
in multisite
User-agent: Googlebot-Image
Allow: wp-content/blogs.dir/%BLOG_ID%/files/ ?
will not work because the variable %BLOG_ID%
will not be translated in robots.txt…
try just
User-agent: Googlebot-Image
Allow: wp-content/blogs.dir/
so the bot is allowd to index all subfolders of /blogs.dir/
*s