2011-11-28, 05:47 AM
I've updated my original script (http://community.mybb.com/thread-106729-...#pid777848) to actually update the plugin files now. All the fixes use the "reference" method by adding "&" where needed.
USE AT YOUR OWN RISK
Where needed = function called by affected hook and no "&" already present
So I suggest that you backup your ENTIRE plugins folder and any subfolders.
Remove any old version of my original script from the plugins folder
Download the attached file to your local computer, open it in a text editor and make sure that $dryrun is set to 1 and the $plugin_dir is correct
Save and upload the file to your forum root (where index.php and showthread.php are located)
Direct your browser to the newly uploaded file and it will output all the hooks its looking for in each directory (plugins and subfolders), each file, each function/hook then all the files that will actually be changed and how many fixes in each will be applied
If it all looks okay, edit your local copy and change $dryrun to 0, save and upload.
Reload the browser page and wait for the done message. All changed files will be listed.
Run it again and there should be no changed files listed, indicating the files were updated the first pass.
Feedback accepted, please use at your risk, but it seems to be working on my server.
If the plugin author has already updated his/her plugin, I suggest that you use that version instead.
Update: 11/30/11: This script was updated to cover the case where inline comments are given directly after the add_hooks calls in the plugin file.
USE AT YOUR OWN RISK
Where needed = function called by affected hook and no "&" already present
So I suggest that you backup your ENTIRE plugins folder and any subfolders.
Remove any old version of my original script from the plugins folder
Download the attached file to your local computer, open it in a text editor and make sure that $dryrun is set to 1 and the $plugin_dir is correct
Save and upload the file to your forum root (where index.php and showthread.php are located)
Direct your browser to the newly uploaded file and it will output all the hooks its looking for in each directory (plugins and subfolders), each file, each function/hook then all the files that will actually be changed and how many fixes in each will be applied
If it all looks okay, edit your local copy and change $dryrun to 0, save and upload.
Reload the browser page and wait for the done message. All changed files will be listed.
Run it again and there should be no changed files listed, indicating the files were updated the first pass.
Feedback accepted, please use at your risk, but it seems to be working on my server.
If the plugin author has already updated his/her plugin, I suggest that you use that version instead.
Update: 11/30/11: This script was updated to cover the case where inline comments are given directly after the add_hooks calls in the plugin file.