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) »
  • Saving Edits to User Profile Shows Unwanted Link
Pages: [1]

Author Topic: Saving Edits to User Profile Shows Unwanted Link  (Read 1873 times)

jshores

  • Guest
Saving Edits to User Profile Shows Unwanted Link
May 24, 2009, 08:58:35 am
I have CiviCRM 2.2.2 installed on Joomla 1.5.10. I have added a menu item for CiviCRM | Profiles | Edit to allow registered users to update their CiviCRM profile. After clicking the save button on the profile form, the post-update form displays a link (Back to Listings) at the bottom left corner. If a user clicks that link, they are taken to a search results page that lists everyone in the database.

In my particular case, this is highly undesirable. I have a custom field that allows an individual or household to opt-out of the directory listings on the website. The Back to Listings link circumvents that field and allows any registered user to view the profile of any contact in the database.

Is there a simple way to remove this link from the page without sacrificing functionality elsewhere? Alternatively, is there a way to force the link to display something else instead (say a Smart Group that uses the custom field)?

All ideas appreciated!

Thanks!
« Last Edit: June 09, 2009, 11:09:37 am by jshores »

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: Saving Edits to User Profile Shows Unwanted Link
May 24, 2009, 09:16:31 am

You can customize that template and remove the link:

http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens

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

jshores

  • Guest
Re: Saving Edits to User Profile Shows Unwanted Link
June 09, 2009, 11:12:38 am
Okay, so I followed the instructions from http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens and despite my best efforts, the site still pulls the default page when called. The page I'm trying to modify is the CRM/Profile/Page/Listings.php. I just need to remove the "View" link from the presentation. Any ideas? :-\

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: Saving Edits to User Profile Shows Unwanted Link
June 09, 2009, 11:36:40 am

you need to customize the tpl not the php page

specifically this file: templates/CRM/Profile/Page/View.tpl

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Saving Edits to User Profile Shows Unwanted Link

This forum was archived on 2017-11-26.