OK to enable compatibility with VB 4.0.0 - VB 4.1.9 you can manually add the required hook.
Instructions:
Open and Edit your /includes/class_core.php file
Find this block of code:
PHP Code:
if (!isset(self::$template_usage[$template_name]))
{
self::$template_usage[$template_name] = 1;
}
else
{
self::$template_usage[$template_name]++;
}
return $template;
}
}
Add the following line ABOVE the
return $template; line.
PHP Code:
($hook = vBulletinHook::fetch_hook('fetch_template_complete')) ? eval($hook) : false;
So the final code will look like:
PHP Code:
if (!isset(self::$template_usage[$template_name]))
{
self::$template_usage[$template_name] = 1;
}
else
{
self::$template_usage[$template_name]++;
}
($hook = vBulletinHook::fetch_hook('fetch_template_complete')) ? eval($hook) : false;
return $template;
}
}
Note: In VB 4.0.8 on which I tested this the line number is Line 4207. This will vary in other VB versions.
The mod will then work in your VB versions. When you upgrade to 4.1.10 or above it will continue to work because the hook is already there.
NOTE- Do no attempt to edit the plugin on this hook, you will not be able to re-save it and you will need to re-install the mod if you try to save it to a different hook.