Hello, I'm sorry to bother you with my template.php problem. I used Advanced Forum Drupal 5 alpha 16 release with predefined theme but now that I changed to Addari theme ( http://www.worthapost.com/drupal-themes/addari-drupal-theme-worthapost ) I have to modify the template.php. Despite my efforts trying to modify it after readinge the installation documentation, I can't really get it working because of my poor skills.

Here's the original template.php:

<?php

function phptemplate_comment_wrapper($content, $type = null) {
  static $node_type;
  if (isset($type)) $node_type = $type;

  if (!$content || $node_type == 'forum') {
    return '<div id="comments">'. $content . '</div>';
  }
  else {
    return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>';
  }
}


function addari_regions() {
  return array(
	   'content_top' => t('content top'),
	   'content_bottom' => t('content bottom'),
	   'sidebar_left' => t('left sidebar'),
       'sidebar_right' => t('right sidebar'),
	   'header' => t('header'),
	   'footer' => t('footer'),


  );
}


?>

How should I modify it?

Comments

michelle’s picture

Status: Active » Fixed

You don't have the _phptemplate_variables function at all so you can just add the whole thing right out of the instructions.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.