SMFHacks.com
SMF Gallery Pro => Support => Topic started by: 1stAngel on January 04, 2012, 07:19:00 pm
-
Hello :)
I have a major issue and am hoping you could help.
I have a 'challenge photo' gallery for the members and nobody can actually put photos in it, even though I set up all the permissions saying they could. In fact, they cannot post in any gallery I have give them permission to use.
I have set the member permissions for who can use the gallery and they are using personal galleries fine. But I have to have them actually posting in the challenge and contest galleries also.
Beth
-
Do they have the global Add Picture permission? That controls main category permissions.
Also do you have any membergroup level permissions setup on the category to deny?
-
I have a few added membergroups and all but guests are allowed (or should be) to add images to the challenge gallery.
They also have Member > Permissions ability to add photos to galleries
In another gallery (Contests) they are adding fine.
The only difference is, the one they cannot add to is in a sub-category. The top level I dont want them to add to as it is a the 'holder' for the weekly challenges
However, there are other top level galleries they cannot add to either
-
What error message are they getting? Or can you login as a normal user and post back the message they are getting
So it appears that some categories are working but others are not.
-
This is what one lady says....
Beth, I found the Photo challenge album, I click 'add picture', but the option to put it in the photo challenge album is not there in "category". If I don't click a category, it won't let me upload. From the little that I know about web development, it seems that when I click 'add picture' I am taken back to the main gallery instead of to the Photo Challenge album.
-
Is it possible to set me up with an account via a pm?
-
Yes of course. Do you want me to set you one up now?
-
Yes if possible. I want to first me the same membergroup as the user with the issue.
-
Got the pm.
Was looking at the code here are the conditions that a category will not appear in the add picture list.
If there is no (deny) view permission for the category on membergroup level
If there is no (deny) add picture permission for the category on the membergroup level
If the gallery is locked "Lock Category from uploads" under edit category.
I am thinking it is third check that category under edit category and see if that option is checked.
-
The outer category is no uploads
The sub category Food Challenge, is uploads allowed.
-
Hmm are any of them "Lock Category from uploads"?
-
Only Andee's Photo Challenge.
However I understand from them they cannot upload to any of the others I set up for them.
I broke the gallery didnt I LOL
-
I see why Andee's Photo Challenges is the top level gallery
And then food challege is underneath but since the top level category is locked it can't be shown on the add picture page under category select. Which then hides the Food Challenge category since that is under the top level galley that is locked.
Now we can appear. By removing these lines in sources/gallery2.php
// Skip category if it is locked
if ($g_manage == false && $row['locked'] == 1)
continue;
Only issue then is ifthey select a category that is locked will throw an error saying they don't have permission to upload to it.
-
ooops I got
Parse error: syntax error, unexpected T_STRING in /home/****/public_html/community/Sources/Gallery2.php on line 9567
-
I put it back and reuploded and now have no gallery. Cannot get rid of that error
-
Attach your Sources/Gallery2.php I can change it.
-
Here you are. I overwrote mine with the one from the zip file and got the gallery back for now
-
Try this file
-
Just waiting for someone to try and upload the the gallery now. I have told them to try but not sure who is on
-
LOL I went back and a message for you from one of the members is...
We heart the coder! Woot!
It worked!! Thank you so much!
-
No problem glad to help.
-
Why is it every time I dlete that section, I get this error? I dont touch anything else.
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/shaunch/public_html/community/Sources/Gallery2.php on line 9651
-
Re attach that file looks like part of the code was not removed correctly.
-
I removed it exactly. Copy, find, delete. I use Dreamweaver so its exactly what you tell me to do. I just get that error whenever I try and do it.
I have reloaded the one that comes with the 4 zip file.
I will remove it again and show you
-
file
-
Fixed file attached.
Issue was looked like some code in the tagging display was changed too which errored out fixed.
-
One member keeps getting this.
Your attachment has failed security checks and cannot be uploaded. Please consult the forum administrator.
I have double checked her permissions all over and the albums and everything is fine.
She is the Global Moderator.
She also does not get the Food Challenge drop down again. I even opened up the top album to see if it helped but she cannot.
Link to album http://community.1stangel.co.uk/index.php?action=gallery;cat=27
I cannot get that post thumbs to work either. It uploads to the gallery but not to a post and now way to add to the post
-
The first part is an SMF setting and that error is from adding an attachment to a forum topic
Your attachment has failed security checks and cannot be uploaded. Please consult the forum administrator.
You can disable that check under attachments there is a setting called "Perform extensive security checks on uploaded image attachments" if you uncheck that issue should go away.
-
Hi yes, she just told me that she was talking about the forum NOT the gallery >:( She was talking about the gallery in the same sentence.
Apologies.
However I dont have that checked so am unsure why she is getting it. Not your problem though lol Thanks