![]() |
If there was an easy solution, there would have been an automatic patch system since ages I guess :)
|
Well, i have an idea, which is not flawless, however not as flawed as the line number. Have an area to input code, then choose to place the hook before/after the code, ofcourse the code may be changed in the future, so being very specific instead of inserting a huge lump of code would improve the ratio of succession, and if it was only the line number changed, it won't matter.
- Zero Tolerance |
Why not have it show the contents of the PHP file, and a radio button next to each line. You select the line you want, and then chose "Above This Line" or "Below This Line".
Not sure if something like that is possible but hey, it's just an idea :) |
Hmm... if you have to open the file to determine where you're going to insert the hook, why not just add it then instead of going back to the ACP?
|
Quote:
The point of this is to eradicate manualy coding in the hooks. - Zero Tolerance |
Whatever the problems with this, it's a good idea. :)
|
Really nice idea ZT to manage custom hooks :claps: .
Just a suggestion if u like. Basically a coder requires 3 things :- 1> To add more code in files 2> To remove existing code 3> To replace existing code Your hack manages the 1st point very well but most of the mods cant work without 2&3. If along with custom hooks, you could add custom comments like /* Zero Tolerance comment ######Existing code here ######## Zero Tolerance comment */ Custom commenting will help remove the existing code.Also to replace the code, a custom hook(with the replaced code) can be placed just above or below the custom comments. Also you can keep track of custom hooks+comments together by parsing the file or just storing the line numbers. Although this all can be done manually but it will be a more organised approach to manage it with your hack instead of going through file and doing ctrl+f. More functionalities can be added to it like cleanup file which can remove all custom comments and hook for debugging etc. Just my thought on the fly :D |
nice job :nervous:
|
Nice suggestions spool, however point 2 & 3 may be useful, it is not the point of this modification, which is to create custom hooks, not to change the vB code for modifications, the idea is you have a modification, but the hooks you want do not exist, so you create them using this, so then you can add the plugins to your newly created hook.
Sorry for the delay on v1, i was out shopping o_o (Bad excuse - i know). Should be completed within the next hour or 2 :) - Zero Tolerance |
v1 has been released, look uptop for features, if you used the old version, you must delete all custom hooks you added with the old system before proceeding to upgrade.
- Zero Tolerance |
All times are GMT. The time now is 12:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|