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) »
  • Allowing the public to submit comments on profile view pages
Pages: [1]

Author Topic: Allowing the public to submit comments on profile view pages  (Read 920 times)

tmcnulty1982

  • Guest
Allowing the public to submit comments on profile view pages
August 13, 2008, 08:46:31 am
Hi,

I have a CiviCRM profile setup so that people off the web can search for our members and drill down to view more information about them.  Now I'd like to enable the public to submit comments or mini reviews on each of our members.  What's the easiest way to do this?  I'm using CiviCRM 2.0 with Drupal 5.7.

Thanks,
Tobias

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Allowing the public to submit comments on profile view pages
August 13, 2008, 03:38:56 pm
Interesting requirement  ???

First question to answer is where this data would be stored in the CiviCRM data model. One place would be as custom data linked to the "members" contact record. BUT this would require implementation of our planned (but not yet in place) feature to allow multiple rows of custom data values for a given entity. (Each public person's comment would be an instance of the custom field value.)

Maybe easier option is to use the Activity record - which would allow you to store a foreign key to the contact making the comment (source_contact_id) and the contact being commented on (target_contact_id) - as well as the comment ("details" column). So far so good, but there is no out of the box way to do this. Probably best bet would be to create a separate module which puts up a form for comment, and then uses the APIs to insert the activity and activity_target records. You could then customize your Profile view page to add a link to this form.
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) »
  • Allowing the public to submit comments on profile view pages

This forum was archived on 2017-11-26.