I just tried to reproduce your error on a fresh install...
Luciano as admin...
Luciano uploads 5 images as luciano in category "Main Category"
==> works fine
I then made a "TestUser"
Luciano uploads 5 images AS "TestUser" to category "Main Category".
==> works fine..
Images integrate...
Filmstrip as well as previous/next links work for: Luciano, TestUser and Anonymous user. (I did not try a third user)
What i did not do... I am not using member categories.. and I do not know how they work...
[Edit]
I tried it.. (first time in my life

)
And there are some errors if: You upload to "member categories" and there are no member's categories created..
(in my setup, as I said i never used them I had no member category created)
@chuck
that bit of code remmed out, is only used for member categories...
they are referred to by userid... opposed to a user's images in general that go by $imageuser
@cory_booth
I can only reproduce your error when i type in the url manually
www.thishost.com/gallery/showimage.php?i=xx&c=member&xxx=x
where i= an exisiting imageid.. and xxx=x is something else than imageuser=userid
example if i input:
www.thishost.com/gallery/showimage.php?i=24&c=member&imageuser=1
it works..
if i input:
www.thishost.com/gallery/showimage.php?i=24&c=member&userid=1
I get do your error... but there is NO link in gallery that would give me that...
I can only reproduce your error by typing in the (wrong) url manually...
-----------------------------
Whatalso can have happened (I do not know because i have never used member categories before, so I am not aware of all problems)
that you uploaded the images as a user in member categories and that that user did not have his member category created yet.
OR that he did not set permissions for others to view...
OR that you uploaded as user1 to another members category (I tried that also.. i had the filmstrip.. but only for the images i uploaded that go.. not for all the images in that category..) Anyway that mixes up a lot of stuff..
To debug.. i would suggest you get a new showimage.php (download the last version)
Then try uploading as another user to a public category.. (Like Main category)
if it works.. try uploading to a category that has allready been created by the user.
and if you want to input an url manually, do not put userid=x but imageuser=x
Luc
PS @chuck...
While testing i think i found a little bug... (not important because admin should know what he is doing)
As admin i can upload as user to "member categories" even If there is NO member category created AND I can also upload images as user1 to member category of user2.. (even if user 2 does not allow others to upload (but thats a minor problem)
--> when looking at the images, the filmstrip works, but i do get some missing info because the users category does not exist or i get only images of one user and not of the other..
IMHO, there should be some form of warning saying, there is no such category... OR that user A cannot upload to member category of user B
but anyway If a normal user tries to do that.. he gets a no permission error... which is also not 100% correct, as it should tell him to create a member category first...
But I think.. that uploading image to Section Member Categories (When there is NO member categorie defined.. is bound to create errors)