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 (Moderator: Dave Greenberg) »
  • Civicrm with Wordpress
Pages: 1 [2]

Author Topic: Civicrm with Wordpress  (Read 8117 times)

markemw

  • Guest
Re: Civicrm with Wordpress
May 24, 2011, 04:23:35 am
Can you clarify what the WordPress integration needs to achieve? Is it just a question of integrating users between WordPress and Civi, and displaying Civi in the WP template, or is there more to it than that?

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: Civicrm with Wordpress
May 24, 2011, 07:23:13 am

I would say it is split up into the following components. Based on how much each step takes, we'll do as much as we can from the below list.

1. Get CiviCRM to install/uninstall/upgrade as a wordpress  plugin, following as much as WP standards as possible

2. Integrate the permissioning systems

3. Integrate with WP's user registration system so contact is created/updated when user is created/updated

4. Add CiviCRM html to WP's theming / templating system

5. Respond to as many WP "hooks/events" as makes sense

6. Investigate integrating with other WP modules

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

littlefyr

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: WP
  • MySQL version: 5
  • PHP version: 5.3
Re: Civicrm with Wordpress
May 31, 2011, 08:57:57 am
Trying to build all these tightly integrated plugins where CiviCRM runs in the same processes off the same database as the CMS of your choosing is only going to make CiviCRM suck.

Every CMS has its own way of doing things and if you want to run them all together, you need to have a fork of the code for each integration. Then you're hozed if you want to integrate with multiple sites, each on a different platform.

A better approach is to build a proper and complete API into CiviCRM so that the normal installation is stand alone. Any cms, or other application for that matter, can then hook into CiviCRM without having to worry about anything other than the API. Things like authentication can be handled using a similar sequence to braintree (cf braintreepayments.com/services/pci-compliance#trans) for credit card payment where CiviCRM takes the role of BrainTree.

adam

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: Civicrm with Wordpress
May 31, 2011, 09:06:08 am

I disagree with you on this one :)

If you see some of the advantages that civicrm installs get because of the tight integration with drupal, you might change your mind. In specific, the integration with views, rules, OG, permissions, webform (and the list keeps growing with every release) etc would have been a lot harder without the fairly tight integration

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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Civicrm with Wordpress
May 31, 2011, 10:20:49 am
Quote from: littlefyr on May 31, 2011, 08:57:57 am
Trying to build all these tightly integrated plugins where CiviCRM runs in the same processes off the same database as the CMS of your choosing is only going to make CiviCRM suck.


You can keep civi in a different db than the CMS


Quote from: littlefyr on May 31, 2011, 08:57:57 am

A better approach is to build a proper and complete API into CiviCRM so that the normal installation is stand alone. Any cms, or other application for that matter, can then hook into CiviCRM without having to worry about anything other than the API. Things like authentication can be handled using a similar sequence to braintree (cf braintreepayments.com/services/pci-compliance#trans) for credit card payment where CiviCRM takes the role of BrainTree.

The api is fairly complete and allow you to create/get/delete almost everything. The UI (forms & templates) is separate from joomla/drupal already, and a standalone version was existing (without ACL) until a few releases ago.

Almost everyone that needed a standalone installed a minimal drupal, that is almost only dealing with permissions.

Otherwise, I've (using the REST interface) interfaced with other CMSes. But the integration is "only" about displaying lists of stuff (read only). All the manipulations are still done using a drupal integration.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

majortom

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
Re: Civicrm with Wordpress
June 03, 2011, 10:44:49 am
Quote from: Donald Lobo on May 31, 2011, 09:06:08 am
If you see some of the advantages that civicrm installs get because of the tight integration with drupal, you might change your mind. In specific, the integration with views, rules, OG, permissions, webform (and the list keeps growing with every release) etc would have been a lot harder without the fairly tight integration

Which always leads me to the opposite question of how much we lose (in terms of resources) by trying to integrate with more CMSystems. :-)

Duplicating the functionality that other CMS specific modules have already brought seems so wasteful sometimes. I am not really advocating against it, just commenting. :-)

mikeyleung

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Wordpress
  • MySQL version: ?
  • PHP version: 5.3.3
Re: Civicrm with Wordpress
February 20, 2012, 08:32:39 pm
Having just come from Wordpress into CiviCRM I'd like to point out that it was only the Wordpress integration that was keeping me from eventually learning what CiviCRM offers me, and so while I agree that reaching into new CMSs is going to spread resources more thinly, I have already brought a client into using CiviCRM (who is aware that they are becoming an early adopter), but talked with them at length about the features that we are benefitting from by our choice of using CiviCRM.

So, naturally I think the choice to integrate with Wordpress is a good one! NAturally the developer I'm working with and I expect to be contributing our assets back to the community!


Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Civicrm with Wordpress
March 20, 2012, 07:49:02 am
I am currently stuck trying to get the CiviCRM user dashboard to display on the front-end of my Wordpress integration, for non-admin users.  I can get the dashboard to show up for the admin fine.  I have been reaching out for help on both the CiviCRM and Wordpress communities. 

I was given this code to enter into my wordpress theme functions.php file:

function hiv_civicrm_dashboard {
if ( is_user_logged_in() ) {
    show civicrm dashboard
} else {
    show a login link
}
}
add_shortcode('civicrm-dashboard', 'hiv_civicrm_dashboard');


However, this simply caused my home-page not to load. So I checked in with the guys at StudioPress and the response below is what I got.

What Bill is saying is that you would need to find out how to manually display the CivicRM dashboard, then include that in your code. You would need to either ask whomever wrote that program, or check the documentation.

For example, let's say CivicRM put in their documentation that you could display their dashboard using a php function named 'show_civicrm', then Bill's code would look like this:

function hiv_civicrm_dashboard {
  if ( is_user_logged_in() ) {
    show_civicrm();
  } else {
    //show a login link (http://codex.wordpress.org/Template_Tags/wp_register)
    wp_register();
  }
}
add_shortcode('civicrm-dashboard', 'hiv_civicrm_dashboard');


The question now is, what is the php function for displaying a dashboard?
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

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: Civicrm with Wordpress
March 20, 2012, 08:48:11 am

You should take a look at:

wp-content/plugins/civicrm/civicrm.php, function civicrm_shortcode_handler

and extend that to also handle the user dashboard case. Will be a lot easier, IMO

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

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Civicrm with Wordpress

This forum was archived on 2017-11-26.