Advertisement:

Navigation

SMF Mod Site

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

Download this mod

is_active fix.zip (1kB) [1407]
Manual Install Instructions for SMF

Description:

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