Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2010, 06:31 PM
raveneyes raveneyes is offline
 
Join Date: May 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I get Users Awaiting Approval to work as expected?

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:

Quote:
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?
Reply With Quote
  #2  
Old 05-14-2010, 07:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure that is the usergroup they are in at that time? Not the Users Awaiting Email Confirmation group?
Reply With Quote
  #3  
Old 05-14-2010, 08:04 PM
raveneyes raveneyes is offline
 
Join Date: May 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #4  
Old 05-14-2010, 11:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 05-14-2010, 11:26 PM
raveneyes raveneyes is offline
 
Join Date: May 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-15-2010, 02:38 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah ha! Line 210 in album.php:

PHP Code:
    // don't show stuff for users awaiting moderation
    
if ($userinfo['usergroupid'] == 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.)
Reply With Quote
  #7  
Old 05-15-2010, 02:17 PM
raveneyes raveneyes is offline
 
Join Date: May 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 05-15-2010, 02:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure there is something similar in the member page (in fact, it looks exactly the same).

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

Reply With Quote
  #9  
Old 05-15-2010, 03:28 PM
raveneyes raveneyes is offline
 
Join Date: May 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 [DATE]1273951781[/DATE] at [TIME]1273951781[/TIME] ---------------

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

--------------- Added [DATE]1273951878[/DATE] at [TIME]1273951878[/TIME] ---------------

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07137 seconds
  • Memory Usage 2,241KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete