Please support with code to print field
rburgundy - October 26, 2009 - 08:05
| Project: | Content Profile |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi Drupal Community-
I am currently using the code below, but it seems kind of long to print this field. Is there a better way to do this?
As a note: I'm using content profile, imagefield crop, imagecache
<?php
$test = $content_profile->get_variable('profile', 'field_profile_picture');
$test = $test[0]['filepath'];
print theme('imagecache', 'profile', $test);
?>Also, I'm printing this on the user-profile.tpl.php page
Thanks a bunch

#1
Realized title was incomplete.