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 »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • New module for Easy OG registration by state/province w/ CiviCRM sync
Pages: [1]

Author Topic: New module for Easy OG registration by state/province w/ CiviCRM sync  (Read 5293 times)

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
New module for Easy OG registration by state/province w/ CiviCRM sync
May 28, 2009, 04:12:00 pm
This is a small module that demonstrates a simpler end user experience for registering for Organic Groups with some reverse syncing.

It provides a block, which when enabled, will appear on OG pages for anonymous users. When the user clicks the link/icon in the block, they are taken to a user registration from which pre-select that group for them. (also providing a link if they want to register for other groups)

It also provides reverse OG syncing, such that when an Individual is added to CiviCRM by any means, if that contact is registering, or has a user account, they will be added to an OG with the same name as their state/province. (if it exists.)

So, we have a site with OGs for several states. An anonymous user browsers to a state of interest. They click the sign-up link, and are taken to a Drupal registration page, which is pre-selected to add them to the group for that state. We also have a CiviCRM profile included on our registration. The user enters their mailing address, which is for another state. In the end, the user is signed up for both state groups.

Download here. ALPHA quality. Test thoroughly before use on production sites.

http://ninjitsuweb.com/files/modules/cogsregister-0.2-alpha.tar.gz

Best,

Matt
http://www.NinjitsuWeb.com
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

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: New module for Easy OG registration by state/province w/ CiviCRM sync
May 28, 2009, 04:17:34 pm
Sounds a very useful approach - will look at testing shortly and presumably hacking to remove/reconfig the sign-up to OG based on State so it works on other fields
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

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: New module for Easy OG registration by state/province w/ CiviCRM sync
June 23, 2009, 11:15:09 pm
hey matt - about to give this a look at - any updates before i grab that alpha version?
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

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: New module for Easy OG registration by state/province w/ CiviCRM sync
June 24, 2009, 03:20:38 am
Okay - so reporting back. Installed module - couldn't spot any permissions - enabled the block to left hand as per the rest. Went to OG page both logged in and anonymous but could not see block. Moved block above Navigation so I was sure I knew where to look. No joy.

Other possible factors.
OG are all using og-ghp-ron as home page
Have OG Panels installed

Probably unrelated, but when I just went to create a new group page, while the page is created and shows in RON when I click on link I got a 'page could not be found error' - guess I better uninstall and see if this issue persists.
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

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: New module for Easy OG registration by state/province w/ CiviCRM sync
June 24, 2009, 03:43:28 am
Okay - tested on another site and saw the block ;-) added a user and confirm user was joined to OG and civiGroup. Can't test the reverse synch as not endeavouring to create State OGs but nice concept. May look at doing the reverse synch based on a Custom field.

Now back to site 1 to see what is buggrd.
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

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: New module for Easy OG registration by state/province w/ CiviCRM sync
June 24, 2009, 12:24:53 pm
BTW it seems to me like the first part of this module answers several people's needs to have anon able to click on 'join' on a group and go straight to a login form. eg http://drupal.org/node/347698
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

jellobrain

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • charmed, i'm sure.
    • jellobrain
  • CiviCRM version: 3.3.2
  • CMS version: drupal 6.x
  • MySQL version: 5.1
  • PHP version: 5.2
Re: New module for Easy OG registration by state/province w/ CiviCRM sync
June 30, 2009, 09:09:37 am
awesome.  how did the testing go?  i have a site that i would like to test it on...
__

jellobrain.com

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New module for Easy OG registration by state/province w/ CiviCRM sync
June 30, 2009, 05:03:59 pm
@peterd

Did you try clearing Drupal's caches on site one?
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

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: New module for Easy OG registration by state/province w/ CiviCRM sync
November 09, 2011, 03:42:22 pm
Just trying to join some dots - and get a tiny bit of clarification.

There has been some new code posted here http://forum.civicrm.org/index.php?topic=22162

Matt - re-reading your approach it sounds as if the reverse synch might have been working off a Smart Group ie you say 'We also have a CiviCRM profile included on our registration. The user enters their mailing address, which is for another state.'

Do I take it that the State field is being used to build a Smart Group - or is it more direct than that?
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

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New module for Easy OG registration by state/province w/ CiviCRM sync
November 10, 2011, 06:47:24 am
No, there is no smart group involved.

The user is added directly to the OG based on the value of their primary state/province when the contact is added or edited.

This happens on line 109 of the code. Sorry that it's a bit opaque. If people are actually using this, I can set it up as a project on drupal.org so other can submit patches & documentation.

(To me, it's more of a demo of how to do a custom OG/Civi integration, rather than a highly useful module in itself, because it's too specific to my client's needs. It's basically exactly what I provided the client, removing any references to the client and it's own data.)
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • New module for Easy OG registration by state/province w/ CiviCRM sync

This forum was archived on 2017-11-26.