Hot answers tagged

7

PCPs don't have an API currently - but I just wrote one in about 15 minutes. I didn't write unit tests, so I can't submit it upstream - maybe this is something you can help with to make CiviCRM better? Paste the contents of this file into "Pcp.php" in your civicrm/api/v3 folder: http://pastebin.com/cvzqfq69 There's some odd line of hyphens at the bottom, ...


4

Do you mean an account is required to even fill in your page, or that filling in the page creates an account? If the former then it sounds like a permission issue such as Anon not having access to the following CiviCRM: profile listings and forms CiviCRM: access all custom data. These Permissions are usually part of default permissions afaik Within ...


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

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

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

This is definitely a blind spot in CiviCRM! I don't think there's anything except a very hard way: Write SQL to get the contact IDs, then import those IDs, assigning them to a new group. To get the IDs of EVERYONE with a PCP, here's the SQL: SELECT contact_id from civicrm_pcp; If you want to get the PCPs associated with a particular contribution page, ...


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

Here’s a working example of a PCP site using that specific Veda Extension as a basis. I’ve made some small edits thus far and have committed them back upstream; https://secure.thewellspringfoundation.org We decided to organIze the View (list of Team and Individual PCP pages) as a Leaderboard (based on funds raised thus far) but that could easily be an ...


2

Lesley, This is set in php and then assigned to tpl. It's being set from two places CRM/Contribute/Form/Contribution/Main.php and CRM/PCP/BAO/PCP.php. Since its being assigned to tpl through php then its pretty simple and easy to change the text using either preprocess/buildform/postprocess hook by over-riding the tpl variable. Here are list of lines that ...


1

Ok I was able to confirm this is also happening with Event PCPs - though the error message is a little easier on the eyes - which really helps (the red and black letters on the yellow background you get for 'not available' Contribution PCPs make it look like the site is broken). Re: Answer as to what should happen may be different for Event PCPs vs ...


1

Lesley - better to write this in an extension rather than overriding a core file. You can place the below hook in any of your custom extension or create one using civix As Peter Davis said in the comment, we just made this changes for one of our client using - function example_civicrm_buildForm($formName, &$form) { if ($formName == '...


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

I have a similar setup, but I have solved this outside CiviCRM. In CiviCRM, I configured the mail() send option. The effect is that the mail is routed by the local Mail Transport Agent. On my system, I use postfix for this task. Postfix can be configured to relay an email to an email service dependent on the email address. Use to do this the ...


1

I think you may have two different issues here. I left a comment for one. As for the lack of account signup - go to www.yoursite.org/admin/config/people/accounts (or, if you have standard Drupal menus, Configuration menu > People > Account Settings. Under Registration and cancellation, Who can register accounts - ensure that the value is set to "Visitors" ...


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

You wont be able to redirect back to the thank you page, as the thank you page URL is dynamic (with _qfkey, etc.) Alternative solution: You can use the URL of the create personal campaign page as the destination after login. In the href for the login page, you can use the below please go <a href="/user?destination=%2Fcivicrm%2Fcontribute%2Fcampaign%...


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

The custom tab contains whatever's at the URL in the url parameter. You can test it out by simply linking to another page on your site. Once you've confirmed that's working, you should generate a page with civix generate:page, and you can replace the url in your tab with that new page's URL.


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

You may want to try using Smarty debugging. Turn on debugging at Administer menu > System Settings > Debugging and Error Handling. Load the same URL, but add "&SmartyDebug=1" to the end. You may need to enable pop-ups in your browser to see the window that appears. Hopefully access to the Smarty debugging will make it clear what the value of $row....


1

Apparently my above code was correct, save for I was putting it in our main directory's htaccess file. Once placed in the subdirectory's file (and "sub_dir" removed) all is right!


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, ...


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