Technology > SMF Forum Code Modifications

Integration Hooks Report

(1/1)

Chip:
https://custom.simplemachines.org/mods/index.php?mod=3285

Description:

Complete credit for this mod goes to [SiNaN] (to me only the blames for having uploaded it only after several months...sorry everybody)

This mod adds an admin page where all the active hooks are presented.

Starting with version 1.3 it's possible to disable active hooks.
Please note disable hooks will most likely remove functionalities added by mods and in certain cases could break your forum! Do it only if you are absolutely sure of what you are doing
...I know this warning is useless and someone will eventually break it... :P ...well, it's not my fault.

Usage: Admin »Modification Settings »Integration Hooks


bug fix on line 327 in .Sources/Subs-IntegrationHooks.php:
 
find:

--- Code: ---                                $sort[] = $$sort_options[0];
--- End code ---

replace:

--- Code: ---//                              $sort[] = $$sort_options[0];
                                if  ($sort_options[0] == "hook")
                                        $sort[] = $hook;
                                if  ($sort_options[0] == "function")
                                        $sort[] = $function;
                                if  ($sort_options[0] == "file_name")
                                        $sort[] = $file_name;
                                if  ($sort_options[0] == "status")
                                        $sort[] = $status;


--- End code ---

Never remove hooks unless you know exactly why you wish to do so.

Navigation

[0] Message Index

It appears that you have not registered with dopetalk. To register, please click here...
Go to full version