I want to disallow users from having the "Users can sign up for this event from the user registration form" option. I also want to disallow them from having the token replace option and from seeing the token replacement names from the node create/edit form. I think by default their should be a way of not allowing users permissions to these settings.



jordojuice’s picture

Category: feature » support
Priority: Critical » Normal

Sorry, not critical

sp09’s picture

critical or not a real answer could have been helpful

jordojuice’s picture

Sorry, if I had the answer I would have given it to you. I help people all the time. Just happened to see the priority that's all.

luisgrisolia’s picture

Category: support » bug
Priority: Normal » Critical

I would say this is a bug when an event is set to be a group content (organic groups), this completely brokes the user creation form retreiving an error 500 with no information about, also there's an option on the signup module administration with a checkbox:

Allow registering users to sign up for nodes from the user registration form

But it won't remove the "Users can sign up for this event from the user registration form" option from node creation page.

This let my site's registration down for a while !!

deanflory’s picture

Issue summary: View changes

This is a serious bug as that option to allow signup on registration breaks node signup functionality. I just created a separate issue, but it wouldn't be as big of a deal if I could just turn off the option to allow setting signups on registration. I can't really see how this wasn't added to the admin form for Signups.

Here's my issue describing things in more detail:

And since this issue is over 2 years old and the issue queue is filling up fast, I imagine this won't get the attention it deserves. If anyone can take a look at this and provide a patch I would appreciate it, otherwise I'll have to simply disable Signup and go with another module called Registration: https://drupal.org/project/registration

todea’s picture

If you don't mind editing the signup module code then open the node_form.inc found in signup > includes and comment out the following lines towards the bottom:

    //$form['signup']['signup_user_reg'] = array(
    //  '#type' => 'checkbox',
    //  '#title' => t('Users can sign up for this event from the user registration form.'),
    //  '#description' => t('If selected, new users will be able to sign up for this event when they register.'),
    //  '#default_value' => $node->signup_user_reg_form,
jeremymears’s picture

Couldn't get #6 to work. I did as described and signups still appear on the registration form. This is really bad for me, only members should see Activities and now Anonymous users can view them. Completely breaks my sites' functionality

jeremymears’s picture

I hacked together a fix, if you comment out the following code in signup.module (sites/all/modules/signup. line 707-737) the signups don't appear on the user registration page:

// Get a list of nodes that should appear on the user registration form.
$query = db_select('node', 'n');
$alias = $query->join('signup', 's', 'n.nid = s.nid');
$query->fields('n', array('nid'));
->condition("n.status", 1)
->condition("{$alias}.user_reg_form", 1)
->condition("{$alias}.status", 1);
$nids = $query->execute()->fetchCol();

// Allow other modules to alter the list of nids.
drupal_alter('signup_user_reg_nids', $nids);
// If there is at least one node, add the Signup fieldset.
if (!empty($nids)) {
$form['signup'] = array(
'#type' => 'fieldset',
'#title' => t('Event signup'),
'#tree' => TRUE,
'#description' => t('You will be automatically signed up once your account is created.'),
// Each node gets a checkbox.
foreach ($nids as $nid) {
$node = node_load($nid);
$form['signup'][$nid] = array(
'#type' => 'checkbox',
'#title' => theme('signup_node_title', array('node' => $node)),
'#default_value' => 0,