News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to select default primary membergroup?

Started by cambler, April 29, 2008, 06:48:44 PM

Previous topic - Next topic

cambler

This is likely a completely n00b question - I've created a membergroup called "newbies" that I'd like all newly-registered users to be placed in once they're activated.

How do I go about setting this?

Spaceman-Spiff

Why not just let it use the "Newbie" Post count based groups? That one is available by default.

cambler

Quote from: Spaceman-Spiff on April 29, 2008, 07:56:51 PM
Why not just let it use the "Newbie" Post count based groups? That one is available by default.

Because I'm going to create a cron job to move users out of the "Newbie" group after they've been using the forum for 30 days. The "Newbie" group is going to be restricted to not allow new users to start new topics, so using a post-count group doesn't make much sense.

Spaceman-Spiff

I see...

I'm not sure if there's any such feature, however, you can edit it manually in Sources/Subs-Members.php:

Search for:
// Register them into the database.
$smcFunc['db_insert']('',
'{db_prefix}members',
$column_names,
$values,
array('id_member')
);


Add before:
$column_names['id_group'] = 'int';
$values['id_group'] = 9;


Change 9 to whatever the group ID is.


Rumbaar

I know there was a mod that allowed for you to set the default membergroup for all new members:
Default Membergroup on Registration
But it's only for 1.1.*

You can try and update it or work out how to make the changes for 2.*
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: