Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DJ's "How To Install Modifications (Mods/Hacks)" for Beginners
Digital Jedi's Avatar
Digital Jedi
Join Date: Oct 2006
Posts: 5,171

I buttered my rolling stone, now I have to lie in it.

PopCulturalReferenceLand
Show Printable Version Email this Page Subscription
Digital Jedi Digital Jedi is offline 01-14-2009, 10:00 PM

This article is intended to help out new vBulletin owners who are just starting out modifying their forum, but are very new to vBulletin and new or alien to coding in general. This guide will cover the basics, and tell you the things you need to know before, during, and after "installing" something you see here on vBulletin.org.

Let's get a couple of terms out of the way first.

"Mod" or "Hack": By now you probably have guessed that mod is just short for modification, and you'll see it frequently used here and on other vB sites (not to be confused with the shortened form of moderator). The other term often used is hack, which is just another nickname for modification.

"Install": You'll also notice that above I put installing in quotation marks. The reason I did that is because not every modification actually installs anything. Some things are simple template edits, while some use the core features already built into vBulletin. We use the term "install" for all of these, even though technically your not installing anything, nor are you making any actual modifications to your board.


Disclaimers
All sites that offer third party plugins to existing software come with the warning that you use these products at your own risk. If you install a modification from here and it doesn't work, or your forum becomes unusable, who's fault is that? The coders? vBulletin.org? Or you? The answer to that question falls squarely on the individual who chose to install the modification to begin with. So proceed with caution and don't blame anyone but yourself if things go wrong. One important way to remain cautious is to do a backup of your database prior to installing your modification. This will ensure that you can restore your forum back to a state when it was fully functional. If you don't know how to do that, here are a couple of good tutorials:



Downloading Modifications
You may notice that an author has attached several different types of files to his/her modification thread. This could be a PHP file , an XML file , TXT files or a ZIP folder .

ZIP folders are the most common type of files attached to threads because they can contain file types that the forum ordinarily would not allow you to upload, but more importantly they're compressed, so an author can add lots of content in one file. In most cases, this is where your install instructions and other important documentation will be located along with whatever else the modification requires to run. You will need to download this file and extract the contents using some kind of decompression software. Your computer should already have this ability built in, but in the event it doesn't or you need a better manager, you can get an excellent free version from ZipGenius.


Install Instructions Can Have Different Steps
Now that we've got that out of the way, lets get to the reason why you called. Installing modifications is not as hard as it sounds, and coding skill is generally not required in most cases. Sometimes you may need to use a little common sense, and you should always follow your steps carefully and without distraction. The vast majority of problems that develop when installing modifications come from the user not following the directions carefully or completely. Then they want to blame the author if their forum looks funny afterwards, when all that's happened is they're missing a quotation mark, or they forgot to upload a file.

There is no one way to install modifications. They all work differently, and their application will invariable be different. However, if you were to take all the steps from every modification on vBulletin.org and break the steps down into their basic type, you'd only end up with six basic methods: Template Edits, File Edits, Upload Files, Import Product/Plugin, Use Core Content and Use External Content. Sometimes you'll have to do just one of these. Sometimes you'll have to do a combination of more. Highly unlikely you'd ever have to do all six, but I digress. Let's look at the steps you will no doubt be asked to do and address what they mean and what they accomplish.
  • Template Edits: This is probably one the most basic steps you'll find in a set of install instructions. For example, one of the steps in your instructions may tell you to open up your postbit_legacy template and put a line of code into it. TEMPLATES ARE NOT FILES. This is important, as this is something frequently mistaken by beginners. Templates are not the same thing as files uploaded to your server. Your templates are located in your Style Manager in your Admin CP. Templates control the look and feel of your forum and contain all the HTML code for each of your individual styles.

    To access your templates go to your Admin CP >> Styles & Templates >> Style Manager.



    Then, in whichever style you wish to edit, click the dropdown menu and choose Edit Templates.



    This will open a big long alphabetical list of templates where you can search for the one your install instructions want you to edit. Notice that you have the same long list of templates for each individual style you have on your forum. If you're installing a modification and you want the same functionality across all of your styles, you're going to have to make the edits to that template in every one of your styles. This is why most vBulletin owners try to keep the number of styles they own down to a minimum, as having to make edits across multiple styles can be very time consuming, especially if a modification requires you to edit multiple templates.

    Tip: Use the Search box to find lines of code in your template quickly.
    Tip: Templates can be reverted to their original default state by selecting the template in the listing and clicking the Revert button in the right hand control area.

  • File Edits: Technically speaking, anything you upload to your server is a file. But when modifications refer to "File Edits" it's usually referring to editing vBulletin core PHP files. Very few modifications will ask you to do this, as the results can sometimes be unpredictable. But in the event you want to give it a go, you'll want to be aware of a couple of things. You'll have to edit your file in a program that opens PHP files, such as Notepad. You can use more advanced editors like Dreamweaver, Microsoft Word, Front Page, etc, but be warned that these editors might make unwanted edits to your file without you even knowing.

    Tip: Use your editor's "Find" feature to find lines of code quickly. In most cases you can access it by hitting Ctrl + F.

  • Upload Files: You should already know what this is if you've done your vBulletin installation yourself. This is simply the process of adding files to your server through an FTP program. There's plenty of free FTP programs on the internet such as FileZilla or SmartFTP, or you may have one built into your HTML editor. Use whichever one works for you.

    You may notice that the files the mod author wants you to upload are in a series of subfolders. A big time-wasting mistake new administrators make is thinking that they have to upload each of these files one at a time. This is NOT necessary and often leads to mistakes. Files will always be structured with the same "file tree" structure that your forum has. So for example, your forum has two folders named admincp and includes. The mod you're installing also has files in folders named admincp and includes. You DO NOT have to take the files out of each folder and upload them to each folder individually. Grab both folders at the same time and overwrite them onto your existing server's folders. All your files will be added to the appropriate folders and even subfolders.

    Occasionally, you may notice the mod author has included all of his/her files in a folder called "forums". This is just for the convenience of vBulletin owners who happen to have their forum installed in a subfolder called forums (a common occurrence). That way they can just drag and drop all the content by moving one folder. This does not mean that you are supposed to add the forums folder if your site isn't configured that way. Just grab the content of the folder as described above. This would also be true if the folder is called "upload". You wouldn't move the whole upload folder, you'd move it's contents, again, in one swoop.

  • Import Product/Plugin: Importing a product or a plugin is the easiest of all installation procedures. All you have to do here is go to your Admin CP and import a .XML file through a special set of controls. However, a product and plugin import from two different locations in your Admin CP, so make sure you've read the instructions carefully to determine which is which.
    • To import a product, go to your Admin CP >> Plugins & Products >> Manage Products, then click the Add/Import Product that will appear at the bottom of the page.



      Then click the Browse button to look for your product XML. (If you're upgrading a product, and you've been instructed to tick Allow Overwrite to Yes, be sure to do so now.)



    • To import a plugin, go to your Admin CP >> Plugins & Products >> Download/Upload Plugins.



      Then at the bottom of the of the page, click the Browse button to look for your plugin XML.


  • Add Core Content: This is not a term you'll see much, if at all, but it's a term I use to describe a common modification that is not really a modification.

    For instance, you may see a mod instructing you to go to your Admin CP and add a new BBCode. Adding custom BBCode is not a modification to your forum, but a default feature that comes with your vBulletin installation. Most threads with BBCode "mods" take it for granted that you already know what it is, so they'll just list the fields your supposed to fill in inside your Admin CP. So in case your wondering, go to your Admin CP >> Custom BBCode >> Add New BBCode. Then just fill in the corresponding fields in the mod instructions. They may even provide an image for you to use which you'd upload to your server.

    Another mod might instruct you to create a custom field. Again, this is something your vBulletin installation can do by default, but you may need to edit a template or two if you want the content to show up someplace other then your user profile pages. To create a custom field go to your Admin CP >> User Profile Fields >> Add New User Profile Field, then follow the rest of the instructions for your modification.

  • Add External Content: Some modifications pull in external content, that is, content from another website or resource. An example of this might be Phoogle, which embeds Google Maps into your posts, or FaceBook Connect, which let's your users integrate their vBulletin account with their FaceBook account. In these cases, there's no standard thing you would have to do. Phoogle, for example, requires you go to Google and get an API key, while FaceBook Connect requires you to register on their site and use one of their developer applications. Since the instructions in this instance could be anything, always follow these steps closely. Very seldom are they overly complex, but very often it will require you to register somewhere (for free of course).
Uninstalling Modifications
In most cases, uninstalling a product is the same thing as installing a product, only in reverse. In your Product Manager, you'll find a list of installed modifications. Most of the time, uninstalling is as simple as clicking uninstall. Usually anything more complex than that will come with it's own set of uninstall instructions. Either way, check the documentation that came with the product. You would be surprised how many mistakes can be avoided just be re-reading the original thread information or reading "READ ME" files included in the ZIP file.

Common Terms and Phrases

Here are a few common instructions you may run into that you may not readily know what they mean.
  1. CHMOD 777: To CHMOD a folder, you must access that folder through your FTP program and change the permissions to 777. This is different depending on the program you use, but in most cases you can simply right click on the folder and click "Properties" or "File Attributes". This makes the folder readable, writable and executable, which is necessary for some modifications to work.

  2. Debug Mode: Debug mode enables aspects of your vBulletin that you wouldn't ordinarily have access to and should never be run on a live site for any extended period of time. To learn how to enable Debug Mode, refer to this article:


  3. Full Path: This is your server's path name starting with the root directory of your site. For example, the full path to your forum might be:

    /home/account_name/public_html/domain_name/forums.

    To find the full path name to a directory, copy the code below into a file, save it as a PHP file, upload it to the folder you want to find the path to and then navigate to it in your browser.
    PHP Code:
    <?php
    echo getcwd();
    ?>

  4. Relative Path: This is simply the location of any file and folder, relative to another directory on your site. For example, you have a subfolder in your admincp folder called xml. The relative path from one level above your admincp folder is admincp/xml

  5. Root: The root is the topmost directory in a hierarchy. So your Site Root would be the uppermost directory on your server, whereas your Forum Root would be the directory where your vBulletin would be installed. For many people, the two are one and the same.

  6. Invalid or Validate: Every so often, it might be suggested to you that the code on a given page is invalid, and that this may be part of the problem you're having. In a nutshell, validated code is code that meets universal standards, so that every different type of browser displays the code on your page the same way. What looked perfectly normal in Internet Explorer may look horrendous in Firefox or Opera or Chrome. A universal standard for code ensures that all browsers will display your website they way you want it to look. A single error in your code structure can cause any number of problems that might not be obvious at first, and most inexperienced web owners can have hundreds of errors on one page. To check a given page on your website, W3C provides a Markup Validation Service that you can use to check your pages using the URI (the link to your page), file upload or directly copy and pasting in your source code.


I Need HELP???!!!111?!! (Forum Etiquette 101)
Believe it or not, there are some things you need to do if you want to get help with a certain modification.

First and foremost, you should check to see if your question hasn't already been asked, possibly many times before. No, you don't have to search the whole forum, nor do you have to read every post in a 120 page thread. Use the Search this Mod feature in the top right corner of every modification thread. Remember that you can use quotation marks " " to search for phrases that have words that fall under the allowed character limit.



When that fails, your best bet on getting help will be from the original thread where you downloaded the mod. It doesn't matter that the thread is 3 years old, starting a new thread about a mod that already has one will just result in you being redirected back to the original.

Also, REMEMBER TO MARK AS INSTALLED. Why? Because a great many mod authors will not give support to people who have not marked a thread as installed, or will list them as low priority. Plus, clicking that little box will help you in the long run, as you will be notified of important updates and bug fixes to the modification.



Keep in mind that just because a thread is marked "Supported" doesn't mean that the author is going to get back to you in a timely manner. The author could be on vacation, working, sick, dealing with the loss of a loved one or a host of other possibilities. Also keep in mind that no one gets paid for their work here. All mods here are submitted for free and are developed in the author's spare time. So showing the same indignant attitude that you would for, say, a paid product, is not likely to get you a lot of help, as the danger of loosing your buisness is kind of a moot point.

Sometimes, not often, but sometimes, no one knows the answer to your question. It's unfortunate, and we all do our best to keep that from happening. But when it does, repeatedly bumping the thread with the same question over and over again is not going to help. Now, if quite a bit of time has passed and you notice that other's have been getting support in the interim, then give the thread a friendly bump. But keep in mind that no response is often tantamount to "I don't know", and not "I don't care".

Remember the old saying that you'll catch more flies with honey then you will with vinegar? Keep that in mind, because no one here at vB.org gets paid for their efforts and they are helping just because they can. That means they can choose to NOT help you just because they can. So don't give them any more reason not to, then they already have. Be patient, use common sense, check and double check your work carefully and be courteous when seeking help, and your experience on this site will be productive, enjoyable and you'll likely be able to work out any problems you may encounter.
Reply With Quote
  #12  
Old 03-08-2010, 02:46 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm afraid I've used up my character count for this article.
Reply With Quote
  #13  
Old 04-28-2010, 05:52 PM
ckelley's Avatar
ckelley ckelley is offline
 
Join Date: Apr 2010
Location: Galax, Virginia
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you soooooooo much!!! I am a vBulletin newbie and this helped a GREAT Deal!
Reply With Quote
  #14  
Old 10-04-2010, 07:36 PM
RiskyBusin3ss RiskyBusin3ss is offline
 
Join Date: Sep 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
I am a newb, please help. What do they mean when they say;
"create a template HTML Code:"
and then
"Create a plugin at the hook process_templates_complete
PHP Code:"
Reply With Quote
  #15  
Old 12-20-2010, 04:25 AM
SEW810's Avatar
SEW810 SEW810 is offline
 
Join Date: Mar 2008
Location: M?xico City
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RiskyBusin3ss View Post
Hello,
I am a newb, please help. What do they mean when they say;
"create a template HTML Code:"
and then
"Create a plugin at the hook process_templates_complete
PHP Code:"
That means that you need to ADD a new template to your on-use Style (skin)

How do you do that?.

Goto AdminControl Panel ->Styles and Templates->Style Manager
Identify your on-use style, open drop down menu and select ADD NEW TEMPLATE,after that just clic on GO button.



Now write a title for your template and copy+paste the code on the big text area.






That's a rap !!!... Save changes and test your hack/mod
Reply With Quote
  #16  
Old 12-20-2010, 04:56 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RiskyBusin3ss View Post
Hello,
I am a newb, please help. What do they mean when they say;
"create a template HTML Code:"
Right, for that first part, you just create a new template in the Style Manager.

Quote:
and then
"Create a plugin at the hook process_templates_complete
PHP Code:"
But for this part, that's a bit more advanced. You need to know a little PHP coding. You create a plugin in the same place you would ordinarily upload a plugin. Do a search in the Articles section for "plugin" or "plugins" and you'll find some good articles explaining what the hooks mean and why you use them.
Reply With Quote
  #17  
Old 12-28-2010, 02:37 PM
ilove2rock ilove2rock is offline
 
Join Date: Dec 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We have just moved to a new server and everything is up and running! The only thing that isnt working are the mods we had running on the old server. None of the Mods work... Everything looks the same, the mods are showing up in the Admin CP and I just cant figure out why this should be! Anyone have any ideas?

Thanks in advance!
Reply With Quote
  #18  
Old 12-28-2010, 10:53 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ilove2rock View Post
We have just moved to a new server and everything is up and running! The only thing that isnt working are the mods we had running on the old server. None of the Mods work... Everything looks the same, the mods are showing up in the Admin CP and I just cant figure out why this should be! Anyone have any ideas?

Thanks in advance!
That probably something you should ask in the vB3 section, as it's related to migration and not fresh installation of modifications.
Reply With Quote
  #19  
Old 12-29-2010, 04:28 AM
ilove2rock ilove2rock is offline
 
Join Date: Dec 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay thank you very much!
Reply With Quote
  #20  
Old 06-26-2011, 11:16 AM
navidmoj navidmoj is offline
 
Join Date: May 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to change hacks setting I should go to Go to admin cp, then vBulletin Options -> specific hack setting
right?
sorry for noob question, vb option means right column in admin cp, right?
I can't find hacks link in there
please help me
Reply With Quote
  #21  
Old 09-07-2011, 04:51 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by navidmoj View Post
to change hacks setting I should go to Go to admin cp, then vBulletin Options -> specific hack setting
right?
sorry for noob question, vb option means right column in admin cp, right?
I can't find hacks link in there
please help me
I don't know if you got your question answered already, since your post was in June, but vBulletin Options is a menu located in the right column. And yes, sometimes modification settings are located there, and sometimes they have their own separate menu in the right hand column. Occasionally, the controls will be on an entirely different page and not in your Admin CP. This is all dependent on what the author of the modification wanted. Generally, simple modifications will only have a handful of settings, and only require the installation step of importing an XML file, will have just vB Options settings.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06074 seconds
  • Memory Usage 2,355KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete