SMF Mod Site

Mod Name:
$grandchildbutton 'is_active' fix
Created By:
Dream Portal Team
Theme Enhancements
First Created:
April 23, 2010, 10:39:57 PM
Last Modified:
April 23, 2010, 10:44:52 PM
Latest Version:
Compatible With:
2.0 RC3
Total Downloads:

Download this mod

is_active (1kB) [1842]
Manual Install Instructions for SMF


If you're like me and have edited your top menu or have created a site menu which contains second or third layer sub-buttons for the dropdowns, you may have noticed a large number of undefined is_active in your Error Log.

This is because the template_menu() function checks for is_active for grandchildren, when it is impossible for a grandchild to be active (as it is not seen from the default menu itself).

The following modification is a fix for this problem. This will repair the issue only for the default theme and any other curve-based themes (make sure you select the option to install to custom themes!)

Dream Portal Team