I'm using Drupal 7.9 for an internal website. I'm trying to customize the "user-profile.tpl.php" file so it shows the fields that I've customized in the "admin/config/people/accounts/fields" to be shown below:
<<>>image block on the left<<>>
"Full Name
Job Title/Position
Your Organization Name Here, INC
1234 Your Address Here
Long City Name, ST 12345
(P) 555-123-1234
(E) emailaddress@somecompany.com"
But I'm having an issue writing the PHP in the "user-profile.tpl.php" file (I didn't touch the user-profile-category.tpl.php or the user-profile-item.tpl.php files)
This is what I've coded, which obviously is printing everything out wrong.
<div class="profile" style="float:left; width:100%;">
<div class="profile-image" style="width:20%; float:left;">
<?php if ($user_picture): ?>
<div class="user-picture">
<?php print $user_picture; ?>
</div>
<?php endif; ?>
</div>
<div class="profile-info" style="width:80%; float:left;">
<h1><?php print render($user_profile['field_profile_full_name']) ?></h1>
<p><?php print render($user_profile['field_profile_job_title']) ?></p>
<h3><?php print render($user_profile['field_profile_organization']) ?></h3>
<p><?php print render($user_profile['field_profile_address']) ?><p>
<p><?php print render($user_profile['field_profile_city']) ?>, <?php print render($user_profile['field_profile_state']) ?> <?php print render($user_profile['field_profile_zip_code']) ?></p>
<h3>(P)<?php print render($user_profile['field_profile_business_phone']) ?></h3>
<h3>(E)<?php print render($user_profile['field_profile_e_mail_address']) ?></h3>
</div>
</div>
When it prints on the page, everything still has a bunch of page breaks and space in between the info. And the address line isn't included in one block, it puts it on a new line each item.
How do I write the code so I can get the format outlined above?