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) »
  • Trying to figure out when members renew, if Joomla level changes - SQL help?
Pages: [1]

Author Topic: Trying to figure out when members renew, if Joomla level changes - SQL help?  (Read 161 times)

bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Trying to figure out when members renew, if Joomla level changes - SQL help?
November 10, 2014, 12:54:40 pm
I am trying to find out if when a member signs up and changes their membership to a lower level membership, if their Joomla! access changes as well back.  I can’t seem to do this kind of query from the admin panel but I think if I could run a query from my cPanel I think I could tell if this is happening.  Can some of you SQL gurus help me with this?

I need to know if a ‘civicrm_membership’ ‘contact_id’ has a ‘civicrm_membership’ ‘membership_type_id’ = “<number A>”

where the ‘het_user_usergroup_map’ ‘user_id’ has a ‘<db>_user_usergroup_map’ ‘group_id’ = “<number B>”

given that ‘civicrm_uf_match’ ‘contact_id’ is linked to ‘civicrm_uf_match’ ‘uf_id’
provide from ‘<db>_users’ ‘username’ where ‘<db>_users’ ‘id’ = ‘<db>_user_usergroup_map’ ‘user_id’

Notes
<db> is my database prefix
<number A> is the number of a specific CiviCRM membership type
<number B> is the number of specific Joomla security level

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Trying to figure out when members renew, if Joomla level changes - SQL help?

This forum was archived on 2017-11-26.