Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2006, 12:50 PM
ThePiston ThePiston is offline
 
Join Date: Jun 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 06-20-2006, 12:53 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 06-20-2006, 01:16 PM
ThePiston ThePiston is offline
 
Join Date: Jun 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 06-20-2006, 01:34 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-20-2006, 02:44 PM
ThePiston ThePiston is offline
 
Join Date: Jun 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

damn, thanks... that was driving me nuts all weekend. Finally done with that hack and can get on with my life! thanks Amy
Reply With Quote
  #6  
Old 06-20-2006, 02:52 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My pleasure
Reply With Quote
  #7  
Old 06-20-2006, 03:00 PM
ThePiston ThePiston is offline
 
Join Date: Jun 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 06-20-2006, 03:10 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I honestly don't know the answer to that question.
Reply With Quote
  #9  
Old 06-20-2006, 03:15 PM
gulldarek gulldarek is offline
 
Join Date: Dec 2001
Location: London, UK
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 06:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04547 seconds
  • Memory Usage 2,240KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_php
  • (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_postinfo_query
  • fetch_postinfo
  • 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