Closed (fixed)
Project:
Signup
Version:
4.6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Sep 2005 at 00:57 UTC
Updated:
25 Sep 2005 at 17:20 UTC
Can you rig it so that if you are a signed in registered user, you can simply check a box that says sign me up for a certain event rather than having to fill out name, phone number and email?
Comments
Comment #1
hunmonk commentedthe signup form is not necessary for event signup, by design. the form itself is totally themable, and can be eliminated entirely--the code should work fine w/ no form at all. just head in to signup.theme, and comment out the form elements (leave the function and the return statement). that should eliminate the form and just leave the signup button. if that doesn't work, let me know and i'll look into it...
Comment #2
mdowsett commentedThanks! I do follow what you are saying (in theory). I tried just clicking the submit button without filling out the form and it does work slick. It may be worth it to put in your default module a text line that says something like "Fill out the form below OR just hit Submit and your user info will be "Signed Up".
I am not a coder so I am pretty reluctant to adjust code. But willing to give it a shot!
I found this section of the module which I think is the section you are talking about:
//user isn't signed up, so check to make sure they have signup
//permissions. if this is the case, then print the themed signup form
if (user_access('allow signups')) {
$form_data = theme('signup_user_form') . $hidden . form_submit(t('Click Here to Sign up now'));
$form = form($form_data, 'post', url('signup', drupal_get_destination()));
$output = form_group(t('Sign up for %title', array('%title'=>$node->title)), $form);
I adjusted the text of the submit button so I think I am in the right place but I can't figure out how to delete the fields.
Would you mind giving me some replacment lines of code to help me out?
Many thanks,
Mark
Comment #3
mdowsett commentedI fixed it myself...
I was looking at the .module, not the .theme.
Works like a charm now!
Thanks for the tip.
Comment #4
hunmonk commentedComment #5
mdowsett commentedSorry to bug you again. All nodes that I create have sign in boxes. I don't want that but I see no way to turn it off of certain types of nodes.
I wish there was still an "Event" node under Create Content and that was the only node you could put signups (and RSVPs for that matter).
And would you know where I could put a request in for an entire new module (kind of related to events).
Thx
Comment #6
hunmonk commentedplease view the README and/or INSTALL files that are in both signup and event--all the answers you need are in there. keep in mind that it's good protocol to read all the available help documents in a module and dependent modules before you post a support request--it saves everybody time... :)
Comment #7
hunmonk commentedclosing