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:
rather than
http://socnet.shellmultimedia.com/node/354
Are there any additional settings I have missed?
Thanks!
Comments
Comment #1
michelleSounds 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
Comment #2
cardsup commentedThanks, Michelle...
Here is the code from my template.php:
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?
Comment #3
michelle$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
Comment #4
cardsup commentedThanks, 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...
Comment #5
michelleWell, they've got the whole function wrapped in an IF test so my guess is that's returning false. Try:
Michelle
Comment #6
cardsup commentedTHANKS!!!!
That worked great!!!
Comment #7
michellePerfect!
(Changing title to help future searchers)
Michelle
Comment #8
Max_Headroom commentedHi Michelle
I did a similar thing for the Newsflash theme. I think it is from the same designer.
Comment #9
michelleYeah, 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
Comment #10
millions commentedI also used this for Denver's theme.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.