Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am having trouble getting the imagecache version of an image to show on a custom profile page.
The image shows up with the default page layout.
But when I create a custom user-profile.tpl.php all I can get is the original image.
right now I have this
<?php if ($account->profile_header):?>
<img src="/<?php print $account->profile_header ?>" >
<?php endif; ?>
What SHOULD I have?
The preset I want to use is named "profile_header" as is the field for the image... is that a problem?
Comments
Comment #1
Madapple CreditAttribution: Madapple commentedok a followup
I now am trying
the image tries to load but the file name looks like this
user-6-profile_header.jpg%3Fe8af0b4b8fcb4dae821759eba71229bd
if I load the image directly and remove everything after the file extension the image loads so I know it's there. How do I get rid of the %3Fe8af0b4b8fcb4dae821759eba71229bd