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) »
  • Logging/tracking feature
Pages: [1]

Author Topic: Logging/tracking feature  (Read 1175 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Logging/tracking feature
July 05, 2010, 12:57:00 am
Hi,

For civiPetition, we will need to track who signs (IP address, timestamp, probably reverse dns) and probably a few anti-fraud stuff (permanent cookie, flash based permanent cookie...).

I know that for CiviCampaign, you plan to track it as a custom field, would it be useful for you to have the tracking generic (the idea would be to be able to easily plug that on other functions, eg mailinglist registrations) ?

btw, store the IP as an int, not as a string:
http://arjen-lentz.livejournal.com/44290.html
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: Logging/tracking feature
July 05, 2010, 05:55:14 am

i suspect we will not store the IP in the core code base. To store IP and otehr stuff, we should do it via a hook :) If you can implement the hook to store the below fields that would be awesome

i dont think we've talked about tracking. It is currently out of scope for us for this project

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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Logging/tracking feature
July 05, 2010, 08:25:22 am
Hi,

Is this possible to create a new table in civicrm db during the installation of a module ?

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

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Logging/tracking feature
July 05, 2010, 09:48:18 am
Assuming you mean a Drupal module, don't see why not, if the mysql user has appropriate permission.

In drupal's hook_install():
CRM_Core_DAO::executeQuery("CREATE TABLE ...");

might need to call civicrm_initialize() first

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Logging/tracking feature

This forum was archived on 2017-11-26.