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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Joomla user registration component
Pages: [1]

Author Topic: Joomla user registration component  (Read 9139 times)

rogerco

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 5
Joomla user registration component
August 07, 2008, 04:12:37 am
Hi all,

As promised I have posted a preliminary version of my Joomla component and module to restrict user signups to only valid members over in the wiki http://wiki.civicrm.org/confluence/display/CRMDOC/Joomla+User+Registration+Restriction

It replaces the standard frontend user login and registration bits with a version that aks for firstname, lastname and email and checks for a matching CiviCRM contact. If one is found it then optionally checks whether the individual belongs to a specified group before allowing the registration to proceed.

Thus you can have all your membership records in CiviCRM and allow only valid members to sign up on your site and login to create a members only site. I recommend using this in conjucntion with Henry Bennett's authentication plugin so that if a member lapses they can no longer login.

This is a first stab at it but seems to be working ok - if anyone has a test joomla setup they could try it on that would be tremendously helpful.

It is a native Joomla 1.5 component so will not work on J1.0 installations, and also there is only an english GB language file - although since this is actually a clone of the com_user language file you could just copy your local version of that renaming it to xy-AB.com_civiuser.ini in your Joomla languages folder.

Please let me know if you try this, and any suggestions for improvements. I have listed some in the wiki.

Once I am a bit more confident that this is robust I'll post notice of it over in the general forum.

RogerCO

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Joomla user registration component
August 07, 2008, 06:09:44 am
RogerCO -
This is fantastic! Thanks for the contribution!
I'll kick the tires over the next few days and let you know if I come across any bugs.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Joomla user registration component
August 27, 2008, 08:55:04 pm
Roger,
Finally had a chance to test this out (all I needed was some client pressure!). A few things:

  • mod_civilogin/tmpl/default.php -- line 12: value needs to be updated to com_civiuser (module logout currently breaks)
  • If there are duplicate emails in CiviCRM (two+ records with the same email), the registration component errors on the uf_match table. This is to be expected, as Civi matches on the email (admins should dedupe on emails regardless as dup emails will create mismatches between Joomla users and CiviCRM contacts). But for the sake of this component, it might be nice to let it degrade more cleanly than currently (sql error msg), as it could be disconcerting to the end user.
  • Small item, but in the component parameters, I would make the two "sorry" text fields textarea instead. I personally found need to use more space.

So far, everything else seems to be working as expected. Thanks again -- very helpful!

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

PapaLion

  • Guest
Re: Joomla user registration component
September 28, 2008, 07:55:58 am
Just downloaded this and will try to integrate it into my sandbox.  I use J1.5.6 and CiviCRM 2.beta3 today.  Is there someone more experienced to direct ?s as i go,  oversight so I can do the install correctly. I do not wish to swamp the forum with ?s and distract the effort.  I have never worked with an alpha and am looking forward to learning here.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Joomla user registration component
September 28, 2008, 08:39:20 am

you might want to try this with 2.1beta6 since that is the latest version and has a fair number of joomla fixes (from beta3)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

rogerco

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 5
Re: Joomla user registration component
September 29, 2008, 03:11:28 am
Hi all,
Been elsewhere for a few weeks and about to come back to this. Will pick up Brian's comments soonest.

Unfortunately I can't try Civi 2.1 because of the requirement for MySQL 5 - my hosting provider is saying it will be at least another 3-6 months before they consider migrating so I am stuck with 2.0.x until then and will not be doing anything on 2.1

(Unless someone can unpick the mysql5 specific stuff and provide working alternatives. This was a big mistake IMHO)

RogerCO

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Joomla user registration component
September 29, 2008, 07:44:54 am
PapaLion --
probably best if you ask more specific questions re: the CiviUser component. forums are the best way to get support.

RogerCO --
did I send you my edits that incorporated the member status element? my brain is fuzzy...

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

PapaLion

  • Guest
Re: Joomla user registration component
September 29, 2008, 04:08:47 pm
IcdWeb, yes that would be good adivce thanks much... ? Is is just a place to work/install try it etc ? what if Roger had admin access as needed in my sandbox for awhile? I'm on a keen shared server with cpanel and MySql5,  I use J1.5.6 ... could go to  1.5.7... and I could do a  clean install of 2.1Beta6  and just leave it for awhile? ... I'm doing other totally unrelated things on OpenRealty lately?  Just a thought.
PapaLion

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: Joomla user registration component
September 29, 2008, 11:38:51 pm
RogerCO,

If you need some dev space on a mysql 5 / php 5 platform I could potentially help here.

Henry

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Joomla user registration component

This forum was archived on 2017-11-26.