5

This diff is against 4.5.0 . It doesn't display the custom field values on the PCP view page, but it adds the capability to create custom field groups on PCP entities, and save values on add/edit pages. diff -r original/civicrm/CRM/Core/BAO/CustomGroup.php new/civicrm/CRM/Core/BAO/CustomGroup.php 1102a1103,1104 > case 'Pcp': > $...


3

I finally figured it out: when you checked it on the WP demo site vs Drupal it turns out there was a conflict between a wp url param and one used by the widget. This fixes it: https://github.com/civicrm/civicrm-core/pull/6351


2

Joe says it's a bug; I say it's a feature! If you have donors fundraising for you, you might not want to have their writeup and list of donors disappear when the campaign is over. Something elegant ought to be done to have the PCP still visible, the contribution page disabled, and not have it seem like the link is broken, however.


2

Looking at the code, I can see that the donation button only appears if $validDate is TRUE and $contributeURL is TRUE. Enable debugging (Administer menu > System Settings > Debugging and Error Handling, select "Yes" to "Enable Debugging"), then reload your PCP page, adding this to the end of the URL: &smartyDebug=1. You'll get a pop-up showing all your ...


2

As you've discovered, this is not something that the WordPress plugin does by default. You can, however, hook into the 'civicrm_basepage_parsed' action that is fired when (ahem) the basepage has been parsed and roll your own Open Graph tags to be included in the markup via 'wp_head'. The content of the basepage is available via the 'basepage_render()' method ...


2

You should be able to view the page before approving it. (I just tried this on CiviCRM 4.7.24 by disabling a page and then viewing it. It worked for me.) My guess is that your user does not have the necessary permissions to view unapproved PCPs. From looking here, it appears that you need the "Administer CiviCRM" permission. If you're using Drupal, you can ...


2

I was looking for a way to validate the checksum at one point, too. Here's what I found: CRM_Contact_BAO_Contact_Utils::validChecksum($cid, $_GET["cs"]) which takes a CiviCRM contact id ($cid) and compares it to the checksum in the URL and did the trick for me. UPDATE: It looks like the usage has changed slightly in core since I pulled the above out of ...


1

Probably you will need to give 'CiviCRM: access uploaded files' for anonymous user. But this is dangerous to provide access to files for anonymous user.


1

So thanks to Brian at ICD who helped troubleshoot this - somehow the PCP that was set up for the event was done in a way that while it was a contribution page - it was pointing to the event ID - This required some updating of the event PCP to point to the correct contribution page instead of the event. I am not sure how it happened - but it is fixed - I ...


1

The precise steps to reset a user's password will depend on which CMS platform you are using (i.e. Drupal, WordPress, or Joomla). The CMS — not CiviCRM — manages user logins and passwords. Nevertheless, the first step is usually to find the user's contact record in CiviCRM and click on the link to the user's associated CMS record as shown below. ...


1

I'm not sure there's an 'easy' way to do it (similar to the widget code for an entire Contribution page). In the past I've done something like it by writing a custom plugin (for Wordpress) that used mysql queries to pull data from active PCPs. I don’t believe there’s a fully operational API for PCPs yet - that would probably let you avoid writing queries ...


1

You could use Line Items. Create a Price Set with the Attendee Name(s)/Contribution Id(s) that you would like to have available for people to help pay. Donors can enter the amount they want to give toward specific attendee(s). You will have to manually apply these contributions to the attendee's event fee. We do this for tuition here https://...


1

Have you checked the permissions and roles? If not you may find useful the following documentation Default Permissions and Roles


1

I was able to figure it out. I had deleted the CiviCRM page so that's why it wasn't working. Thank you!


1

Some of these strings are configurations, others are core-strings in the CiviCRM source code. templates/CRM/PCP/Page/PCPInfo.tpl : <div class="thermometer-pointer"><span class="pcp-percent-raised">{$achieved}%</span> towards our goal</div> This string is missing the {ts}...{/ts} to expose the string to the translation system. It ...


1

Great idea. Unfortunately there is currently no way to do this. Personal campaign pages don't even store the date that they were created. Enabling database-level logging would allow you to store this type of data, but you would need to build a custom search or report to see it. I agree this would be a great feature though!


1

There is an "unofficial" api for pcp from Jon: https://civicrm.stackexchange.com/a/3037/246 It would be super useful if you could contribute the needed tests and add it to the core. You know you want to ;)


1

The issue of default values for PCPs has come up a few times but there are no options currently to do this so it will require some development work.


1

I've encountered this issue before - and found it easiest to go with allowing user registration. I agree it'd be better if this wasn't necessary, but haven't found anyone willing to fund that improvement. You haven't specified your CiviCRM version or CMS, which makes it a little more difficult to answer, but the general approach is to create a profile that ...


1

I am not sure about API - But you can create an script against database that would be easier you can insert values into the table called civicrm_pcp just make an entry using different contact Id this will be faster - just create a single PCP first and copy the value for the rest of contact


1

You're right there was a javascript conflict affecting popup forms on the contribution search page. I've submitted a fix which will show up on the demo site tomorrow and in the next release (4.6.5). For now, you can work around the problem by right-clicking the "edit" link from the search results screen and opening it in a new tab instead of a popup.


1

Perhaps you could start with the widget code from a contribution page as a base?(Widget>widget.php) Make a new one that pulls info based on PCP id vs contribution page id...


1

Based on the information in your last comment, I think the lack of donate button is indicative of a larger issue - this PCP isn't linked to a contribution page. I don't know if this is a data issue or a bug; I don't have any PCP-using sites running 4.6 yet. If you know how to use SQL, try running this statement on your Civi database: SELECT id, page_id, ...


1

CiviCRM intentionally doesn't provide login functionality for the CMS. Access bypass could have serious implications for your org - use with caution. You don't want to wake up in the newspaper because your membership DB got disclosed. Similarly, CiviCRM emails aren't treated the same way that password reset emails are. People forward CiviCRM emails a lot, ...


Only top voted, non community-wiki answers of a minimum length are eligible