Obviously a number of php pages are created when you install the plug in (login.php etc.). I would like to customize some of these pages. I can, of course, just edit them but it seems likely these changes would be overwritten when I update the plug in at some future point. Is there a way to avoid this? Is there a “best practices” for this sort of thing?
If you edit the plugin’s PHP files, it becomes your responsibility to also maintain proper “configuration management.”
You should maintain backups of every PHP file that you edit; as they will most likely be overwritten, when you update the plugin. But before you copy your modified files back into the updated plugin directory; the “best practice” is to compare each file that you edited, against the corresponding file to be overwritten.
You can do this, by using tools such as DIFF, DiffMerge (my favorite), or WinDIFF. If the only differences detected are your edits, then it is “safe” to simply copy your edited files back into the plugin directory. If any differences are detected, that are NOT your edits, it means you must incorporate your edits into the updated PHP file(s).
You must be logged in to reply to this topic.