CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • outside of Drupal CiviSubscribe, how can anonymous users add himself to a group?
Pages: 1 [2]

Author Topic: outside of Drupal CiviSubscribe, how can anonymous users add himself to a group?  (Read 10126 times)

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a group?
June 10, 2009, 11:34:31 pm
Quote from: dharmatech on October 22, 2008, 10:20:28 am
You can create a profile with the standard contact info fields (if you want) and then add the groups field to the profile.  Only groups with public visibility will show so basically you're creating a sign up form where people can select what list (group) they want to join.

And I believe in 2.1 there is email confirmation if the group that is exposed is a mailing list.

here is an example: http://demo.dharmatech.org/programs

In this case, the profile is embedded in a drupal page.

hope this helps

tony
p.s. if you have drupal, make sure anonymous users have permission to access profiles.


So, I thought I had something like this set up. I have a profile set up to accept first name, last name and email and then have that user automatically added to one of my mailing groups which is set up to public user visibility. However, when I hit submit on the form, it just overwrites the first and last name as well as the email address for one of my existing users (the same one every time, each time I think I make a change, I reset the overwritten account with the correct information).

Any help or suggestions or maybe some insight into what I may be doing wrong...?

Thanks,
Shayaknyc

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a group?
June 11, 2009, 02:54:34 am
Are you filling in the profile while logged in? Maybe you need to use another browser that is not logged in.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a group?
June 11, 2009, 04:27:45 am
No, I use a totally separate browser that's not logged in...

--Shayaknyc

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a gr
June 11, 2009, 06:15:59 am
HAHA! I figured it out!

When I was copying the code from the standalone form link, the top code is:
<form  action="/drupal-6.6/index.php?q=civicrm/profile/edit&amp;gid=1&amp;reset=1" method="post" name="Edit" id="Edit" >

I had to change it to:
<form  action="/drupal-6.6/index.php?q=civicrm/profile/create&amp;gid=1&amp;reset=1" method="post" name="Create" id="Create" >

I wonder why the standalone form automatically sets it up to edit, and not create a new record....

--shayaknyc

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a gr
June 11, 2009, 06:28:22 am
Ok, I jumped the gun on that previous post.

Now, I get the following error message:

Please correct the following errors in the form fields below:
An account already exists with the same information.

*sigh* I'm so confused...

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a group?
June 11, 2009, 08:02:16 am
I'm pretty sure you have to configure your profile to "update contact on duplicate match." That is under a profile's advanced settings.

hope this helps
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a gr
June 11, 2009, 09:55:17 am
I don't mind setting it to do that, but what if it's a brand new registration? There's no duplicate matching. What about setting duplicate matching on is going to "fix" this?

Thanks!

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a group?
June 11, 2009, 10:08:59 am
There is always duplicate checking with profiles. This setting just determines what happens when a duplicate is found.  It was giving you the message: "an account already exists..." because a duplicate was found. With update on duplicate match turned on, if a duplicate is found, it wont give you the error but update the existing CiviCRM record with any new data entered into the form (profile). All new registrants (no duplicate is found) will be accepted as normal.

Be sure to configure your duplicate matching rules before you do this as well. I would recommend setting them to match on first name, last name, AND email.

hope this helps
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Re: outside of Drupal CiviSubscribe, how can anonymous users add himself to a gr
June 11, 2009, 10:28:05 am
Wow! It totally worked!! Thanks! :)

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • outside of Drupal CiviSubscribe, how can anonymous users add himself to a group?

This forum was archived on 2017-11-26.