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) »
  • Create RSS Feed of Contributions & Contacts
Pages: [1]

Author Topic: Create RSS Feed of Contributions & Contacts  (Read 1117 times)

webshack

  • Guest
Create RSS Feed of Contributions & Contacts
May 03, 2010, 08:14:10 am
I posted this in another forum but thought the civiContribute forum might be a good resource, too.

I am wondering if it is possible to create an RSS feed of the most recent donations and/or the top donations.  I would like to add a scrolling donor box on our website showing the most recent or the largest donors (not sure which we're going to display yet).

I am NOT a programmer or developer so I wouldn't know how to create this code on my own, but if anyone has done this sucessfully or knows how we can do this, I would appreciate it.

I guess along with this, we would need to add a custom field to our contribution page asking the donor if they want their donation information to remain private (an opt-out of the donor list).  Any ideas on how to implement this would be greatly appreciated.  Thank you!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Create RSS Feed of Contributions & Contacts
May 03, 2010, 08:27:22 am
Your profile says you are using Standalone. I think that my be wrong because your version is 3.1.4 which doesn't exist for standalone. :)

Anyhow in Drupal, this could be coded fairly easily as a custom module.
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.

webshack

  • Guest
Re: Create RSS Feed of Contributions & Contacts
May 03, 2010, 08:30:52 am
Thanks for your response!

Perhaps the version is wrong, though it says 3.1.4 in my installation, but I am using Standalone - I'm not using Drupal or Joomla - so I would need a solution for Standalone.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Create RSS Feed of Contributions & Contacts
May 03, 2010, 08:44:48 am
You are correct. My mistake. Standalone exists now but will not be available as of the next version (unless someone decides to support it, which is IMO unlikely). See here:

http://civicrm.org/blogs/lobo/dropping-support-civicrm-standalone-v32

That said, I would recommend that you consider migrating to Drupal (or Joomla) for future compatibility (i.e. you could then upgrade).

Regarding your original question, yes it's possible for standalone, but may not be trivial. However, if all you want is a box on your website, then that may be easier than an RSS feed. What is the nature of your website, what technology does it use? The potential exists that it could use the CiviCRM API to fetch the required data, and then display it as required.
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.

webshack

  • Guest
Re: Create RSS Feed of Contributions & Contacts
May 03, 2010, 08:50:49 am
This website will only be active for the next 6 months because it's for a temporary campaign  - after that point, we will no longer be taking donations or using the features of civicRM.  We thought about migrating to Drupal, but because of the temporary nature, decided it wasn't feasible at this time.

Right now, the website is a very basic website using HTML and PHP.  We are not using any other CMS programs.  It's on a UNIX server (not sure if that information is helpful).

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Create RSS Feed of Contributions & Contacts
May 03, 2010, 08:57:06 am
In that case you could certainly achieve what you want using the API. Probably the REST API would work for this. That or of course it could be done by accessing the DB directly, but that's probably not generally recommended. :)

You would need to hire a programmer either way for this, so my suggestion would be to consider that.

Or wait a bit and see if someone else can provide a better answer here.
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.

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: Create RSS Feed of Contributions & Contacts
July 16, 2010, 12:21:18 am
I am using CiviCRM 3.1.5 and Drupal 6.17

Trying to create an RSS feed of contributions (two fields needed: total amount and a custom field value), using views is not working because it needs the style to be 'node'. I see above that "... in Drupal, this could be coded fairly easily as a custom module." Can someone elaborate on that?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Create RSS Feed of Contributions & Contacts
July 16, 2010, 02:34:49 am
To get your data from the CiviCRM you can use code like this:

Quote
   require_once "CRM/Core/DAO.php";
    $dao =& CRM_Core_DAO::executeQuery($sql);
    while ($dao->fetch())   {

That's just the basic idea. For RSS generation I'm not 100% sure what would be the best approach, but this method may work: http://drupal.org/node/528092

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Create RSS Feed of Contributions & Contacts

This forum was archived on 2017-11-26.