I would create a custom module to do it that ties into hook_user and assigns the new user to a role. You mentioned non-programmer so here is my quick attempt at how that module would look ... the admin page for it would be at admin/settings/autoassignrole and you would need to type the name of the role you were wanting to auto assign there. This breaks down to two files
<a href="http://autoassignrole.info">autoassignrole.info</a>, and autoassignrole.module ... Hope it helps.<br><br>create the directory modules/autoassignrole<br><br>place this code in a file called modules/autoassignrole/autoassignrole.info
<br><br>; $Id $<br>name = "Auto Assign Role"<br>description = "Designate a role to assign all new users to."<br>version = "1.0"<br><br><br><br><br><br>Place this code in modules/autoassignrole/autoassignrole.module
<br><br><?php<br>define("AUTOASSIGNROLE_ROLE", "");<br>/**<br> * Implementation of hook_user().<br> */<br>function notify_user($type, &$edit, &$user, $category = NULL) {<br> switch ($type) {
<br> case 'insert':<br> db_query('INSERT INTO {users_role} (uid, rid) values (%d, %d)', $user->uid, $rid );<br> break;<br> }<br>}<br>/**<br> * Implementation of hook_menu().<br> *<br> * @return array
<br> */<br>function autoassignrole_menu($may_cache) {<br> $items = array();<br> if ($may_cache) {<br> $items[] = array(<br> 'path' => 'admin/settings/autoassignrole',<br> 'title' => t('Auto Assign Role Settings'),
<br> 'description' => t('Auto Assign Role Settings page.'),<br> 'callback' => 'drupal_get_form',<br> 'callback arguments' => 'autoassignrole_settings',<br>
'access' => user_access('administer autoassignrole'),<br> );<br> }<br> return $items;<br>}<br>function autoassignrole_settings() {<br> $form['autoassignrole_settings'] = array(<br> '#type' => 'fieldset',
<br> '#title' => t('Auto Assign Role Settings'),<br> '#collapsible' => FALSE,<br> '#collapsed' => FALSE,<br> );<br> $form['autoassignrole_settings']['AUTOASSIGNROLE_ROLE'] = array(
<br> '#type' => 'textfield',<br> '#title' => t('.'),<br> '#default_value' => variable_get('AUTOASSIGNROLE_ROLE', ''),<br> '#size' => 70,<br> '#maxlength' => 255,
<br> '#description' => t('The role you want new users assigned to.')<br> );<br> return system_settings_form($form);<br>}<br>/**<br> * Implementation of hook_perm().<br> * @return array<br> */<br>function autoassignrole_perm() {
<br> return array('administer autoassignrole');<br>}<br><br>/**<br> * Implementation of hook_user().<br> */<br>function autoassignrole_user($type, &$edit, &$user, $category = NULL) {<br> switch ($type) {
<br> case 'insert':<br> $sql = "SELECT r.rid FROM {role} r WHERE <a href="http://r.name">r.name</a> = '%s'";<br> $role = db_fetch_object(db_query($sql,variable_get('AUTOASSIGNROLE_ROLE','')));
<br> db_query('INSERT INTO {users_roles} (uid, rid) values (%d, %d)', $user->uid, $role->rid );<br> break;<br> }<br>}<br><br><a href="http://www.kevinbridges.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
</a>