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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How do i relate contribution page(s) to user(s)?
Pages: [1]

Author Topic: How do i relate contribution page(s) to user(s)?  (Read 1086 times)

mrmeech

  • I’m new here
  • *
  • Posts: 24
  • Karma: 1
How do i relate contribution page(s) to user(s)?
May 10, 2011, 01:09:06 pm
Hi guys,

What i'm trying to figure out is how to relate contribution pages to users.

The site being built is for a non-profit that helps raise & collect money for artists. Each artist may have multiple projects (ie: fundraising/contribution pages) associated to them. Each project then has it's own description, photos, etc., which i'd like to store in content fields. But i also need associated civi info too, such as funding goal, % funded, donate button, etc..

I'd appreciate a little nudge in the right direction for how or where i should be looking to create the actual relationship between campaign pages & users so i can then use views and whatnot to bring everything together.

Currently developing the site on D7 & Civi 4.0.1

Thanks so much (in advance) for any thoughts or suggestions!
« Last Edit: May 10, 2011, 02:59:32 pm by mrmeech »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How do i relate contribution page(s) to user(s)?
May 11, 2011, 10:15:00 am
You could make a custom field of a user reference. 
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How do i relate contribution page(s) to user(s)?
May 11, 2011, 01:27:49 pm
Maybe you could enable the PCP (personal contribution page) feature for your contribution pages, and have the artist use this to collect money for their project.  PCPs already have some of the functionality you are talking about: goals, thermometer-style progress meters, photo uploads and so on.  The difference with your situation is that you may have only a few artists per contribution page, or only one artist.

The next step is to display a list of the contribution pages, like this site, which can be done with a little PHP code here. 
Try CiviTeacher: the online video tutorial CiviCRM learning library.

mrmeech

  • I’m new here
  • *
  • Posts: 24
  • Karma: 1
Re: How do i relate contribution page(s) to user(s)?
May 20, 2011, 07:01:51 pm
Thanks for the suggestions!

@hershel (and/or whomever): I tried adding a contribution field reference, but as i found out, it applies to incoming contributions and not to the contribution page. If there's a way to get a user reference field on contribution page, in theory this challenge would be resolved.

@Stoob (and/or whomever): From what i understand, in order to make a Personal Contribution Page, a person needs to FIRST make a contribution themselves before being offered the option. So that's not really able to fly as i understand it.

The big picture again in different words: An artist comes to the non-profit, wants to fundraise via website, creates login for self/group... ie: Drupal system user (& also synced with civi users/civiMember?) ... over time artist possibly creates multiple contribution pages. ...and at the end of the day, for example, i can pull out all contribution pages related to that user via views/panels/etc to construct public facing content.
« Last Edit: May 20, 2011, 07:03:41 pm by mrmeech »

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: How do i relate contribution page(s) to user(s)?
May 21, 2011, 07:24:12 am

I think the bottom line is you will need to extend the code with a custom module / make some modifications to CiviCRM's PCP workflow to do what you are trying to do

I suspect going down the PCP route and tweaking it to meet your needs is your best bet. Please do publish how you end up doing this so others can benefit.

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

mrmeech

  • I’m new here
  • *
  • Posts: 24
  • Karma: 1
Re: How do i relate contribution page(s) to user(s)?
May 21, 2011, 05:29:19 pm
Hi,

Would this whole thing of relating a system/civi user to a contribution page be easier if it were just one user per contribution page? (ie: cut out the multiple users --> contribution goal via PCP route) ...and each artist had a different contribution page, each page being for a different project of theirs with different fundrasing goals, location, etc..

At the end of the day i need to be able to do things in views / SQL / PHP like: "Get all campaign pages related to this system user" ...and... on contribution page be able to get related info in opposite direction from that user's profile fields, like "Quick facts about this artist/group..." (name & abridged bio, user image, etc.)

Thanks again in advance for any additional input. It is very much appreciated!!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How do i relate contribution page(s) to user(s)?
May 21, 2011, 05:36:20 pm
This approach will still require either of the solutions suggested by lobo. Either you extend the Personal Campaign Page code to handle your needs or you could code all of your custom functionality in a Drupal module. That's how it seems to me anyhow. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

jbertolacci

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
Re: How do i relate contribution page(s) to user(s)?
May 25, 2011, 11:58:08 am
Quote from: mrmeech on May 20, 2011, 07:01:51 pm
@Stoob (and/or whomever): From what i understand, in order to make a Personal Contribution Page, a person needs to FIRST make a contribution themselves before being offered the option. So that's not really able to fly as i understand it.

A contact can create a personal campaign page without first making a contribution. You can provide the link to create a PCP to any user whether they have contributed or not. Don't have the linke handy, but if you test and go through the contribution process you can grab the create PCP link and post or distribute as you wish.

mrmeech

  • I’m new here
  • *
  • Posts: 24
  • Karma: 1
Re: How do i relate contribution page(s) to user(s)?
June 03, 2011, 02:10:05 pm
Quote from: jbertolacci on May 25, 2011, 11:58:08 am
Quote from: mrmeech on May 20, 2011, 07:01:51 pm
@Stoob (and/or whomever): From what i understand, in order to make a Personal Contribution Page, a person needs to FIRST make a contribution themselves before being offered the option. So that's not really able to fly as i understand it.

A contact can create a personal campaign page without first making a contribution. You can provide the link to create a PCP to any user whether they have contributed or not. Don't have the linke handy, but if you test and go through the contribution process you can grab the create PCP link and post or distribute as you wish.

Good to know! And thanks again for everyone's input. Going to approach this again. :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How do i relate contribution page(s) to user(s)?

This forum was archived on 2017-11-26.