Active
Project:
Signup
Version:
6.x-1.0
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2012 at 19:41 UTC
Updated:
23 Feb 2016 at 08:02 UTC
Jump to comment: Most recent
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.
Thanks
sp09
Comments
Comment #1
jordojuice commentedSorry, not critical
Comment #2
sp09 commentedcritical or not a real answer could have been helpful
Comment #3
jordojuice commentedSorry, 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.
Comment #4
luisgrisolia commentedI 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 formBut 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 !!
Comment #5
deanflory commentedThis 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:
https://drupal.org/node/2261727
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
Comment #6
todea commentedIf 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:
Comment #7
jeremymears commentedCouldn'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
Comment #8
jeremymears commentedI 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'));
$query
->condition("n.status", 1)
->condition("{$alias}.user_reg_form", 1)
->condition("{$alias}.status", 1);
$query->addTag('node_access');
$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,
);
}
}