SMFHacks.com
SMF Gallery Pro => Support => Topic started by: Tonyvic on August 28, 2015, 01:55:41 pm
-
Hi,
Is it possible to restrict access to member's galleries so that only one membergroup can see them, but still allow all other membergroups to see all other galleries?
Also, how do I turn off emails sent with regards to pics/comments etc. awaiting approval. I have installed the GalleryInfoHeader mod so emails aren't required.
-
Is it possible to restrict access to member's galleries so that only one membergroup can see them, but still allow all other membergroups to see all other galleries?
Not currently. Would require a lot of different checks if you wanted to hide the pictures from appearing everywhere.
Also, how do I turn off emails sent with regards to pics/comments etc. awaiting approval. I have installed the GalleryInfoHeader mod so emails aren't required.
Would require editing the code. Sources/Gallery2.php
Find
// Send all the administrators a lovely email.
function Gallery_emailAdmins($subject, $body, $additional_recipients = array())
{
Add after
return;
That will stop them from being sent to gallery admins
[/quote]
-
Many thanks for your swift reply, and of course for an excellent product.
-
Hi Hacks,
Is there an easy way to move all member galleries (200 galleries containing over 3000 pics) into a general gallery?
I have been looking and searching for a couple of days but can't see anything obvious.
-
Into a single category maybe but it would need to be an sql statement.
Otherwise there is an option when you edit a picture to move them one by one.
-
All 3000+ pictures into one category would be great, is it possible to give me a guide for the sql statement as I have no idea. Thanks.
-
Make a backup of your database first.
The following SQL will move ALL your user galleries images to a single category
UPDATE smf_gallery_pic SET USER_ID_CAT = 0, ID_CATEGORY = ###REPLACEWITHCATID### WHERE ID_CAT = 0 AND USER_ID_CAT != 0
Just change ###REPLACEWITHCATID### to the category ID number in the gallery category that you are changing it to.
-
Many thanks, that helped a lot. Just one thing in case someone else needs this, I received an error with the SQL in your code
UPDATE smf_gallery_pic SET USER_ID_CAT = 0, ID_CATEGORY = ###REPLACEWITHCATID### WHERE ID_CAT = 0 AND USER_ID_CAT != 0
( #1054 - Unknown column 'ID_CATEGORY' in 'field list') and changed it to UPDATE smf_gallery_pic SET USER_ID_CAT = 0, ID_CAT = ###REPLACEWITHCATID### WHERE ID_CAT = 0 AND USER_ID_CAT != 0
All Images appear to have been moved ok but the 'Target' category is showing 'Total Images 0', if I open the target there is only one page of images (Up to 60 if thats what I choose. However if I select 'Random Items (List All)' in fact any section from the index page I see all 59 pages of the images.
Have you got another trick up your sleeve to correct these issues.
TIA, I feel sure it is now close to perfect for us.
Tony
Edited to add: Member Galleries still shows 'Total Images 3477' but when opened it is empty.
-
Oops yeah meant ID_CAT
There should be a button in the settings area to recount all picture totals I believe.
-
There should be a button in the settings area to recount all picture totals I believe.
I have been all through settings twice, can't see a 'recount all picture totals' anywhere.
-
Download SMFGalleryPro and rerun the galleryinstall2.0.x.php script by copying to the main directory of your forum and run it in your browser
-
Brilliant, thanks a lot Hacks that did the trick.
Tony
-
Glad to help.