|
Script to Update Plugins for 1.6.5
|
|
11-28-2011, 05:47 AM
(This post was last modified: 11-30-2011 05:07 PM by pavemen.)
Post: #1
|
|||
|
|||
Script to Update Plugins for 1.6.5
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. Personal site: CommunityPlugins.com Please do not PM me for MyBB support here. Use the forums, they are here for a reason. Thanks. |
|||
|
11-28-2011, 05:56 AM
Post: #2
|
|||
|
|||
RE: script to update plugins for 1.6.5
thanks for writing this, pavemen!
Shave Nook - Traditional Wet Shaving Forum
|
|||
|
11-28-2011, 05:58 AM
Post: #3
|
|||
|
|||
RE: script to update plugins for 1.6.5
This is great, thanks pavemen.
# MyBB is the best forum software!
|
|||
|
11-28-2011, 05:59 AM
Post: #4
|
|||
|
|||
RE: script to update plugins for 1.6.5 This user has been denied support.
Very nice, I hope it could work out with all. I'd test this one today. Also, it'd be great if this thread is sticky so as many threads pointing out how could I update will look into this.
Z5T - Dynamic URL Shortener My Plugins & Themes |
|||
|
11-28-2011, 06:29 AM
Post: #5
|
|||
|
|||
RE: script to update plugins for 1.6.5
WoW! Very nice script.
|
|||
|
11-28-2011, 07:27 AM
Post: #6
|
|||
|
|||
RE: script to update plugins for 1.6.5
Whoah! Very cool -- thank you!
|
|||
|
11-28-2011, 12:43 PM
Post: #7
|
|||
|
|||
RE: Script to Update Plugins for 1.6.5 This user has been denied support.
cool
|
|||
|
11-28-2011, 01:42 PM
Post: #8
|
|||
|
|||
RE: Script to Update Plugins for 1.6.5 This user has been denied support.
Sticked, nice, this could help many who searches out for updating the plugins on their own.
Z5T - Dynamic URL Shortener My Plugins & Themes |
|||
|
11-28-2011, 10:48 PM
Post: #9
|
|||
|
|||
RE: Script to Update Plugins for 1.6.5
@Paveman:
Thanks a lot for this very useful script. Great Job! |
|||
|
11-29-2011, 10:13 PM
Post: #10
|
|||
|
|||
RE: Script to Update Plugins for 1.6.5
Someone PM'd me that this script was saying that MyAdvertisements required to be updated but MyAdvertisements always used receiving by reference. Either your script is failing somewhere or something else is happening.
Oh and this was the function it mentioned: PHP Code: function myadvertisements_postbit_disable(&$post)PM me for custom plugins. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help

Script to Update Plugins for 1.6.5 



This user has been denied support.
![[Image: logo.png]](http://khdra.info/web_images/logo.png)
![[Image: s.png]](http://mybb-plugins.com/images/s.png)