Hi !

At first, i want to thank you for this great module ;)
I found a little bug in the "signup_user_list" view. It is not possible to display profile fields in the table view even if you choose the correct fields in the "edit"settings.

Greetings

P.S.: Perhaps it is not a "bug" but a "missing feature" so you can simply change the category of this post ;) If so, what would be the solution to display the profile fields ? ( where have i to edit the display settings ? I tried to add a SQL-query as an "additional signup info" but i failed because there is a form required)

CommentFileSizeAuthor
profilefieldsedit.jpg86.15 KBlzimon
profilefields.jpg53.38 KBlzimon

Comments

dww’s picture

Version: 5.x-2.7 » 6.x-1.x-dev
Category: bug » support
Status: Active » Closed (works as designed)

That's not how views works in D5 (one of its many limitations). You can accomplish this in the D6 version using a "relationship" on the user.

lzimon’s picture

That are bad news for me :X I must use D5 because some modules are not finished for D6 yet and i don't have the knowledge to port them on my own.

And there is no way to workaround the limitation ? Perhaps someone has got a little hint or an idea for me.

lzimon’s picture

I've made a little workaround on my own.

I added my signup fields and used to autocomplete them by "default_value", so that the user hast only to press button to signup for an event, but he can still check and change his personal information if he wants.
After that i added some "Signup: User: Additional Signup Info" fields to the view, thats it.

If someone wants to see the source code i can post it, but it's not a big deal to do it on your own ;)

Bill Choy’s picture

I am newbie to Drupal Programming, so forgive my ignorance.

I created the themename_signup_user_form($node) in my "template.php" file to create the additional fields. But now the signups/admin page looks cluttered with all the "Extra Information" information.

Is there anyway to cleanup the signups/admin page???

I also want to add a couple fields into the $view->name = 'signup_user_list'. The signup is for a hiking club and I want to add a "need/offering a ride" field and a zip-code field.

stevestaso’s picture

stevestaso’s picture

@lzimon
Yes - please post source code that makes this happen.

Thanks.

stevestaso’s picture

I found several ways to add user profile info into the signup form.
Here is how I am doing it now.

In the theme/signup_form.inc file,
after adding any extra fields (per the install.txt file) such as this:

  $form['signup_form_data']['Email'] = array(
    '#type' => 'textfield',
    '#title' => t('Email'),
    '#size' => 40, '#maxlength' => 64,
    '#required' => TRUE,
  );

.
. other extra fields
.

Use this code to pull the profile of the active user:

  $account = user_load(array('uid' => $user->uid));

Then each field gets populated:

  if ($user->uid) {
    $form['signup_form_data']['Email']['#default_value'] = $user->mail;
  }

.
. other extra fields
.