I installed the Advanced forum as per instructions, but for some reason I can not make it work as I think it should...

1. When I go to the admin/by-module section, I see the following error:

warning: Error parsing modules/advanced_forum/advanced_forum.info on line 1 in /home/site/public_html/includes/module.inc on line 195.

2. When I make a forum post, it is displayed like a normal node, not like the expected Forum entry...The user section (on the left side, with the avatar image) is missing, and it looks like:

http://drupal.org/node/237794

rather than

http://socnet.shellmultimedia.com/node/354

Are there any additional settings I have missed?

Thanks!

Comments

michelle’s picture

Status: Active » Postponed (maintainer needs more info)

Sounds like:

http://drupal.org/node/229970 :
(Problem) The forum overview / topic list pages look fine but the individual threads look like stock Drupal.
(Solution) Add the call to advanced_forum_addvars() to your _phptemplate_variables() as explained in the install instructions.

Michelle

cardsup’s picture

Thanks, Michelle...

Here is the code from my template.php:

if (theme_get_setting('bealestreet_themelogo'))
{
   function _phptemplate_variables($hook, $variables = array()) {
  if (module_exists('advanced_profile')) {
    $vars = advanced_profile_addvars($hook, $variables);
  }
  if (module_exists('advanced_forum')) {
    $vars = advanced_forum_addvars($hook, $variables);
  }
     $variables['logo'] = drupal_get_path('theme', 'bealestreet') . '/images/' . theme_get_setting('bealestreet_style') . '/logo.png';
     return $variables;
   }
}

I may be missing something, but I believe I have added the advanced_forum_addvars()

Also, the error is still present:

warning: Error parsing modules/advanced_forum/advanced_forum.info on line 1 in /home/site/public_html/includes/module.inc on line 195.

What am I doing wrong?

michelle’s picture

Status: Postponed (maintainer needs more info) » Fixed

$vars and $variables aren't the same. It doesn't matter which you use but you need to pick one or the other and use it throughout the function.

The other is http://drupal.org/node/237742

Michelle

cardsup’s picture

Thanks, Michelle...

As you can guess -- I am not a programmer...

I changed the code to

if (theme_get_setting('bealestreet_themelogo')) { function _phptemplate_variables($hook, $vars = array()) { if (module_exists('advanced_profile')) { $vars = advanced_profile_addvars($hook, $vars); } if (module_exists('advanced_forum')) { $vars = advanced_forum_addvars($hook, $vars); } $vars['logo'] = drupal_get_path('theme', 'bealestreet') . '/images/' . theme_get_setting('bealestreet_style') . '/logo.png'; return $vars; } }

and yet there is no change...

michelle’s picture

Status: Fixed » Postponed (maintainer needs more info)

Well, they've got the whole function wrapped in an IF test so my guess is that's returning false. Try:

function _phptemplate_variables($hook, $vars = array()) {

  if (module_exists('advanced_profile')) {
    $vars = advanced_profile_addvars($hook, $vars);
  }

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

  if (theme_get_setting('bealestreet_themelogo')) {
    $vars['logo'] = drupal_get_path('theme', 'bealestreet') . '/images/' . theme_get_setting('bealestreet_style') . '/logo.png';
  }

  return $vars;
}

Michelle

cardsup’s picture

THANKS!!!!

That worked great!!!

michelle’s picture

Title: Advanced forum look » Adding call to template.php for bealestreet theme
Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

Perfect!

(Changing title to help future searchers)

Michelle

Max_Headroom’s picture

Hi Michelle
I did a similar thing for the Newsflash theme. I think it is from the same designer.

michelle’s picture

Yeah, it is. Those themes are really nice looking but cause a lot of help requests because their template.php is complex. I have the same problem with zen.

Michelle

millions’s picture

I also used this for Denver's theme.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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