Advertisement:

Author Topic: Initial membergroup setting upon joining  (Read 7236 times)

Offline thekid65

  • Semi-Newbie
  • *
  • Posts: 44
Initial membergroup setting upon joining
« on: December 05, 2008, 02:08:20 PM »
We've got a little problem when a new member joins the forum. When a member joins, he/she should be automatically placed into our "regular members" group. Instead, the new member isnt placed in any group, and doesnt have access to some of the forum features (kind of like a guest). So, we have to manually go in and place the new member in the "regular members" group.

I have a feeling theres a setting I'm missing somewhere, any guidance would be appreciated. Version is SMF2b4

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: Initial membergroup setting upon joining
« Reply #1 on: December 05, 2008, 02:12:05 PM »
Strange...
Anyway there is this mod: http://mods.simplemachines.org/index.php?mod=485

Offline thekid65

  • Semi-Newbie
  • *
  • Posts: 44
Re: Initial membergroup setting upon joining
« Reply #2 on: December 05, 2008, 02:19:18 PM »
Thanks for that ^^^ but it doesnt look like it's compatible with SMF2b4 ?

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,882
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Initial membergroup setting upon joining
« Reply #3 on: December 05, 2008, 03:19:31 PM »
"regular members" isn't a real group - it's just a "virtual" group containing every member who isn't in another non-post-based group.

By default they should be placed in the "Newbie" post group. Did you rename or remove the name for that group?
Michael Eshom
Cincy Space - now open!

Offline thekid65

  • Semi-Newbie
  • *
  • Posts: 44
Re: Initial membergroup setting upon joining
« Reply #4 on: December 05, 2008, 04:13:17 PM »
I didnt do the initial set-up of the forum, my co-admin did, who is not available at the moment. I'm pretty sure that all that was done was just a renaming of the post-based groups to fit our forum style.

So, whats happening, is that when a new member joins, in their acct settings, the primary membership group field remains blank, as opposed to being placed into our "regular group" ie, those members who are not admins/mods/or members of a private group. Hope this makes sense? I could provide a cap of our settings if this would be helpful.
« Last Edit: December 05, 2008, 04:20:35 PM by thekid65 »

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,882
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Initial membergroup setting upon joining
« Reply #5 on: December 05, 2008, 05:49:15 PM »
It should remain blank. They should only be in the "Newbie" post group by default (or whatever it was renamed to).
Michael Eshom
Cincy Space - now open!

Offline thekid65

  • Semi-Newbie
  • *
  • Posts: 44
Re: Initial membergroup setting upon joining
« Reply #6 on: December 05, 2008, 06:08:20 PM »
The problem is, if it remains blank, then certain forum features arent accessible. So, perhaps if I set the "newbie" permissions the same as our "regular members" group it might solve the issue?

Edit: Scratch that...the post based members (ie, "newbie") arent assigned permissions. It's only the specific member groups that I can assign permissions to.
« Last Edit: December 05, 2008, 06:12:41 PM by thekid65 »

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,882
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Initial membergroup setting upon joining
« Reply #7 on: December 05, 2008, 06:10:53 PM »
Have you given the "Newbie" and "Regular Members" groups access to various things?
Michael Eshom
Cincy Space - now open!

Offline thekid65

  • Semi-Newbie
  • *
  • Posts: 44
Re: Initial membergroup setting upon joining
« Reply #8 on: December 05, 2008, 06:20:24 PM »
Allrighty, here's a cap of our settings.. hopefully that may help you understand how the forum was set up. What we want, is when a member joins, for him/her to be automatically placed into the "CRF regs" group. Which is just the general group for all of our members. This group allows members to access forum features like chess, etc, etc.. that guests dont have access to.

I appreciate your assistance.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,882
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Initial membergroup setting upon joining
« Reply #9 on: December 05, 2008, 10:13:01 PM »
You can accomplish the same thing by setting permissions for the "Regular Members" group - anyone who isn't in another non-post-based group will be in this group.

However, if you do want to add them to the other group instead, you can do this:

Sources/Subs-Members.php

Find
Code: (Line 648) [Select]
'openid_uri' => (!empty($regOptions['openid']) ? $regOptions['openid'] : ''),
Add after that
Code: [Select]
'memberGroup' => x,
Change "x" to the ID of the CRF regs group.
Michael Eshom
Cincy Space - now open!

Offline ke4obt

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
Re: Initial membergroup setting upon joining
« Reply #10 on: December 20, 2008, 12:18:19 AM »
OK, tried the edit and got this error:
"Database Error: Unknown column 'memberGroup' in 'field list'


INSERT INTO smf_ezmembers(`member_name`, `email_address`, `passwd`, `password_salt`, `posts`, `date_registered`, `member_ip`, `member_ip2`, `validation_code`, `real_name`, `personal_text`, `pm_email_notify`, `id_theme`, `id_post_group`, `lngfile`, `buddy_list`, `pm_ignore_list`, `message_labels`, `website_title`, `website_url`, `location`, `icq`, `aim`, `yim`, `msn`, `time_format`, `signature`, `avatar`, `usertitle`, `secret_question`, `secret_answer`, `additional_groups`, `ignore_boards`, `smiley_set`, `openid_uri`, `memberGroup`, `is_activated`, `hide_email`)
VALUES"

I'm guessing that a column needs to be added into my database. Where should I put the field, what type of field should it be? I'm learning slowly and a lot of this programming gets me confused easily. :)
I'd really like to have my new registrations go automatically into the "New User" group, but as it is right now, they don't get registered at all. :(

Thanks in advance,
Flip

ps - if needed, I can put my Subs-Members.php file into a post to be looked at by someone who knows what they're doing. :)
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!

Yes I am really a BLIND user!
So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,882
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Initial membergroup setting upon joining
« Reply #11 on: December 23, 2008, 12:10:54 PM »
Sorry. It should be 'member_group'.
Michael Eshom
Cincy Space - now open!