bradjensen68
I’m new here
Karma: 0
Offline
Posts: 16
|
 |
« on: April 24, 2007, 09:56:51 am » |
|
I have a terrible time putting names to faces. It would be great if there was a way to add a small photo to the contact summary page. Thanks for a great product!
|
|
|
|
|
Logged
|
|
|
|
Donald Lobo
Administrator
I’m (like) Lobo ;)
   
Karma: 330
Offline
CiviCRM: 3.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.1.x
PHP: PHP 5.3.x
Posts: 9357
|
 |
« Reply #1 on: April 24, 2007, 12:28:16 pm » |
|
1. create a custom 'File' field
2. add this custom group as inline to Contact
3. You can now upload and see the picture
lobo
|
|
|
|
|
Logged
|
Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
|
|
|
FatherShawn
I post frequently
 
Karma: 18
Offline
CiviCRM: 3.1
CMS: Drupal 6.16
MySQL: 5.1.40
PHP: 5.2.9
Posts: 287
|
 |
« Reply #2 on: April 27, 2007, 05:25:49 am » |
|
Really valuable information!
Can such information be exposed to registered users only on the front end of Joomla?
|
|
|
|
|
Logged
|
C3 DesignDeveloping Tools and Strategies for the Connected and Collaborative Church
|
|
|
Michał Mach
Administrator
Ask me questions
   
Karma: 51
Offline
CiviCRM: trunk
CMS: Drupal latest
MySQL: 5.0.51b
PHP: 5.2.6
Posts: 609
|
 |
« Reply #3 on: April 27, 2007, 06:59:14 am » |
|
I guess it would require to create a custom block with a few lines of code - but shouldn't be really complicated.
General algorithm would be:
if user is registered: if custom field with photo not empty: display photo;
From what I remember, the API v1 call to get photo patch information is: crm_get_contact, but you might want to verify this in API documentation.
Thx, m
|
|
|
|
|
Logged
|
|
|
|
aszalos
I’m new here
Karma: 0
Offline
Posts: 12
|
 |
« Reply #4 on: May 05, 2007, 12:19:57 pm » |
|
For me just the name of the file is there as at the case of other files.(Clicking on it, the picture comes up.) I do not know, whether it is what the system can do, or I missed something.
|
|
|
|
|
Logged
|
|
|
|
Donald Lobo
Administrator
I’m (like) Lobo ;)
   
Karma: 330
Offline
CiviCRM: 3.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.1.x
PHP: PHP 5.3.x
Posts: 9357
|
 |
« Reply #5 on: May 05, 2007, 01:13:53 pm » |
|
If the file ends with .gif / .jpg we assume its an image and we display it online. if the file ends with some other extensions, we display the name of the file
lobo
|
|
|
|
|
Logged
|
Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
|
|
|
kncosta
I’m new here
Karma: 1
Offline
Posts: 6
|
 |
« Reply #6 on: February 10, 2008, 06:16:27 pm » |
|
Same for me, I have created the file custom field, as inline... when I view the contact, the photo doesnt appear, only the link for the file.
Am I doing something wrong?
Thanks, K
|
|
|
|
|
Logged
|
|
|
|
Donald Lobo
Administrator
I’m (like) Lobo ;)
   
Karma: 330
Offline
CiviCRM: 3.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.1.x
PHP: PHP 5.3.x
Posts: 9357
|
 |
« Reply #7 on: February 10, 2008, 08:19:09 pm » |
|
can u recreate what you did on our sandbox server at http://sandbox.civicrm.org/. Please post instructions here after you have done so and give us the url's etc thanx lobo
|
|
|
|
|
Logged
|
Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
|
|
|
afatac
I’m new here
Karma: 0
Offline
Posts: 13
|
 |
« Reply #8 on: June 20, 2008, 12:57:53 am » |
|
I also just see the link only.
I uploaded an image file image-2.jpg and only a link is shown
image-2_1632c7cadfc46bbd5322c40f8305e1d2.jpg
I also hope that the image will be displayed for the printout.
|
|
|
|
|
Logged
|
|
|
|
Dave Greenberg
Administrator
I’m (like) Lobo ;)
   
Karma: 154
Offline
CiviCRM: 3.1.6, 3.2, latest svn (trunk)
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: 5.0.41-log
PHP: 5.2.3
Posts: 4040
|
 |
« Reply #9 on: June 20, 2008, 02:10:09 pm » |
|
Can u recreate what you did on our sandbox server at http://sandbox.civicrm.org/. Please post instructions here after you have done so and give us the url's etc.
|
|
|
|
|
Logged
|
|
|
|
|
|
Dave Greenberg
Administrator
I’m (like) Lobo ;)
   
Karma: 154
Offline
CiviCRM: 3.1.6, 3.2, latest svn (trunk)
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: 5.0.41-log
PHP: 5.2.3
Posts: 4040
|
 |
« Reply #11 on: June 21, 2008, 06:26:12 am » |
|
There is something about the properties of the image file that seem to cause it to work, or NOT work. I just did a test with a jpg on the sandbox and it worked as expected (image is displayed). I've posted an bug on the issue tracker and attached your file (displays link only) and my file (displays the image). http://issues.civicrm.org/jira/browse/CRM-3226You can see my "working example" at http://sandbox.civicrm.org/civicrm/contact/view?reset=1&cid=104If anyone out there has immediate clues as to what might be causing this inconsistent behavior - please chime in!
|
|
|
|
« Last Edit: June 21, 2008, 06:28:30 am by Dave Greenberg »
|
Logged
|
|
|
|
afatac
I’m new here
Karma: 0
Offline
Posts: 13
|
 |
« Reply #12 on: June 21, 2008, 07:45:29 am » |
|
I downloaded your image and upload to my test site.
Only the file link is displayed.
Looks like it has nothing to do with the image itself.
Also, at your site, though I can see the photo, it is not shown in the printout.
|
|
|
|
« Last Edit: June 21, 2008, 07:56:44 am by afatac »
|
Logged
|
|
|
|
Donald Lobo
Administrator
I’m (like) Lobo ;)
   
Karma: 330
Offline
CiviCRM: 3.2
CMS: Drupal 6.x, Joomla 1.5.x
MySQL: MySQL 5.1.x
PHP: PHP 5.3.x
Posts: 9357
|
 |
« Reply #13 on: June 21, 2008, 11:30:35 pm » |
|
this is now fixed in trunk, u can get the patch here: http://fisheye.civicrm.org/changelog/CiviCRM/trunk?cs=15268Not sure what u mean by, "it is now shown in the printout" lobo
|
|
|
|
|
Logged
|
Use CiviCRM? Like CiviCRM? Then show your appreciation and make a donation.
|
|
|
afatac
I’m new here
Karma: 0
Offline
Posts: 13
|
 |
« Reply #14 on: June 22, 2008, 12:27:31 am » |
|
>Not sure what u mean by, "it is now shown in the printout
I printed the contact summary page by using the Print button on the same page.
On the printout, the dog photo was not shown. Instead, only a box with a cross at a corner was printed at the Photo field.
|
|
|
|
|
Logged
|
|
|
|
|