Need Help with inserting code
<p>I am not a programmer by no means.  I am trying to figure out how to get this code inserted into profile.php</p>

<pre><code> $author_id = get_query_var('author');

if($author_id){
echo do_shortcode("[photosmash gallery_type='contributor' author=" . $author_id . " no_form=true]");
}
</code></pre>

<p><strong>Below is profile.php code:</strong></p>

<pre><code>&lt;?php global $mngl_user, $mngl_friend, $mngl_options; ?&gt;
&lt;?php $display_profile = ( $user-&gt;privacy == 'public' or 
                           MnglUser::is_logged_in_and_an_admin() or 
                           MnglUser::is_logged_in_and_visible() ); ?&gt;

&lt;table class="mngl-profile-table"&gt;
  &lt;tr&gt;
    &lt;td valign="top" class="mngl-profile-table-col-1 mngl-valign-top"&gt;
      &lt;table&gt;
        &lt;tr&gt;
          &lt;td&gt;
            &lt;?php echo $avatar; ?&gt;
            &lt;?php echo $mngl_friends_controller-&gt;display_add_friend_button($mngl_user-&gt;id, $user-&gt;id); ?&gt;
            &lt;?php echo do_action('mngl-profile-display',$user-&gt;id); ?&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td valign="top" class="mngl-valign-top"&gt;
            &lt;?php if($display_profile) { ?&gt;

              &lt;?php if(isset($mngl_options-&gt;field_visibilities['profile_front']['bio']) and !empty($user-&gt;bio)) { ?&gt;
                &lt;p class="mngl-profile-bio"&gt;&lt;?php echo MnglBoardsHelper::format_message($user-&gt;bio); ?&gt;&lt;/p&gt;
              &lt;?php } ?&gt;
              &lt;div class="mngl-profile-information"&gt;
              &lt;?php if(isset($mngl_options-&gt;field_visibilities['profile_front']['name']) and !empty($user-&gt;first_name) and ($user-&gt;first_name != $user-&gt;screenname)) { ?&gt;
                &lt;p class="mngl-profile-field"&gt;&lt;strong&gt;&lt;?php _e('Name', 'mingle'); ?&gt;:&lt;/strong&gt;&lt;br/&gt;&lt;?php echo wptexturize(stripslashes($user-&gt;first_name)); ?&gt;
                &lt;?php if(!empty($user-&gt;last_name)){ ?&gt;
                &lt;?php echo " " . wptexturize(stripslashes($user-&gt;last_name)); ?&gt;
                &lt;?php } ?&gt;
                &lt;/p&gt;
              &lt;?php } ?&gt;
              &lt;?php if(isset($mngl_options-&gt;field_visibilities['profile_front']['sex']) and !empty($user-&gt;sex)) { ?&gt;
                &lt;p class="mngl-profile-sex"&gt;&lt;strong&gt;&lt;?php _e('Gender', 'mingle'); ?&gt;:&lt;/strong&gt;&lt;br/&gt;&lt;?php echo $user-&gt;sex_display; ?&gt;&lt;/p&gt;
              &lt;?php } ?&gt;

              &lt;?php if(isset($mngl_options-&gt;field_visibilities['profile_front']['location']) and !empty($user-&gt;location)) { ?&gt;
                &lt;p class="mngl-profile-location"&gt;&lt;strong&gt;&lt;?php _e('Location', 'mingle'); ?&gt;:&lt;/strong&gt;&lt;br/&gt;&lt;?php echo wptexturize($user-&gt;location); ?&gt;&lt;/p&gt;
              &lt;?php } ?&gt;
              &lt;?php if(isset($mngl_options-&gt;field_visibilities['profile_front']['birthday']) and !empty($user-&gt;birthday)) { ?&gt;
                &lt;p class="mngl-profile-location"&gt;&lt;strong&gt;&lt;?php _e('Birthday', 'mingle'); ?&gt;:&lt;/strong&gt;&lt;br/&gt;&lt;?php echo wptexturize($user-&gt;birthday); ?&gt;&lt;/p&gt;
              &lt;?php } ?&gt;
              &lt;?php if(isset($mngl_options-&gt;field_visibilities['profile_front']['url']) and !empty($user-&gt;url)) { ?&gt;
                &lt;p class="mngl-profile-url"&gt;&lt;strong&gt;&lt;?php _e('Website', 'mingle'); ?&gt;:&lt;/strong&gt;&lt;br/&gt;&lt;?php echo make_clickable($user-&gt;url); ?&gt;&lt;/p&gt;
              &lt;?php } ?&gt;
              &lt;/div&gt;
            &lt;?php } ?&gt;
            &lt;p&gt;&lt;strong&gt;&lt;?php _e('Friends', 'mingle'); ?&gt;:&lt;/strong&gt;&lt;div class="mngl-profile-friend-grid-wrap"&gt;&lt;?php echo $mngl_friends_controller-&gt;display_friends_grid($user-&gt;id); ?&gt;&lt;/div&gt;&lt;/p&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/td&gt;
    &lt;td valign="top" class="mngl-profile-table-col-2"&gt;
      &lt;table class="mngl-profile-body"&gt;
        &lt;tr&gt;
          &lt;td&gt;
            &lt;div class="mngl-profile-name"&gt;&lt;?php echo $user-&gt;screenname; ?&gt;&lt;/div&gt;
            &lt;?php 
              if(!$display_profile)
                require( MNGL_VIEWS_PATH . '/mngl-boards/private.php' );
            ?&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;?php if($display_profile) { ?&gt;
            &lt;td valign="top" width="100%"&gt;&lt;div class="mngl-board"&gt;&lt;?php echo $mngl_boards_controller-&gt;display($user-&gt;id); ?&gt;&lt;/div&gt;&lt;/td&gt;
          &lt;?php } ?&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/td&gt;
&lt;/table&gt;
</code></pre>
