Hi,
I'm using the Forum and Advanced Forum module, together with a childship theme which uses Mothership as base theme. I got this notice and warning on the forum listing page:
Notice: Undefined index: forums in mothership_preprocess_forum_list() (line 16 of /private/var/www/drupal7-test/sites/all/themes/mothership/mothership/functions/forum.php).
Warning: Invalid argument supplied for foreach() in mothership_preprocess_forum_list() (line 16 of /private/var/www/drupal7-test/sites/all/themes/mothership/mothership/functions/forum.php).
I don't need Mothership to theme the forum pages since Advanced Forum is doing a great job with it. However it seems Mothership doesn't offer any options to disable Forums handling. The /functions/forum.php file is included invariably in Mothership's template.php file, even for sites that do not use Forum. From the point of view of efficiency as well, it would be great if the Forum include could be optional.
Thanks!
Comments
Comment #1
victoriachan commentedHi,
I've created a patch to let admin turn forum theming on/off on theme settings. The new field, 'Forum theming' is added in the 'Mothership Misc Goodie Bag' section, below the custom 404 page template option.
I'm attaching patches for 7.x-2.8 (latest), and 7.x-2.3, which is the version I'm using.
Thanks,
Victoria
Comment #2
mraichelson commentedI think #1829082: Advanced forums causes error. is pretty much identical to this. (Though the patch I submitted over there took a different approach to addressing this.)
Comment #3
ey commentedThe patch does what it promises. I find it very useful, especially for the users who have advanced forum installed. Without this patch, there are many notices and warnings, since advanced forum also does a heavy preprocessing and changes some variables etc.
I, and surely many other users who use advanced forum would be very happy if this patch will be committed.
Thanks.
Comment #4
ey commentedI have re-rolled the patch to the latest version.
Comment #5
realityloop commentedfixed