Upgrading from YaBB 2.x
If you are upgrading your existing YaBB 2 installation, there are a few simple steps that need to be taken in order to correctly complete the process. Before you begin, however, make sure you have a full backup of your working YaBB. It is also advisable to inform your users that you will be upgrading before you begin.
As soon as you are ready, place your existing forum into maintenance mode. In YaBB 2.1 go into your Admin Center under the section titled "Forum Configuration", click the link "Forum Settings". There you will see a checkbox with the label "Maintenance Mode". Check this box and save the change. In YaBB 2.2.x, once in Admin Center, scroll down the left side Menu, click on "Maintenance Settings", check "Maintenance Mode?" and save the change.
Upgrading
- You will need to install a completely new version of YaBB 2.5.2 forum first!
- Go to the Installation section of this Quick Guide and follow all steps up through "Step 4 - Setting Up", including point 5 (which has you run the Setup program on the new forum). Then return here to the next step below.
- Your NEW forum is already in Maintenance Mode now, leave it that way while you complete the following steps.
- Be sure your OLD forum is in Maintenance Mode too.
Versions 2.2 and later are described above, versions 2.1 and earlier, the Maintenance Mode setting is at the top of the Forum Configuration/Forum Settings page. - Using your FTP program or File Manager, copy the following files from your OLD forum into the same folders in your NEW forum:
- cgi-bin/yabb2/Boards/* (all files)
- cgi-bin/yabb2/Members/* (all files)
- cgi-bin/yabb2/Messages/* (all files)
- public_html/yabbfiles/Attachments/* (all files)
- public_html/yabbfiles/avatars/UserAvatars/* (all files)
Note:
If your forum is very large it may take a long time to copy all the files from the five folders above. In this case it may be easier to just move the old folders from your old forum to the new forum. To do that, first verify your old forum's three cgi-bin folders each contain a .htaccess file and a default.html or index.html file and that 'public_html/yabbfiles/Attachments/' contains either a default.html or an index.html file. If not, copy these files from your new forum's folders into the old forum's folders, then delete the five folders in your new forum and move the old folders to the new forum. - cgi-bin/yabb2/Variables/* all files EXCEPT the following files:
- Menu0.def, Menu1.def, Menu2.def
- *.helporder (all files with this extension. Note: Your version may not contain these files.)
- advsettings.txt
- secsettings.txt
- Settings.pl
Now copy the following files to a separate folder and rename them as it is shown here:- advsettings.txt => upgrade_advsettings.txt
- secsettings.txt => upgrade_secsettings.txt
- Settings.pl => upgrade_Settings.pl
- If you have any special template files, you may wish to upload those files also, but they will need some modification before they will work properly with YaBB 2.5.2.
Note:
If you plan on keeping your old YaBB 2.x Templates and CSS settings, do not copy over the new template files with older templates of the same file name or you will not get what you expect. These files have changed, so you will either have to modify the new template/css files that come with YaBB 2.5.2, or follow the procedures in the link below to update your existing template files before overwriting the YaBB 2.5.2 template/css files.
We recommend you create a new folder in your new forum: cgi-bin/yabb2/Templates/new_folder_name/ and put your old template files (html) in it. Now rename the .html file to new_folder_name.html. Rename also your old CSS file to new_folder_name.css and put it in the public_html/yabbfiles/Templates/Forum/ directory. Repeat this for each of your existing custom templates in your old forum. Note that the CSS files may contain links to graphics that are now in a renamed folder. Change those links to point to the new_folder_name.
Template and CSS Comparisons from earlier versions of YaBB. One more edit: in your old css files you will need to add one additional class tag for the anti-spam Honeypot. Add:
".green {
display:none;
}"
to every template/css file. If you have a preexisting class with that name, it will need to be renamed. Custom 2.5AE Templates should need no editing aside from adding the ".green" class to the template/css files.
- Open FixFile.pl inside a text editor and change the path to Perl to match your server's requirements. Then point your browser to FixFile.pl (ie. http://www.example.com/cgi-bin/yabb2/FixFile.pl) and run the FixFile utility. This will update the file structure for your YaBB 2 data. If not, skip to step 9.
- As soon as FixFile.pl has finished, delete that file so it cannot be run again.
- Now verify CHMODs for all your imported files.
- Log in your new forum as Administrator with the Admin username and password you used in your old forum and go directly to the "Admin Center" => "Forum Settings".
Note: doing ANY upgrade, it is very important to change the install date in the Admin Center > Forum Settings to a date and time "before" the older forums oldest member registration. If not done, Search will not function and the possibility of causing ex-members being generated. Save this page once with the Button at the bottom. - Then go to "Admin Center" => "Maintenance Controls" and run the "Rebuild Notifications Files" first!
Now run the other Maintenance Controls starting with "Rebuild Message Index" going through "Rebuild Members History."