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 Drupal Modules (Moderator: Donald Lobo) »
  • Show Drupal user picture on contact page
Pages: [1]

Author Topic: Show Drupal user picture on contact page  (Read 2735 times)

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Show Drupal user picture on contact page
March 22, 2011, 05:47:30 pm
Hello, I found this document on the wiki, which describes what I want to do

http://wiki.civicrm.org/confluence/display/CRMDOC33/Adding+pictures+in+civicrm+profile+page

However, the tpl mentioned in step 3 does not exist (modules/civicrm/templates/CRM/Contact/Page/View/Basic.tpl)

Please advise,

thanks!

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Show Drupal user picture on contact page
March 23, 2011, 01:58:41 am
Hi,

Currently template file 'templates/CRM/Contact/Page/View/Basic.tpl' do not exits, we are displaying contact image through  'CRM/Contact/Page/ContactImage.tpl' , so I think u need to skip steps 3 and 4.

Also I suspect in attached file 'modified_script.php', u need to make some changes like

Replace
Code: [Select]

$dpic = trim($row1['picture']);
With
Code: [Select]
$dpic = '<drupal root url>/'.trim($row1['picture']);


Rajan

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: Show Drupal user picture on contact page
March 23, 2011, 09:03:51 pm
Hey rajan

thansk for the reply, i will look at your solutions further, thanks!

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: Show Drupal user picture on contact page
March 23, 2011, 10:46:32 pm
I just realized out that civi already has image capabilities for contacts, thus I dont believe I will need to integrate now with Drupal, this is great news. 

Question tho: when viewing a contact's record and you click on the thumbnail, is there anyway to show the picture at original size in the pop up window?

thanks!

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Show Drupal user picture on contact page
March 24, 2011, 03:48:05 am
I think currently it works in the same manner. When you click on the contact image thumbnail, the original size image is opened in the Popup.

HTH
Rahul
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: Show Drupal user picture on contact page
March 24, 2011, 05:29:17 pm
Unfortunately I can confirm through several test images that the image is in fact scaled down and does not show original size in pop up.  Any suggestions?

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Show Drupal user picture on contact page
March 25, 2011, 01:31:04 am
Can you confirm this on http://drupal.demo.civicrm.org

Rahul
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: Show Drupal user picture on contact page
March 25, 2011, 09:21:20 pm
Confirmed, image does scale on the demo site.

thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Show Drupal user picture on contact page

This forum was archived on 2017-11-26.