CiviCRM Forums
News: You can learn more about CiviCRM from our new free book: Understanding CiviCRM. Also Check the CiviCRM Blog for updated information on CiviCRM
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 16, 2010, 04:43:31 pm


Login with username, password and session length


Pages: [1] 2
  Print  
Author Topic: Joomla Login Integration  (Read 4349 times)
kniaz
I’m new here
*

Karma: 1
Offline Offline

CiviCRM: 2.1.0
CMS: Joomla 1.5.7
Posts: 10


View Profile
« on: October 22, 2008, 01: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!
Logged
Donald Lobo
Administrator
I’m (like) Lobo ;)
*****

Karma: 297
Offline Offline

CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6

Posts: 8142



View Profile WWW
« Reply #1 on: October 22, 2008, 07: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

Logged

Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
kniaz
I’m new here
*

Karma: 1
Offline Offline

CiviCRM: 2.1.0
CMS: Joomla 1.5.7
Posts: 10


View Profile
« Reply #2 on: October 23, 2008, 05: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.
Logged
davidunwinubs13
I’m new here
*

Karma: 0
Offline Offline

CiviCRM: 3.1.3
CMS: Standalone
MySQL: 5.2
PHP: 5

Posts: 20


View Profile
« Reply #3 on: 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?
Logged
Donald Lobo
Administrator
I’m (like) Lobo ;)
*****

Karma: 297
Offline Offline

CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6

Posts: 8142



View Profile WWW
« Reply #4 on: 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
Logged

Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
jazz0435
I’m new here
*

Karma: 1
Offline Offline

CiviCRM: 2.1
CMS: Joomla 1.5.7
Posts: 15


View Profile
« Reply #5 on: 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?
Logged
Dave Greenberg
Administrator
I’m (like) Lobo ;)
*****

Karma: 141
Offline Offline

CiviCRM: 3.0.4, 3.1.2, latest svn (trunk)
CMS: Drupal 6.x, Joomla 1.5
MySQL: 5.0.41-log
PHP: 5.2.3

Posts: 3720



View Profile WWW
« Reply #6 on: 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
Logged

Support CiviCRM's continued development by making a donation.
jazz0435
I’m new here
*

Karma: 1
Offline Offline

CiviCRM: 2.1
CMS: Joomla 1.5.7
Posts: 15


View Profile
« Reply #7 on: 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).
Logged
Dave Greenberg
Administrator
I’m (like) Lobo ;)
*****

Karma: 141
Offline Offline

CiviCRM: 3.0.4, 3.1.2, latest svn (trunk)
CMS: Drupal 6.x, Joomla 1.5
MySQL: 5.0.41-log
PHP: 5.2.3

Posts: 3720



View Profile WWW
« Reply #8 on: 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
Logged

Support CiviCRM's continued development by making a donation.
Donald Lobo
Administrator
I’m (like) Lobo ;)
*****

Karma: 297
Offline Offline

CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6

Posts: 8142



View Profile WWW
« Reply #9 on: 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 Sad

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

lobo
Logged

Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
jazz0435
I’m new here
*

Karma: 1
Offline Offline

CiviCRM: 2.1
CMS: Joomla 1.5.7
Posts: 15


View Profile
« Reply #10 on: 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.
Logged
Donald Lobo
Administrator
I’m (like) Lobo ;)
*****

Karma: 297
Offline Offline

CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6

Posts: 8142



View Profile WWW
« Reply #11 on: 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
Logged

Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
jazz0435
I’m new here
*

Karma: 1
Offline Offline

CiviCRM: 2.1
CMS: Joomla 1.5.7
Posts: 15


View Profile
« Reply #12 on: 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
Logged
sungoddess
I post occasionally
**

Karma: 1
Offline Offline

Posts: 41



View Profile WWW
« Reply #13 on: 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
Logged
Donald Lobo
Administrator
I’m (like) Lobo ;)
*****

Karma: 297
Offline Offline

CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6

Posts: 8142



View Profile WWW
« Reply #14 on: January 01, 2009, 06:25:50 am »


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

lobo
Logged

Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM