Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
And how does that line read now?
$old_path = $root . '/' . file_directory_path() . '/civicrm/custom' . $filename;
// get the file details $file = crm_get_file(array('id'=>$id)); $filename = $file['uri'];
// get the file details $files = crm_get_file(array('id'=>$id)); $file = array_shift($files); $filename = $file['uri'];
Now. How do I link the image to its associated event page?
$event_url = url('civicrm/event/info') . '?id=' . $fields['id']->content;
<a href="<?php $event_url = url('civicrm/event/info') . '?id=' . $fields['id']->content; ?>"><?php $image_uri = url(get_civicrm_image($fields['image_1']->content)); ?><img src="<?php echo $image_uri; ?>" /></a>
$image_uri = url(get_civicrm_image($fields['image_2']->content));