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 (Moderator: Dave Greenberg) »
  • Extending profile editing time - more then 7 days?
Pages: [1]

Author Topic: Extending profile editing time - more then 7 days?  (Read 902 times)

admsh

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.53
  • PHP version: 5.3.2
Extending profile editing time - more then 7 days?
November 09, 2011, 10:09:32 am
Is it possible to extend the time a personalised link stays active to editing personal information? It says in the documentation (http://wiki.civicrm.org/confluence/display/CRMDOC40/Linking+Profiles) that links stay active for 7 days. We need to extend that to one month...

Any help would be greatly appreciated!

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: Extending profile editing time - more then 7 days?
November 09, 2011, 10:23:58 am

Currently it is hard coded as a constant

But we've got a new extensible setting system in CiviCRM now, so might be a good project to make this a setting that folks can change

in the longer term, we'd want to make this a variable based on context (so some checksums have a short lifetime while others have a longer lifetime)

If you have the skills to work on this and would like to implement it, that would be great :)

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

admsh

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.53
  • PHP version: 5.3.2
Re: Extending profile editing time - more then 7 days?
November 09, 2011, 02:50:13 pm
Thanks Lobo. Can you possibly point me to where this is hard-coded?

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: Extending profile editing time - more then 7 days?
November 09, 2011, 03:09:58 pm

CRM/Contact/BAO/Contact/Utils.php, static function generateChecksum

$live = 24 * 7;

Note that while hacking it to meet your needs for this release will work, upgrading will become more painful. Would be great if you can contribute code and make it a setting. Is a relatively easy project (1-3 hours?)

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

admsh

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.53
  • PHP version: 5.3.2
Re: Extending profile editing time - more then 7 days?
November 09, 2011, 03:30:04 pm
THANK YOU!

Unfortunately my coding skills are pretty limited, but our programmer is already working on a number of civiCRM projects for us that we intend to submit soon. This is definitely being added to the list.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Extending profile editing time - more then 7 days?

This forum was archived on 2017-11-26.