kniaz
I’m new here
Karma: 1
Offline
CiviCRM: 2.1.0
CMS: Joomla 1.5.7
Posts: 10
|
 |
« 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: 298
Offline
CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6
Posts: 8159
|
 |
« 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
CiviCRM: 2.1.0
CMS: Joomla 1.5.7
Posts: 10
|
 |
« 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
CiviCRM: 3.1.3
CMS: Standalone
MySQL: 5.2
PHP: 5
Posts: 20
|
 |
« 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: 298
Offline
CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6
Posts: 8159
|
 |
« 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=1goto 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
CiviCRM: 2.1
CMS: Joomla 1.5.7
Posts: 15
|
 |
« 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
|
|
|
|
|
|
jazz0435
I’m new here
Karma: 1
Offline
CiviCRM: 2.1
CMS: Joomla 1.5.7
Posts: 15
|
 |
« 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
|
|
|
|
|
|
Donald Lobo
Administrator
I’m (like) Lobo ;)
   
Karma: 298
Offline
CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6
Posts: 8159
|
 |
« 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  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
CiviCRM: 2.1
CMS: Joomla 1.5.7
Posts: 15
|
 |
« 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: 298
Offline
CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6
Posts: 8159
|
 |
« Reply #11 on: December 03, 2008, 06:25:32 am » |
|
|
|
|
|
|
Logged
|
Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
|
|
|
jazz0435
I’m new here
Karma: 1
Offline
CiviCRM: 2.1
CMS: Joomla 1.5.7
Posts: 15
|
 |
« 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
|
 |
« Reply #13 on: January 01, 2009, 04:34:31 am » |
|
|
|
|
|
|
Logged
|
|
|
|
Donald Lobo
Administrator
I’m (like) Lobo ;)
   
Karma: 298
Offline
CiviCRM: 2.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.0.67
PHP: PHP 5.2.6
Posts: 8159
|
 |
« Reply #14 on: January 01, 2009, 06:25:50 am » |
|
|
|
|
|
|
Logged
|
Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
|
|
|
|