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 CiviMember (Moderator: Deepak Srivastava) »
  • Joomla Login Integration
Pages: [1] 2

Author Topic: Joomla Login Integration  (Read 8247 times)

kniaz

  • Guest
Joomla Login Integration
October 22, 2008, 02:02:43 pm
Hi,

I've searched the forums and the only information I could find on this dates back to April of this year.  I am hoping there are further developments on this issue since that time.

What I need to have happen is when a user joins the association through CiviMember, a Joomla login is automatically generated.  And I can then use that login to control access to a members-only area of the site.

I am using CiviCRM 2.1.0 and Joomla 1.5.7.

Is it possible?  And is it possible without extensive hacking Joomla and CiviCRM?

Thanks in advance for your responses!

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 Login Integration
October 22, 2008, 08:43:06 pm

1. You can create a joomla user when someone signs up and becomes a member via the profile feature: Create CMS User

2. Dont know enough about Joomla to know how easy/hard it is to control access to a members only area of that site. you'll need to investigate that. the users are created with the default new_usertype. You can check the code at: CRM/Core/BAO/CMSUser.php, function createJoomlaUser

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

kniaz

  • Guest
Re: Joomla Login Integration
October 23, 2008, 06:45:42 am
Thanks!! I will check it out and let you know if that's doable - it seems that this sort of functionality may be something people will be interested in.

davidunwinubs13

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
    • Marylebone Association
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Joomla Login Integration
November 04, 2008, 03:06:25 am
I would also like to do this, but I cant find any reference in CiviCRM to create "CMS User".
I can find create CiviCRM profile in the customize section of administer CiviCRM, but that is something different.
Where do you find the create CMS User?

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 Login Integration
November 04, 2008, 06:46:28 am

In profile, the "Create CMS User" option is under "Advanced Settings"

Check:

http://drupal.demo.civicrm.org/civicrm/admin/uf/group?action=update&id=1

goto bottom of page, and click on advanced settings (its an ajax widget which loads an additional form)

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

jazz0435

  • Guest
Re: Joomla Login Integration
November 26, 2008, 02:34:39 pm
This functionality works fine in Joomla 1.5.7.

The problem is that the page on which this profile (with create CMS account option enabled) is used, the user gets an option to create the CMS user account (so, it's optional). For the non-profit website I am working on, we need to make the CMS user account creation madatory. Any idea how to do that?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Joomla Login Integration
November 29, 2008, 01:17:01 pm
The ability to force unauthenticated (not logged-in) folks to create a user account will be part of the 2.2 release. You can try it now on our 2.2 sandbox:

http://sandbox.civicrm.org

... details are here:
http://issues.civicrm.org/jira/browse/CRM-3788

... roadmap and schedule for 2.2:
http://wiki.civicrm.org/confluence/display/CRM/CiviCRM+v2.2
Protect your investment in CiviCRM by  becoming a Member!

jazz0435

  • Guest
Re: Joomla Login Integration
November 30, 2008, 09:21:48 am
Perfect.

Is there a way I can patch my 2.1 installation with this latest fix? Would be great if I can just copy over the files. My non-profit's site is hosted on godaddy and it's a pain to install civicrm on godaddy (I installed it on dreamhost and copied over the files and db to godaddy).

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Joomla Login Integration
November 30, 2008, 03:59:40 pm
You can try implementing the changes logged in "Fisheye". Given that this is being added in 2.2 rather than a minor release, I'm not sure how compatible the changes are - you'll have to review the mods:

http://issues.civicrm.org/jira/browse/CRM-3788?page=com.atlassian.jira.ext.fisheye:fisheye-issuepanel
Protect your investment in CiviCRM by  becoming a Member!

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 Login Integration
November 30, 2008, 06:13:09 pm

Note that we might have not recorded all the changes needed to fix that issue. In particular i noticed that:

CRM/UF/Form/AdvanceSetting.php

was changed for this issue (rev 17498) but not marked as such in the commit log :(

If you are comfortable with php and svn, backporting the fix is possible. contact us on IRC if you need any help

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

jazz0435

  • Guest
Re: Joomla Login Integration
December 02, 2008, 06:14:00 pm
Thanks for your help, Lobo. Please let me know the IRC details.

I tried updating CMSUser.php and CMSUser.tpl to the latest, but didn't help.

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 Login Integration
December 03, 2008, 06:25:32 am

u also need to update AdvanceSetting.php

http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true (to get on IRC)
 
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

jazz0435

  • Guest
Re: Joomla Login Integration
December 04, 2008, 02:46:00 pm
Thanks, Lobo & Dave.

I was able to make cms registration required (rather than optional) by copying over the below files over my 2.1 installation:
templates/CRM/common/CMSUser.tpl
CRM/Core/BAO/CMSUser.php
CRM/UF/Form/AdvanceSetting.php

sungoddess

  • Guest
Re: Joomla Login Integration
January 01, 2009, 04:34:31 am
Where do we get the CRM/UF/Form/AdvanceSetting.php patch from? Not seeing it here:

http://issues.civicrm.org/jira/browse/CRM-3788?page=com.atlassian.jira.ext.fisheye:fisheye-issuepanel

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 Login Integration
January 01, 2009, 06:25:50 am

http://fisheye.civicrm.org/browse/CiviCRM/trunk/CRM/UF/Form/AdvanceSetting.php?r1=15610&r2=17498

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

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Joomla Login Integration

This forum was archived on 2017-11-26.