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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How can I make the Goal Amount field in PCP creation "not required"?
Pages: [1]

Author Topic: How can I make the Goal Amount field in PCP creation "not required"?  (Read 2858 times)

alextronic

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 2
  • I do what I do
How can I make the Goal Amount field in PCP creation "not required"?
November 14, 2009, 08:50:24 am
How can I make the Goal Amount field in PCP creation "not required"?

So that people can keep donating without reaching an end.

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: How can I make the Goal Amount field in PCP creation "not required"?
November 14, 2009, 06:08:12 pm

I dont think PCP has that option right now

Would be cool if you can contribute code that allows this option. You'll need to figure out how to display the thermometer in a reasonable manner with an infinite goal

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

alextronic

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 2
  • I do what I do
Re: How can I make the Goal Amount field in PCP creation "not required"?
November 16, 2009, 01:03:55 pm
No, PCP does not have that option. I'd be thankful if someone guides me and tells me where to begin... Oh, and I'm not using the thermometer so I'm not looking into that, but I think a good solution would be to fill it up until the goal is reached; then change the bar's color when it's full and write a message "the goal has been reached but you can keep donating" or something of the sort. That's the easy part isn't it?

BTW, and this is also very important to me; Does it ALWAYS have to ask for a profile before creating any PCP? How can I get rid of that? My admins are the only ones who create PCPs and when entering an already existing user's email the system rejects it, it's kind of frustrating.

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 can I make the Goal Amount field in PCP creation "not required"?
November 16, 2009, 07:06:36 pm

1. modify: CRM/Contribute/Form/PCP/Campaign.php

2. follow the trail from there :)

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

alextronic

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 2
  • I do what I do
Re: How can I make the Goal Amount field in PCP creation "not required"?
November 17, 2009, 08:18:23 am
Thank you Lobo, I am somewhere between not being able to know where to start, but able to follow the trail that I'm given. I really appreciate, if only I could be more use to the community I would contribute with my code or ideas but I'm learning and will do that when I'm not ashamed of my 'not really best practice' solutions... thanks again anyway.

But I'd also like to know why everytime a PCP is created, it is needed to use a Profile before. Can I get rid of that? My admins are the only ones who create PCPs and when entering an already existing user's email the system rejects it, and the ones who are going to create PCPs are existing users so it is a drawback...

Thanks again for your time and will.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How can I make the Goal Amount field in PCP creation "not required"?
November 23, 2009, 12:02:33 am
Quote
But I'd also like to know why everytime a PCP is created, it is needed to use a Profile before.
Main intention of profile is to collect information about PCP creator when user is not logged in. ( i.e Anonymous user). And we require that PCP "owners" have a user account since they need to be authenticated / identified in order to manage their page.
Quote
Can I get rid of that?
I think for authenticated user you can skip this. But you will have to modify CiviCRM code.
Quote
My admins are the only ones who create PCPs and when entering an already existing user's email the system rejects it, and the ones who are going to create PCPs are existing users so it is a drawback...

Currently admin cannot create PCP pages for other users. Users will have to login and create PCP for themselves.

Kurund
« Last Edit: November 23, 2009, 09:30:16 am by Dave Greenberg »
Found this reply helpful? Support CiviCRM

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How can I make the Goal Amount field in PCP creation "not required"?
November 23, 2009, 09:25:28 am
If you're creating PCP's for existing users, the workflow needs a way to "know" which user / contact record "owns" each PCP. One work-around for your flow might be to have your admins use the Drupal "Masquerade" module which allows them to switch users:

http://drupal.org/project/masquerade

If they "masquerade" as the user they are creating the page for, the Profile s/b already filled in (assuming you've already collected the basic name / email address info from them) - and so just a quick "Save" click will allow them to continue creating the pages.

UPDATE: I'm not sure if CiviCRM "plays well" with Masquerade - Lobo thought it might not - so best to experiment "carefully" and make sure that CiviCRM properly switches it's session info when you switch users. I'm going to ping some folks that I think might have played with it more and see if they can post feedback here.
« Last Edit: November 23, 2009, 09:31:39 am by Dave Greenberg »
Protect your investment in CiviCRM by  becoming a Member!

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: How can I make the Goal Amount field in PCP creation "not required"?
November 23, 2009, 09:49:19 am
Just wanted to chime in to say that the masquerade module is awesome and great for testing. I use it all the time and it does play very nicely with CiviCRM. When you masquerade as another user, it properly reflects that user's permissions and it believes you are that person when you donate, fill out forms, etc.

hope this helps
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

alextronic

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 2
  • I do what I do
Re: How can I make the Goal Amount field in PCP creation "not required"?
December 01, 2009, 11:14:32 am
Thanks Kurund and Dave for your replies. Now I undertand a couple of basics that I wasn't aware of. I think that the "masquerade" workaround is awesome, I think that I will be using it, not only for this purpose, as dharmatech points out. Being able to donate and/or edit account info etc as another user is just great. I will have to test the 6 version which seems to be under development.
Thanks again.
Cheers,
Alejandro.
« Last Edit: December 01, 2009, 11:16:14 am by alextronic »

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: How can I make the Goal Amount field in PCP creation "not required"?
November 09, 2012, 07:35:37 am
Quote from: Dave Greenberg on November 23, 2009, 09:25:28 am
UPDATE: I'm not sure if CiviCRM "plays well" with Masquerade - Lobo thought it might not - so best to experiment "carefully" and make sure that CiviCRM properly switches it's session info when you switch users. I'm going to ping some folks that I think might have played with it more and see if they can post feedback here.

3 years later...

I have a case with Drupal 7 / Civi 4.0.8 where after masquerading, the session still has the original userID, obtained as follows.

Code: [Select]
  $session =& CRM_Core_Session::singleton();
  $indID = $session->get('userID');

Dave J

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How can I make the Goal Amount field in PCP creation "not required"?

This forum was archived on 2017-11-26.