vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   users getting the activation OK, but not getting activated (https://vborg.vbsupport.ru/showthread.php?t=119136)

ThePiston 06-20-2006 11:50 AM

users getting the activation OK, but not getting activated
 
I'm using a hack that puts my users into a primary usergroup based on a custom field. The hack works correctly and inserts them into the correct group. I get the activatin email and click on it and get the "you are activated' message - but for some reason that user still does not have permission to post and when i approve the messages from that user, the title and rank do not show. What do you think is going on?

amykhar 06-20-2006 11:53 AM

1. What version of vb are you using?
2. Can you please post the code you are using to make the usergroup change.
3. When you say they are not activated, what do you mean specifically? If the usergroup changes to one with permissions, that means they are activated.
4. Can you provide a link to the forum in question so I can see the problem in action?

ThePiston 06-20-2006 12:16 PM

1) 3.5.4
2)
PHP Code:

switch($userinfo['field5'])
{
    case 
"Optometrist":    
        
$userdata->set('usergroupid'48);
    break;


3) i mean, that user has been put into the correct group, but his posts are moderated and his custom title and rank do not show under his name. i'm not familiar with VB, but I am only assuming this is because he is still in limbo (not activated) and that's why all of these things are happening.
4) www.domainname.com if you are going to try and register, you can only choose "Group" sinec I'm testing that code you wrote for token55. I was going to add the other groups later if this worked.

amykhar 06-20-2006 12:34 PM

The problem lies in 3. :)

Check 2 things. In your usergroup manager, check to ensure posts made by that usergroup are not moderated.
In your forum manager check the forum permissions for - follows moderation rules. If that is set to no, then all posts will be moderated. It's a common glitch when creating new usergroups or new forums.

ThePiston 06-20-2006 01:44 PM

damn, thanks... that was driving me nuts all weekend. Finally done with that hack and can get on with my life! thanks Amy

amykhar 06-20-2006 01:52 PM

My pleasure

ThePiston 06-20-2006 02:00 PM

one question: how can I change all of those groups to 'yes' for 'follows rules' in the DB? I'd hate to do it by hand to over 50 groups.

amykhar 06-20-2006 02:10 PM

I honestly don't know the answer to that question.

gulldarek 06-20-2006 02:15 PM

Permissions are based on bitfields so without some mathematical skills ;-) and knowing which value will do what you can't manually change those in db.

For example canviewforum may be 2, and candownloadattachements may be 4, candeletepost = 8 etc. So you've to sum all of these and put the right number in proper field in your db. I think you should just go through your user permission system in acp so it'll do this for you.


All times are GMT. The time now is 01:33 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.01549 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete