Back to vBulletin 3 Articles

Quickly upgrade your hacked vBulletin 3 without compare programs
by Brad 05 Jul 2004

I love compare programs, but let’s face it, they can and will miss changes or the core changes so much that they do not become much help at all. Now I'm not knocking compare programs, if you use them that is fine. However I've learned not to trust them for vital upgrades.

In this thread I'm going to show you how to quickly upgrade a board with hacks, with nothing more then a text editor and about an hour of your time.

Before you hack:

Before you begin hacking your board you should always keep in mind that jelsoft will, at some time, release an updated version of vBulletin.
This means at some point you are going to be stuck in a dilemma, which is, do you re-hack the entire source or do you stay with your current version?

Most people choose the latter option, and eventually end up running and insecure copy of the software.

For these reasons it is always important to document all changes you have made, with reference text file.

Keeping good reference:

Having good references will make upgrading an easy task for you. Open any text editor and make a new file named 'vb_upgradekit.txt' and store it in a safe place.

Whenever you install a hack make sure to update this file, include what code you had to find in the stock source, what file it was in, and what code you replaced/placed above or below the stock cod.

Here is an example of a well kept vb_upgradekit.txt file:

PHP Code:
// ################## In file /includes/functions.php ##############

// ## Find: 

$foo

// ## below that add:

while($foo >= $bar)
{
    echo 
$foo;
}

######## End changes for /includes/functions.php ############### 
By documenting your php changes in this way, you can upgrade the .php files of your board quickly because you only have one file to look at. Basically it will feel as you are just installing one large hack.

Very important note: do not include SQL queries from hacks in your upgradkit.txt file, the database should not be affected by upgrades. Re-running SQL queries including in hack installations can damage your board or cause loss of data

The upgrade process:

1: Download the latest package from the member’s area and extract it to a folder on your local machine.

2: Open your vb_upgradekit.txt file and apply the necessary modifications to the .php files

3: Back-up your database and close your boards

3: Upload the vBulletin package to your server with modified .php files

4: Point your browser to http://www.mysiteurl.com/forum/install/upgrade.php and follow the on-screen instructions

5: Insure that the board still functions correctly

6: If there seem to be no errors re-open the boards

That’s it

vblts.ru supports vBulletin®, 2022-2024