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 CiviContribute (Moderator: Donald Lobo) »
  • Joomla Login and Registration
Pages: [1]

Author Topic: Joomla Login and Registration  (Read 3855 times)

rmeilech

  • Guest
Joomla Login and Registration
September 07, 2009, 03:57:50 pm
I just installed CiviCRM 3.0 into my Joomla 1.5.13 site and am loving it. A few related questions about integrating CivicCRM with Joomla user registration and login:
 

1.  Registration:  I created a CiviContribute page to use as my Joomla registration page,  and checked User account registration.  Almost everything worked fine.  Tested the page with a new user, it added user to Joomla and sent email. What didn't happen was the copying over of the First and Last Name to Joomla.  Instead for the Name (not username--that works fine).  How do I do that--create a profile fields that becomes the Name field in the Joomla user account?

2.  How do I use CiviContribute (or one of its other components) to create a Login module or page?

3.  If I can't use CivicCRM for as an alternative Login page, is there a way to link the standard Joomla "Create an account" to the CiviCRM registration page I created?

Thanks.

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 and Registration
September 07, 2009, 06:45:46 pm

1. We have not implemented the copying of the first/last name to Joomla (as yet). If you'd like to implement it and submit a patch that addresses it, that would be awesome (and much appreciated by the joomla community). The code should be in: CRM/Core/BAO/CMSUser.php

2. civicrmdoes not provide this functionality

3. You might want to try this extension: http://extensions.joomla.org/extensions/bridges/authentication-bridges/5650

please report back on how things go :)

thanx

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

rmeilech

  • Guest
Re: Joomla Login and Registration
September 07, 2009, 09:09:30 pm
1.  Love to implement it, but my coding skills are not sufficient. 

2.  I ended up creating a "login" menu with two items: Login--linked to the default login layout, and Register--linked to the contributions page I created.  It looked like everything was working fine, EXCEPT: once logged in I can't logout, and the contributions page that was previously working fine now take all the info, creates a CiviCRM user account, but not a Joomla user, AND won't let me delete the CiviCRM user.  What a mess!  If I can't figure this out soon, I may have to uninstall CiviCRM and start from scratch again.

3.  Once I get this mess sorted out, I will take a look at that extension, thanks.


rmeilech

  • Guest
Re: Joomla Login and Registration
September 07, 2009, 09:44:07 pm
Stranger and stranger.

To clean up the above referenced mess, I tried deleting the Register menu item linked to the Contributions page.  And then wanted to recreate it following the instructions in the CiviCRM doc entitled "Displaying Online Contribution Pages in Joomla Frontend Sites--which is how I created it in the first place.

I followed the Joomla 1.5 instructions, but after clicking Internal Link, instead of getting a single option for CiviCRM 9as stated in the doc), I got the following (partial listing):
Internal Link
--CiviCRM Contributions Page
----Contributions

I clicked the latter, and did not see anything like what was described in the doc for Parameters-Basic.  Instead, I got a single option, which was to link to the name of the Contributions page I had previously created.

I cleared my browser cache and tried to do this again--same problem.

Looking for any advice whatsoever.

rmeilech

  • Guest
Re: Joomla Login and Registration
September 07, 2009, 09:52:18 pm
One more, possibly unrelated factor--I can't delete Profiles.  There is simply no button, box or anything providing that capability.

Should I just uninstall/reinstall?


rmeilech

  • Guest
Re: Joomla Login and Registration
September 07, 2009, 11:40:33 pm
Wanting to start from scratch completely.  Cannot delete civicrm tables--something to do with foreign key: eveything points to civicrm_tag--cannot DROP it or even EMPTY it completely.

Really want to move on with reinstall; but want clean slate.  How do I delete all of the crm tables?

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Joomla Login and Registration
September 08, 2009, 02:34:42 am
Quote
How do I delete all of the crm tables?

do check 'sql/civicrm_drop.mysql'  to drop all civicrm tables.

if you have custom data created make sure to manually drop all custom data tables before running above sql.
( table name might be like 'civicrm_value_*' )

hope this help

kiran
You Are Designed To Choose... Defined By Choice.

rmeilech

  • Guest
Re: Joomla Login and Registration
September 08, 2009, 06:36:09 am
Thank you for the quick response.  But sorry, I don't understand how to "do check 'sql/civicrm_drop.mysql'".  Is that something I do in phpMyAdmin?

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Joomla Login and Registration
September 08, 2009, 07:13:29 am
It is a sql file located in civicrm code base.
( equivalent directory path might be like :  administrator/components/com_civicrm/civicrm/sql/civicrm_drop.mysql )

which consists of series of sql statements w/ proper sequence to drop all civicrm tables.
you can run these statements in phpMyAdmin
or you might want to run sql command like "mysql -u dbusername -p dbpassword dbname </ give path to civicrm_drop.mysql file"

which will drop all civicrm tables.

also I have attached sample civicrm_drop.txt  file, in case you are not able to find in civicrm code base.

hope this help

kiran
You Are Designed To Choose... Defined By Choice.

rmeilech

  • Guest
Re: Joomla Login and Registration
September 08, 2009, 07:18:44 am
Extremely helpful & fast.

One problem I foresee.  During last night's wee hours, I started to manually EMPTY and DROP civicrm tables (myphpadmin).  During the  process, I ran into an obstacle: the table civicrm_tags would not DROP.  Something about a foreign key. Nothing I do seems to clear that table.  And on that one seems to hinge many of the others.

Suggestion?  Or is it sufficient to run the file you attached?

rmeilech

  • Guest
Re: Joomla Login and Registration
September 08, 2009, 07:24:10 am
Never mind.  Your file ran beautifully.

Thank you again for laying it out so clearly.  Thanks to you, I can now start the reinstall.  Looking forward to a lot of fun with CiviCRM.

P.S.  One last question:  This is a brand new production site--I know I shouldn't be running a beta on a production site--but always love to have the latest and greatest.  Every program has bugs--even "stable" versions.  Will I really be that worse off running 3.0 Beta than the last stable version?


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Joomla Login and Registration

This forum was archived on 2017-11-26.