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 »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Letting the users modify their contact details
Pages: [1]

Author Topic: Letting the users modify their contact details  (Read 1224 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Letting the users modify their contact details
February 02, 2011, 04:23:52 am
Hi, created a profile with the first name and prefered language and group(s)

Sending them the url with the cs to let them modify it

http://www.example.org/en/civicrm/profile/edit?gid=42&reset=1&id={contact.contact_id}&{contact.checksum}

It goes fine and the user got the profile prefilled with the fields.

However, if the user doesn't have the access right (eg I'm assuming being past the 8 days of validity of the checksum), it does redirect to the home page, without any error message. Is there a way to avoid it ?
-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: Letting the users modify their contact details
February 02, 2011, 07:04:46 am

r u doing this on drupal?

if your home page is showing drupal status messages, u should see:

'You do not have permission to edit this contact record. Contact the site administrator if you need assistance.'

check:

CRM/Contact/BAO/Contact/Permission.php (line 246 or so)

i checked on demo and did not see the message :( seems like the main page does not display status messages? or a bug?

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: Letting the users modify their contact details
February 02, 2011, 07:27:57 am
Actually, I do have it next time I go on a civi powered page.

However and as noted, doesn't display on the main page.

So that's even more confusing: you don't get the message on the home page when you get redirected, but next time you go to a public civi page (eg registration to an event), you got that message , that has nothing to do with the event but was queued from the previous page.

(actually, that what just happened, tried with a badly formatted url, redirected to the home page, tried the proper url, got the error message even so the registration form was as expected)

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

mpickus

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Joomla 1.7
  • MySQL version: not sure
  • PHP version: not sure
Re: Letting the users modify their contact details
April 02, 2011, 08:50:51 am
Xavier:
    How did you get this to work in the first place?  I created a simple test mail template, sent a test email message with tokens to a test user:
http://www.example.org/en/civicrm/profile/edit?gid=9&reset=1&id={contact.contact_id}&{contact.checksum}
    The message goes to the user with the token interpreted correctly and a link to click but the link simply takes the user to the Joomla home page.  I assume some type of error has occurred but as you say there is no error message.
      I've tested the profile and it works fine if the user logs in clicks "Your Details".  Any thoughts?????

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Letting the users modify their contact details
April 02, 2011, 01:59:46 pm
Hi,

Don't know, don't use joomla, and what you are doing seems to be correct. Can you test on the demo.civicrm.org and try to reproduce?

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

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Letting the users modify their contact details
April 03, 2011, 01:35:20 am
do you need to take out the amp; so you only have the & in the url?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Letting the users modify their contact details
April 07, 2011, 09:58:21 am
Mark - I think Peter's on the right track - try replacing all the &amp  instances in the URL with just &
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Letting the users modify their contact details

This forum was archived on 2017-11-26.