In your demo it seems to work for you, i edit the node-forum.tpl to get the forum to display, but i still get my default comment display in forum node, no user points, no online/offline icones

// Show nodes normally when they appear outside of the forum
//if (!$is_forum) {
 // include('node.tpl.php');
 // return;
//}

Comments

Michelle’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Does the extra user information show up on the forum nodes? It sounds as though the call to addvars isn't happening.

Michelle

toma’s picture

no extra user information appear, i think that some function call as u say doesn't happend

Thanks for your support

brianV’s picture

toma - can you verify that you added the three lines to the template.php as indicated in the readme.txt?

toma’s picture

Thanks for your reply i do add the lines on template.php in my theme

function _phptemplate_variables($hook, $vars) {
if (module_exists('advanced_forum')) {
    $vars = advanced_forum_addvars($hook, $vars);
  }

  if ($hook == 'page') {
    if (arg(0) == 'user') {
      $vars['tabs'] = str_replace('&Eacute;diter</a>', 'Modifier compte</a>', $vars['tabs']);
    }
	return $vars;
  }
}
Michelle’s picture

Ah, I see the problem. You're only returning the $vars if $hook is 'page'. You need to move that line down so you have:

function _phptemplate_variables($hook, $vars) {
if (module_exists('advanced_forum')) {
    $vars = advanced_forum_addvars($hook, $vars);
  }

  if ($hook == 'page') {
    if (arg(0) == 'user') {
      $vars['tabs'] = str_replace('&Eacute;diter</a>', 'Modifier compte</a>', $vars['tabs']);
    }
  }
return $vars;
}

Michelle

Michelle’s picture

Status: Postponed (maintainer needs more info) » Fixed

Forgot the status.

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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