Hacking a vBulletin Board

an article added by: Linda Gould at 05312007


In: Root » Internet and online » Forums » Hacking a vBulletin Board

French Spanish Portuguese Italian German Japanese Chinese Korean Russian Arabic

Hacks

So far we've talked about making modifications to a vBulletin installation, and we've looked at four different ways to modify the installation. So far we've called the changes 'modifications', but the term that you are more likely to see used on the web is 'hacks'. Whenever a board is modified, it is said to be hacked (not to be confused with 'hacked' as in the security being compromised by a hacker), and modifications are known as hacks as in "hacks to a board". Basically, any change that alters the underlying code of the forum is looked upon as a hack. Changing the CSS and style settings through the interface is not generally thought of as a hack because these are expected and they don't change the underlying functionality of the board. However, making changes to the templates and the PHP code is definitely considered to be hacking the board. Making changes to the phrases that control the board is considered by many to be hacking too, though some just look at this as part of the customization process, similar to changing the stylesheet.
A hack can be one change or a hack can be many changes. So far we've looked at some very simple hacks, but in later articles we'll go much deeper. However, before we do that, let's look at the pros and cons of hacking a board.
Pros and Cons of Hacking a vBulletin Board

As with everything in life, there are pros and cons when it comes to hacking a vBulletin board. When you are considering a hack, you have to decide whether or not it is worth the potential downsides. There are a number of pros to carrying out hacks on your vBulletin installation.

Below are a few positive points to consider:

• Hacking the board can make your board unique and different from other installations, and enable you to personalize your discussion board.

• Hacking can add much-needed functionality.

Hacking can also remove unwanted functionality. There are, in fact, more cons to hacking than pros. However, you have to balance things out a hack that adds a spellchecker or allows you to display advertisements in the forum is quite a powerful pro point. Against these pros you balance out the cons.

Typical cons include:

  • • Hacks can take time to install this can mean downtime for your members.

• Hacking the code can damage the forum and cause downtime if things go wrong.

• Support for hacked boards can be limited to reinstallation of the software.

• A hacked board is harder to upgrade than a board left in a standard state.

As a forum administrator, you must balance out these cons against the benefits. However, if you take care when carrying out a hack (by, for example, documenting your changes and ensuring you have a recent forum backup in case things go wrong), you should be fine.
Finding a Hack
So, where does the typical forum administrator find hacks? There are a few options:

• You can develop your own hacks. This is an option for the experienced administrator and for people who have been working with vBulletin for some time, but it is not recommended for a beginner with no experience of PHP and MySQL.

• You can download hacks. There are a number of forums and websites dedicated to vBulletin hacks. The most popular is http://www.vbulletin.org. A search here will generally yield a number of hacks.

• You can get a hack made. On many of the vBulletin forums (including http://www.vbulletin.org), you can ask for a hack to be made. This might not be cheap, and you might have to be specific about what you want, but this is another option open to vBulletin administrators.

Installing a Hack
Once you have found a hack, you have to install it. However, there's no one single way to install a hack. In fact, there is almost as many ways of installing a hack as there are hacks!
Generally a hack consists of code and installation instructions. Instructions are generally quite clear and straight forward following the following format:

1. Open file xyz.php.

2. At line xx add the following code: …

3. Save the file and upload.

4. Open up template yyy.

5. Find the following code: …

6. Add the following code: …

7. Save the template.

These instructions are usually detailed, but it is recommended that you work through the instructions before making any actual changes to the files this way, if there are any ambiguities in the instructions, you have a chance of spotting them first.

Be on the lookout for problems. If the instructions ask you to find some particular code or highlight a line of code that you cannot find, then first make sure that you are looking in the correct file. If you still cannot find the code, then there may be a problem somewhere. For example, you might have already made changes to that file, or perhaps a later version of vBulletin has removed the line referenced in the instructions. Either way, don't make guesses at where the code should go, as this could be disastrous. Check for an updated version of the hack, or get in touch with the author of the hack. (If you found the hack on a forum, this should be easy.) Installing a hack is easier if it contains an install script you just upload the files to the appropriate location on the server (usually specified in the instructions) and then run the install script, which will make all the changes for you. When done, you normally delete the installation file to prevent it being rerun by some other, unauthorized person.
Don't be lulled into a false sense of security by a hack that has an installation script things can nonetheless go wrong, so make sure that you have an up-to-date backup of the forum and of the database just in case things don't go according to plan.
After installation, test the hack thoroughly. Since each hack is different, it's impossible to offer detailed advice on how to do this, but if you've installed a spellchecker, then test that it works; if you've installed a hack that makes moderating easier, then test this. Work methodically, and be on the lookout for problems. Don't tolerate error messages if you see any, find out what the problem is. Don't ignore them they will only get worse!
Backing Up a Hack
There are two levels of backup for hacks.

1. First, if it's a hack you have installed on your forum, keep a copy of the hack and the installation instructions in case you ever need to install it again. It's always recommended that you check for an updated version of the hack if you have to reinstall it, but there are always a few that you end up not being able to find again.

2. Back up the whole forum using FTP, and keep a copy of the database. This way, you have a copy of the installed hack, and if anything goes wrong with your forum, it should take you only minutes or hours to recover from (depending on the size of your forum and database, and the speed of your Internet connection).

Commercial Hacks
So far, I've just mentioned free hacks or hacks specially created for someone. There are also a number of commercial hacks available. Sometimes it may be disputed whether they are hacks at all, but if they integrate into a vBulletin installation and add features, then they are hacks, albeit generally bigger and packing much more functionality.

Support
Another element to commercial hacks is support when you buy software, you normally get support, and this can be very useful indeed. You can generally get good support all the way from installation to troubleshooting.

There are a number of commercial hacks available for vBulletin far too many to list them all here. However, here are a few of the more popular ones:

• PhotoPost PHP Pro http://www.photopost.com photo gallery software

• PhotoPost Classifieds http://www.photopost.com/class classified advertisement system

• ReviewPost PHP Pro http://www.reviewpost.com product review software

• vbAdvanced http://www.vbadvanced.com content management system (The main content management system software is free, but there are commercial add-ons available.)

• VirtuaNews http://www.virtuanews.com website creation tool (This integrates with vBulletin.)

Treat commercial hacks in the same way as free hacks:

• Always make a backup of the forum and database before installation.

• Always keep an unedited copy of all the files you update.

• Do a dry run before the actual installation to make sure that the instructions are clear and unambiguous before you begin.

• Test the hack thoroughly after installation.

• Keep a backup of the hack.

For more details on commercial hacks for vBulletin, visit the official vBulletin site (http://www.vbulletin.com).
Summary
This article has been all about making modifications and customizations to your vBulletin installation. We've tried to cover a broad range of modifications in this article, from simply changing a few stylesheet settings to making modifications to the vBulletin templates and PHP files.
The purpose of this article is to show you what's possible no one is saying you must hack your board, and there are many good communities out there that are running on boards that have minimal customizations. However, many administrators do feel that their boards need a certain level of customization and modification.
If you're just starting to set up a vBulletin board, then you probably feel that you have enough to do right now, but over time, as you get everything in place and you have more time on your hands, you will find your mind wandering to changes that would be useful. This is when you can really start to put what you've learned in this article to good use!

legal disclaimer

Our website is not responsible for the information contained by this article. Web-articles is a free articles resource.
Suggestion: If you need fresh, daily updated content for your website, feel free to use our service. Click here for more information.

related articles

1. The vBulletin Control Panel
The vBulletin Control Panel Now that you have come this far, you are probably eager to access the Control Panel and get started. Click on the link on the Step 13 page to access the Control Panel. (You will need to have deleted the install/install.php file before being able to continue.) After clicking on the link you will then need to enter the username and password you assigned to the administrator during the installation of vBulletin. Once you log into the Control P...

2. Importing Data into vBulletin
If you are moving to vBulletin from another type of discussion board, then there is a good chance that you won't want to lose all the posts that you already have and start again with nothing. And it's not just the posts that are important what about all your member information usernames, passwords, profile data? You don't want to lose all that and start with aIn the right-hand pane you get information about the version notice how we are being told that there is a newer version of vBulletin available. That's a really handy feature, and...

3. The vBulletin User Experience
A Tour of vBulletin In the previous article we looked at the vBulletin installation process. This process involved downloading the installation files, making edits to the configuration files, creating or preparing a database for vBulletin, uploading the installation files, and finally going through the vBulletin installation wizard. We also looked at how to import posts and settings from another discussion board into vBulletin. Now that you have a working vBulletin board, the next thing that you need to do is famili...

4. Customizing Your vBulletin Board
  Customizing Your vBulletin Board Most of the best discussion boards on the Web have been customized in one way or another. Some have only basic customizations to give the place a specific look and feel, while others have been heavily modified and customized to look, feel, and work exactly how the owners want them to. At this stage you probably want something in the middle you want a certain level of customization but don't want to take on too much too soon, right? That's fine the g...

5. vBulletin templates
Template Modifications So far we've looked at how to modify CSS stylesheet information, which controls how vBulletin looks, and the phrases, which control the text. Both of these modifications allow you to radically change how your vBulletin board looks and feels. Template modifications allow you to do a lot more and to make much more radical changes to your vBulletin installation. In fact, templates control nearly every aspect of a vBulletin board. Each page that the end user sees is the result of one or mo...

6. Administering Your Forum
Administering Your Forum There's a lot to do as a forum administrator. It's not just about participating in the discussions, facilitating new discussion, and making the tough decisions as to who should be moderated or banned. There's a lot to do behind the scenes the day-to-day care of the forum as well as routine maintenance. You will also run into problems from time to time, and then you will need to carry out emergency repairs to get your forum going again. This article is about the most common tasks an adminis...

7. vBulletin database maintenance
Maintaining the Database Without the data, your community is gone. Not only will you lose all the forums that have been set up (along with any customizations and changes you made), but you will also lose all the people. By this, I mean you will lose all the members lose the database and their accounts. Usernames, passwords, everything will be lost. Running a forum without taking care of the database is asking for trouble. Not only might you run into problems and difficulties when you make a change ...

8. Smilies and avatars in vBulletin
Smilies Because a forum relies on text-based communication, anything that helps someone get their message across is a good thing. That's where smilies come in. They are little graphics that have a variety of faces displaying different emotions. Smilies are controlled through the control panel. If you click on Smilies in the left-hand menu, then three options will be made available. Clicking on SmilieManager will take you to a window where you can edit...

9. Upgrading vBulletin
Upgrading vBulletin Nothing stays the same. Life is a constantly moving forward, and software moves forward faster than most things. vBulletin is constantly changing as new versions are released. Sometimes these are big changes (such as from version 2 to version 3), and other times they are just bug fixes and security updates (such as 3.5.2 to 3.5.4). The updates to vBulletin generally contain security fixes rather than cosmetic tweaks, so it is important to install them in a timely fashion so as to elimin...

10. Changing the Look of vBulletin
Changing the Look of vBulletin In this article we're going to examine ways to change how your vBulletin installation looks to the outside world. The sky's pretty much the limit with what you can do with vBulletin, and there's no point going through the process of building a custom style here, because what you will want to do will be different to what we will do. So, instead, we'll offer you some hints, tips, and insights into style manipulation and creation for vBulletin. In this article we w...