forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Doulos on March 20, 2006, 07:46:22 am

Title: Upload Approval Button Gone
Post by: Doulos on March 20, 2006, 07:46:22 am
I am using cpg1.4.4 and have the permissions set so that users can have a private gallery but that uploads must be aprroved. Also, I have config set to email me if an upload is awaiting appoval. 

However, I am having 2 problems:
I have made a test user, made his album visible only to him, uploaded a pic and it still doesn't require admin approval. Nor does the "Upload Approval" button show up.  The only changes I have made were made to only one theme (Hardwired), and that was just adding a couple user menu buttons.  Switching to a different them makes no difference.
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 20, 2006, 04:56:10 pm
post a link and non-admin test user account with upload privileges.
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 20, 2006, 06:06:14 pm
www.clanfga.com/FGAGallery/

user: testuser
PW:  testuserpw
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 21, 2006, 12:44:30 am
I have a slightly older version running on a different website and the "upload approval" button is present.  All config settings and group permissions are the same.
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 21, 2006, 07:11:55 am
well, it appears that you haven't enabled admin approval - the file I uploaded was visible instantly: http://www.clanfga.com/FGAGallery/displayimage.php?pos=-45
Review your groups page settings. If you think that they are correcty, but approval still doesn't work for you, post a screenshot of your groups page (attach it to your posting by using "additional options" when composing your message).
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 22, 2006, 02:46:57 am
Here is screenshot of group permissions.
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 22, 2006, 09:16:23 am
well, I uploaded to a public album (because you allowed me to do so) - the approval setting for public albums is set to "no" in your setup, so (surprisingly ;)) my upload was visible instantly. Take a deep breath and review your settings. ::)
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 22, 2006, 07:33:38 pm
Maybe I didn't make it clear. I am talking about private albums - not public.  Members who make a personal album (whether or not they make the upload private) get the pics posted immediately - without admin approval.  I believe my permissions require personal gallerys to have admin approval.  If I am doing something wrong I would sure like to know what it is. 
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 23, 2006, 10:27:23 am
I can confirm that my upload to an album within the personal gallery was visible instantly: http://www.clanfga.com/FGAGallery/displayimage.php?pos=-49
Did you apply any mods?
Upgrade to cpg1.4.4
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 23, 2006, 06:57:20 pm
No. Did not install any mods.  I guess I'll have to uninstall and intstall it again.  I don't want to have to constantly be checking to see what is being put in private gallerys.  I like the idea of an email when there is content waiting approval.
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 24, 2006, 07:31:15 am
upgrade as suggested
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 24, 2006, 06:50:38 pm
Upgrade?  I am using v 1.4.4. 
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 25, 2006, 07:49:01 pm
no, you're not. You're using cpg1.4.3.
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 25, 2006, 07:56:58 pm
hmm, thought I applied the 1.4.4 changes.  Guess not.
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 25, 2006, 10:10:46 pm
Actually, I did manually apply the "fix" mentioned here:

http://forum.coppermine-gallery.net/index.php?topic=28445.msg131584#msg131584 (http://forum.coppermine-gallery.net/index.php?topic=28445.msg131584#msg131584)

I am upgrading to the full version of 1.4.4 now.
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 25, 2006, 10:30:44 pm
Upgrade didn't fix the problem. Still no "upload approval" button and ppl are able to upload and view pics in personal galleries immediately.  :(
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 26, 2006, 02:52:28 am
send me a PM that contains:
* a link to this thread
* an admin account
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 26, 2006, 10:50:26 am
OK, I was able to replicate this issue both on your page as well as on a vanilla test gallery, so actually you have found a bug. Moving this thread to the bugs board. Please have a little patience to let the dev team figure out what is wrong.

Summary for the devs: when upload for registered users is allowed both to public and personal albums, and public upload approval is set to no, but personal gallery upload approval is set to yes, the pics uploaded to a personal gallery by that user are visible instantly without needing admin approval. Happnes both for bridged and unbridged installs.
Title: Re: Upload Approval Button Gone
Post by: Stramm on March 26, 2006, 12:19:41 pm
picmgmnt.inc.php

replace
Code: [Select]
    } elseif (!$USER_DATA['pub_upl_need_approval']) {with
Code: [Select]
    } elseif (!$USER_DATA['pub_upl_need_approval'] && $category < FIRST_USER_CAT) {
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on March 26, 2006, 01:31:01 pm
[slightly off topic]

@Stramm: thanks for looking into this. Please review the dev-only posting http://forum.coppermine-gallery.net/index.php?topic=9118.msg137073#msg137073 . Imo you should have CVS access to be able to commit both this fix to stable and devel branch as well as some features from your modpack into the devel branch. Please do as suggested on the above mentioned thread and start a new thread in the dev-only section to discuss what features of your modpack should go into the future core of coppermine.

[/slightly off topic]
Title: Re: Upload Approval Button Gone
Post by: Doulos on March 26, 2006, 10:40:02 pm
Thank you.
Title: Re: Upload Approval Button Gone
Post by: spiros71 on April 26, 2006, 12:45:04 am
I had exactly the same problem. Following this modification, approval was active for user albums, NOT for public albums though! Perhaps you should further check this issue. I use 1.4.5.
Title: Re: Upload Approval Button Gone
Post by: Stramm on April 26, 2006, 04:59:20 pm
with or without the fix... if you've set both, public and private albums to require approval then your problem isn't related and should work

If you're using a bridged coppermine then it maybe useful to do the necessary settings for groups that actually get used --> SMF groups

edit: sorry, after the sf connection problems I forgot about that one
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on May 17, 2006, 08:08:34 pm
Stramm, could you commit your fix to stable and devel svn please?
Title: Re: Upload Approval Button Gone
Post by: Joachim Müller on May 17, 2006, 09:28:02 pm
Committed suggested fix to stable and devel branch, will go into cpg1.4.6