PDA

View Full Version : How do I get Users Awaiting Approval to work as expected?


raveneyes
05-14-2010, 06:31 PM
Hi All...

we're starting a new photography related message board, and as part of the approval process for new members I'd like moderators to be able to review a few images submitted by the user.

Ideally, you would think, I could just set the Usergroup permissions for Users Awaiting Approval to allow them to edit their own profiles and add their own Albums... but... I've done that... and the users in that usergroup get the error:

vBulletin Message
testuser, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Log Out Home

when clicking on their profile links, or Community > My Albums

Any suggestions on a good way to fix this?

Lynne
05-14-2010, 07:56 PM
Are you sure that is the usergroup they are in at that time? Not the Users Awaiting Email Confirmation group?

raveneyes
05-14-2010, 08:04 PM
Yes. I have a test user account (board isn't live yet) that I went through the user signup process with. In the usergroup manager it shows only that test account as a member of "Users Awaiting Approval"

Lynne
05-14-2010, 11:19 PM
OK... can other users in other usergroups use the albums? In the usergroup manager, do they have permissions to upload attachments also? And in the Attachment Manager, do they have permissions to use all those attachment types?

raveneyes
05-14-2010, 11:26 PM
Yes I had tried all that.

It's most definitely not an attachment type error... they can't even get to the pages. All other usergroups can get to those pages and edit their details. If I move the test user from the Users Awaiting Approval to Registered Users, it can then edit, and access those pages. If I move it back, even though the permissions in the Usergroup manager are exactly the same, the user can not access those pages.

Lynne
05-15-2010, 02:38 AM
Ah ha! Line 210 in album.php:

// don't show stuff for users awaiting moderation
if ($userinfo['usergroupid'] == 4 AND !($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))
{
print_no_permission();
}So, it's hard-coded. Try removing those lines and then see if you have the same problem. (As is always suggested, try things out on a test site first before you go live.)

raveneyes
05-15-2010, 02:17 PM
Thanks Lynne, that would have taken me ages to find, and that worked for the Album page, but I can't find a similar line of code that is in the profile page sections, and the problem still exists with the user's profile pages.

Lynne
05-15-2010, 02:56 PM
Sure there is something similar in the member page (in fact, it looks exactly the same).

if ($userinfo['usergroupid'] == 4 AND !($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))
{
print_no_permission();
}

raveneyes
05-15-2010, 03:28 PM
I searched the member page several times and still can not find that. Would you mind letting me know what the filename and, if it's not too much trouble, line number is?

--------------- Added 1273951781 at 1273951781 ---------------

Ah... finally found it. sorry about that... lines 297, 298, 299, and 300.

--------------- Added 1273951878 at 1273951878 ---------------

PS> Thanks for all the help... this should make my life a lot easier.