Hello,
forum module works fine for me, flatforum too as long as there is no comment. But if there are any comments (so post answers to the thread) all comments are shown, but the thread topic (first post in that thread) isn't !
It seems like there is something wrong with my function _phptemplate_variables($hook, $vars).
this there was original (garland, drupal 5) - I commented this out
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
if ($secondary = menu_secondary_local_tasks()) {
$output = '<span class="clear"></span>';
$output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
$vars['tabs2'] = $output;
}
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
return $vars;
}
return array();
}
and just added than this from flatforum (like their install.txt says)
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
static $is_forum;
$variables = array();
if (!isset($is_forum)) {
if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == '') {
$nid = arg(1);
}
if (arg(0) == 'comment' && arg(1) == 'reply' && is_numeric(arg(2))) {
$nid = arg(2);
}
if ($nid) {
$node = node_load(array('nid' => $nid));
}