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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Event Ownership and alerts
Pages: [1]

Author Topic: Event Ownership and alerts  (Read 1461 times)

chrisivens

  • Guest
Event Ownership and alerts
December 19, 2008, 08:05:05 am
I would like to ask whether events could have an 'owner' assigned to them. Either the event creator or some-other contact. The reason for this is that on a recent project I had to alert an assigned owner when certain conditions were met for an event i.e. 70% full of participants.

Perhaps it may be possible to build a system that will do alerts like this too. I built my system to run on cron as I have a series of regular tasks to do but I dare say that when someone signs up to an event a check on capacity could be made then.

Drupal has recently made the actions and triggers modules much better. Maybe something similar for Civi could be developed.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Event Ownership and alerts
December 19, 2008, 08:38:00 am

will/should the owner be different from the one who created the event? I suspect so

We've done something similar in 2.2 for mailing objects. In a future version (2.3?) we should keep track of who is the "creator" of various pages (contribution/pledge/membership, event) and who the "owner" is. I suspect we'll want a similar structure across all such objects and should be able to reuse the same piece of code. Might make it easier to integrate with actions and triggers etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

chrisivens

  • Guest
Re: Event Ownership and alerts
December 19, 2008, 08:55:57 am
I'll see if I can do something about adding in a hook for actions/triggers. Hoping to get something spec'd out over Christmas to see if people agree with the direction its going in. I suspect that the triggers should be reasonably easy to implement but will require adding to all modules that want to send out the trigger events.

We'll create something that will begin with a skeleton and extend it for the Drupal implementation of triggers. I personally don't know enough about Joomla to work on it so some stub code will help anyone who would like to take on the challenge of adding it.

Actions, as they are implemented in Drupal are a set of defined routines that can run when triggers fire. We could add some of the more common routines from CiviCRM into this system but right now, its a case of what ones.

I'll start simple by just firing triggers.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Event Ownership and alerts

This forum was archived on 2017-11-26.