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 »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Public View of Top Supporters?
Pages: [1]

Author Topic: Public View of Top Supporters?  (Read 1631 times)

neuromusic

  • Guest
Public View of Top Supporters?
May 30, 2007, 09:52:58 am
I'm not sure where to start, as my php skills are limited.

I'd like to put together a public page which simply lists (1) names and (2) total contribution amounts for all contributors over the past X days which donated more than Y dollars. Can I pull this info through the API or is there already this functionality in another place? Where should I start?

Thanks,
Justin


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Public View of Top Supporters?
May 31, 2007, 09:16:53 am
Justin - There are a number of ways to do this. An example using a combination of SQL select and API can be found here:

http://wiki.civicrm.org/confluence/display/CRMDOC/Using+CiviCRM+APIs+-+Code+Snippets#UsingCiviCRMAPIs-CodeSnippets-Displaycumulativegifttotalsindaterange

You'll need to add some PHP to dynamically generate the desired date range for the query.

We have added a contribution search API for the next release - which will allow you to do this in a simpler way. If you want to try it out, you can grab api/v2/Contribute.php from "trunk" in our svn repository.
Protect your investment in CiviCRM by  becoming a Member!

neuromusic

  • Guest
Re: Public View of Top Supporters?
June 21, 2007, 10:23:48 am
Awesome. I've been distracted by theming issues, but I will let you know how this goes when I take care of it.

Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Public View of Top Supporters?

This forum was archived on 2017-11-26.