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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • $my versus $user in Joomla! frontend
Pages: [1]

Author Topic: $my versus $user in Joomla! frontend  (Read 1927 times)

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
$my versus $user in Joomla! frontend
August 12, 2008, 09:50:27 am
I notice that in admin.civicrm.php

    $user = JFactory::getUser( );
    require_once 'CRM/Core/BAO/UFMatch.php';
    CRM_Core_BAO_UFMatch::synchronize( $user, false, 'Joomla', 'Individual' );

is used but in the the front end there is still

    global $my;
    require_once 'CRM/Core/BAO/UFMatch.php';
    CRM_Core_BAO_UFMatch::synchronize( $my, false, 'Joomla', 'Individual' );



I'm not sure if it relates to some of the front end issues I am having, but the new way is definitely the way to go for 1.5.

Is it  necessary that this be Individual and not contact?  I know there's a philosophical idea aobut how other types of contacts should be handled but if authentication were possible agains the contact table, couldn't that let us have organizations with sign ins?

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: $my versus $user in Joomla! frontend
August 12, 2008, 11:36:51 pm
Thanks. This has been fixed now (rev: 16609).
« Last Edit: August 13, 2008, 01:56:53 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: $my versus $user in Joomla! frontend
August 13, 2008, 03:04:10 am
Thank you for all three responses Deepak!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • $my versus $user in Joomla! frontend

This forum was archived on 2017-11-26.