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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Logging downloaded files as an activity?
Pages: [1]

Author Topic: Logging downloaded files as an activity?  (Read 1100 times)

nicrodgers

  • Guest
Logging downloaded files as an activity?
November 07, 2008, 01:22:09 am
When a user downloads certain files, I'd like to record "Downloaded [filename]" as an activity in their profile.

How should I go about doing this? Is there a module/script that exists already or will I need to write something from scratch?

Cheers,
Nic


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: Logging downloaded files as an activity?
November 13, 2008, 06:01:37 am
Quote
How should I go about doing this? Is there a module/script that exists already or will I need to write something from scratch?

I am not aware of such script. So i guess you will write from scratch.

Kurund
Found this reply helpful? Support CiviCRM

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Logging downloaded files as an activity?
November 13, 2008, 09:41:48 am
There is an API you can use to create activity records: civicrm_activity_create()
API doc is in the Develop section of the wiki:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Logging downloaded files as an activity?

This forum was archived on 2017-11-26.