As this was confusing to me in the beginning, hopefully this will help some people with questions on how to patch your php-nuke.
There are basically 2 parts to patching your Nuke website. PART 1-the website and PART 2-the bbtonuke (forums). These are just pieces of PhP-Nuke (corrected/patched files), your site will not run just on these patch files alone.
* Cpanel install - If you used cpanel to install your Php-Nuke chances are your site does not include any of the LATEST patches at all.
START:
BACKUP YOUR SITE - if you don't know how to do this read the php nuke how-to manual to zip/tar your site and dump the database.
2) GET YOUR 2 CURRENT VERSIONS:
Determine where you are(the version of Nuke & the version of bbtonuke-forum) and where you need to go.
- Get your current versions by using phpMyadmin & view your database tables by browsing
Nuke_Config table - version number
-this will give you your "Nuke Version" - mine said 7.6
Nuke_bbconfig - version
-this will give your bbtonuke(forum) version - mine was 0.17 meaning 2.0.17 & was on page 2 when I browsed
3) DOWNLOAD:
All right now you are ready to download the patch files. Since my NUKE version was 7.6
I will
a) download Nuke 7.6 Patched (current patch version 3.2b)located on the front page of Nuke Resources. You must match your version of Php-Nuke to the patch version. At the same time these patch files include SOME of the bbtonuke forum updates. You need to determine the version of bbtonuke patch updates the 3.2b or current patch version files include.
b) So now unzip this patched version to your desktop and view the upgrade.php on the last line where it says
-----
Code:
$result = $db->sql_query("UPDATE ".$prefix."_bbconfig SET config_value='.0.17' where config_name='version'");
-----
Notice where it says SET config_value='.0.0.17" this means the 7.6 -3.2b patches include bbtonuke updates to 2.0.17 (this could change - so look). After this (PART 1) 3.2b patch update your bbtonuke forums will now be version 2.0.17. Current (PART II)bbtonuke patches as of writing this is bbtonuke 2.0.21. You need to update.
C) So now download (start with next version & work to latest):
BBtoNuke 2.0.18 For NP-Nuke Patched
BBtoNuke 2.0.19 For NP-Nuke Patched
BBtoNuke 2.0.20 For NP-Nuke Patched
BBtoNuke 2.0.21 For NP-Nuke Patched
Found in Nuke Resources Download Section - Main/PHPNuke 7.x/Addons
4) EXTRACT/UPLOAD/OVER-WRITE:
*Note - you are about to over-write your config.php (all your database info) and any edited files you have on your site (you did a backup right?).
a) Now extract the files to separate folders on your desktop. Edit/open the config.php and add your current database info (get it from your old config.php). Now upload these files to your website and overwrite your existing files (keeping folders/file structure intact).
- Start with the 7.6(your nuke version) patched 3.2b(latest patch version) files then do the bbtonuke files 2.0.18, then 2.0.19, 2.0.20, 2.0.21 in order (if your site had bbtonuke 2.0.19 you only need 2.0.20 & 2.0.21).
5) RUN PATCH SCRIPTS:
Now each one of these patches include an upgrade script which needs to be run in order.
a) First do the Nuke patch files upgrade.php (ex: 7.6- 3.2b upgrade.php)
http://mysite.com/upgrade.php
delete the file off your server once run
b) Then do the bbtonuke patch update scripts in order
http://mysite.com/upgrade17-18.php
http://mysite.com/upgrade18-19.php
http://mysite.com/upgrade19-20.php
http://mysite.com/upgrade20-21.php
delete these files off your server once run
Don't forget to view the readme for important notes and check for updates to modules/blocks not included in the patches.
If your using a different theme than a default one included in Nuke (deepblue & subsilver) these will need to be updated to. View the change log or compare the replaced/patch files to your present ones.
If you get an error and want to post a question - please provide:
Version of Nuke (7.0,7.1,7.2,7.3.7.4 .... etc)
Version of the patch files (3.1, 3.2, 3.2b) or "not patched" if no patches were applied
Version of bbtonuke (2.0.17, ...2.0.21)
All done - congratulations
Give thanks to NR & the patch team for helping to keep our sites secure.
To be sure each update worked successfully, I would do them sequentially. Do the Patched files first (install files and run the upgrade script) and make sure it works before going onto the BBToNuke upgrades.
The Patched series is only designed to overwrite the original phpNuke releases from FB. They aren't designed for other distributions such as Platinum. So you may need to go to the creators for that, or do the patching manually using a file difference program (I use Winmerge, its free). It is quite a time consuming process to do.
little problem here. I am just installing the php-nuke 7.8 with the patch 78patched3dot2 I got here but the problem is i couldn't find the file upgrade.php on this zip file so following the how-to above i can not see which bbforum updates is already on this patch.
I know i can still patch my php-nuke7.8 but then when it comes to know which bbtonuke files i need then how do i found this out?
I am not upgrading right now i am just installing a brande new php-nuke 7.8.
So i installed the 7.8 on my webserver and everything was OK. After that i did install the patch 3.2b and also everything was OK. When i try to look inside the upgrades.php to know which version of bbtonuke was there i couldn't find.
So my question is should i get these upgrades from another package like you said or just the bbtonuke pakages?
Maybe because i am installing a full 7.8 and not upgrading i don;t need the upgrade.php file rihgt? If that so i just need to know if the version of bbnuke would be 0.17.
Another information is that i just run the analize.php and it shows that i am running bbtonuke 0.15 right now even after installing the patch.
by the way how do you know if a version of php-nuke is patched or not. In other words I knwo that if you look at the version inside nuke-config table you will find that the site is using 7.8 for instance but how you find out if this version has been patched or not?
Is there a place to look and is something you need to know?