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) »
  • new drupal module, synchronizing forums & civicrm
Pages: [1]

Author Topic: new drupal module, synchronizing forums & civicrm  (Read 581 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
new drupal module, synchronizing forums & civicrm
August 24, 2010, 03:33:43 am
Hi,

On one of our projects, we will have quite a few forums (each covering a different topic), and we want to be able to see their relative weights (ie. how many people participated at least once in the forum, or did watch one of the thread).

eg. you got a forum container "civicrm", containing "developer discussion", itself with the sub forums "api", and "unit testing".

I want to be able to get the list of all the people that have participated in the api forum.

My idea was to develop a drupal module that
1) on the init check all the forums and create a tag (hierarchical) for each of them, and associate them
2) a hook on forum/container for creation update delete to update the tag accordingly (not too sure about delete, might be better to do manually)
3) a hook on forum post/reply creation that tag the contact associated with the user with the civicrm tag associated with the forum


What do you think ? Would it be something useful for someone else ?

And where do you think is best to store the association between the tag and the forum ? have the tag name as forum_{drupal.forumid} ? use an extra field on the drupal side to store the civicrm tag id ? something else ?

X+


-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • new drupal module, synchronizing forums & civicrm

This forum was archived on 2017-11-26.