Closed (fixed)
Project:
Advanced Forum
Version:
5.x-1.0-alpha17
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 23:05 UTC
Updated:
18 Feb 2009 at 17:30 UTC
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
Comment #1
michelleYou don't have the _phptemplate_variables function at all so you can just add the whole thing right out of the instructions.
Michelle