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) »
  • Resize contact image url field
Pages: [1]

Author Topic: Resize contact image url field  (Read 1978 times)

thommo

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 0
  • CiviCRM version: 4.0 stable
  • CMS version: Joomla 1.6.3
  • MySQL version: 5.0.92
  • PHP version: 5.2.11
Resize contact image url field
April 22, 2011, 04:00:08 pm
The size of the thumb image on the contact profile page is hard coded by setting the width to 100 px.

You can change the size of the thumb image generation in:
Administrator/components/com_civirm/civicrm/CRM/contact/BAO/Contact.php

Change the thumb width on line 818 to what you desire:
Eg         $thumbWidth = 300;

However, this makes the popup when you click on the image look silly because it may be the same size.
Furthermore, while opening in a pop up, it also changes the url to the homepage.
I will personally remove this functionality.
I don't know if making these changes interferes with other thumbnail generation.


sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
Re: Resize contact image url field
April 08, 2013, 03:11:01 am
Is there any news on this?  I have resized the contact image thumb, but the link redirects - I've attempted to remove this popup, but to no avail...

Using Joomla 2.5 and civiCRM 4.2.6

sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
Re: Resize contact image url field
April 08, 2013, 04:25:48 am
I've managed to solve by amending the ufgroup.php file on line 961 to $values[$index] = "{$image_URL}";

Hope this helps someone.

mark0514

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 1
  • CiviCRM version: 4.5.6
  • CMS version: Joomla 3.3.6
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Resize contact image url field
September 18, 2014, 11:04:42 am
I am working through this and have the same redirect but havent found the file you mentioned. Is there some other way to change the thumbnail? I am using 4.6.6

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Resize contact image url field

This forum was archived on 2017-11-26.