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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • email upload field + customize user profile tpl
Pages: [1]

Author Topic: email upload field + customize user profile tpl  (Read 1974 times)

noraD

  • Guest
email upload field + customize user profile tpl
July 06, 2007, 02:55:59 am
Hello,

1) I trying to add an upload field to the internal civicrm message system form without access. I touched the EmailCommon.php, Email.php, File.php and Email.tpl files, played and copied around, but I don´t get it. I know it´s not usual and I read all forum messages...
Can you give me a hint how to realice it?

2)I´m using drupal with civicrm and there I started to customize the user profile tpl, I want to combine cck fields with civicrm fields in a customize look, my problem is that I have problems to get the address/location fields. Title, first and last name are appearing ...
I´m using following snippet:
Quote
<?php
if (module_exists('civicrm')) {
    civicrm_initialize(TRUE);

function get_user_object($uid) {
  civicrm_initialize(true);
  $userID = crm_uf_get_match_id($uid);
  return crm_get_contact(array('contact_id' => $userID));
}
function Get_Array_Keys_UL($array=array()) {
$recursion=__FUNCTION__;
if (empty($array)) return '';
$out='<ul>'."\n";
foreach ($array as $key => $elem)
   $out .= '<li>'.$key.$recursion($elem).'</li>'."\n";
$out .= '</ul>'."\n";
return $out;
}
$userobject = get_user_object($user->uid);
$profileobject = ($userobject->contact_type_object);
}

?>
<?php print ($profileobject->job_title).' '.($profileobject->first_name).' '.($profileobject->last_name).' '.($profileobject->city).'<br>'; ?>
<?php print ($profileobject->home_URL).' '.($profileobject->work_url).'<br>'; ?>


....I´m more a dilettante
best
n



Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • email upload field + customize user profile tpl

This forum was archived on 2017-11-26.