Removing title from Page to use title from Node or how to make templates for pages per node type

Drupal is great :)) well not so much, it is made in a way that you will always have love/hate relationship with it. So somebody thought that best way to make templates is to have title and h1 tag always in page template separated from the rest of the content, which is fine if you are doing pages in 2002. If you want to have nice header with image of author, date and some other info and display it like you want and not have to use panels just to do that, you have to override, which is ok, but then again somebody else thought, why would you want to override pages by node type. All pages will be THE SAME, great thinking. So again you have overriding system with lots of options but not the one you need. Luckily you have another part of drupal where you can add something to template overrides and enable this #*#* So you add this code to your template.php

function themename_preprocess_page(&$variables) {
  if (!empty($variables['node'])) {
    $variables['theme_hook_suggestions'][] = 'page__node__' . $variables['node']->type;
  }
}

and now you can put page--node--blog.php.tpl in your templates folder and override page of blog node and remove title from page and use the one in node template where you have to also make some changes and put code in a way you want it to be.

So I did that aswell, I installed profile 2 to add some fildes for name and google+ and linkdin accounts (links) and did this to my node--blog.tpl.php

      <?php if ($display_submitted): ?>
      <?php
			$uid = user_load($node->uid);
			$basic = profile2_load_by_user($uid, 'basic');
		?>
        <div class="submitted">
          <div class="pic"><?php print $user_picture; ?></div>
          <div class="rest">
          <h1 class="title" id="page-title"><?php print $title; ?></h1>
          <p class="date"><?php print $pubdate; ?> - napisao <?php print l($basic->field_ime['und'][0]['value'],"user/".$node->uid, array('attributes' => array('rel'=>'author')));?></p>
          </div>
        </div>
      <?php endif; ?>