My forum topics and replies look like a regular node with replies. They don't at all look like the demonstration page where the user information is on the left.

Here's an example: http://beaconsurvival.com/acronyms

Any idea where I might have gone wrong? I followed the documentation step by step.

Comments

gthing’s picture

I see in the troubleshooting page that this may have something to do with my function call in template.php. Here is a copy of what I have:

/**
 * Override or insert PHPTemplate variables into the templates.
 */
function _phptemplate_variables($hook, $vars) 
{
  if (module_exists('advanced_forum')) {
    $vars = advanced_forum_addvars($hook, $vars);
  }
  if ($hook == 'page') {

    // Hook into color.module
    if (module_exists('color')) {
      _color_page_alter($vars);
    }
    return $vars;
  }
  return array();
}

I am returning $vars AND array. Should I change this?

gthing’s picture

Status: Active » Closed (fixed)

Okay I changed the last return to return vars again - still not sure if that it totally right, but it works now.

michelle’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Try step #4 again. This is a typical symptom of not having the _phptemplate_variables code correct.

Michelle

gthing’s picture

This is what my code looks like now (and it is working):

/**
 * Override or insert PHPTemplate variables into the templates.
 */
function _phptemplate_variables($hook, $vars) 
{
  if (module_exists('advanced_forum')) {
    $vars = advanced_forum_addvars($hook, $vars);
  }
  if ($hook == 'page') {

    // Hook into color.module
    if (module_exists('color')) {
      _color_page_alter($vars);
    }
    return $vars;
  }
  /* return array(); */
  return $vars;
}

I thought that the first return was enough, but apparently I needed to add that second return.

michelle’s picture

Status: Postponed (maintainer needs more info) » Fixed

The first return only gets called for the page hook, which advforum doesn't use. That's why the docs say to make sure you're not returning array() at the end. That's the important one.

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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