vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   DJ's "How To Install Modifications (Mods/Hacks)" for Beginners (https://vborg.vbsupport.ru/showthread.php?t=201864)

Digital Jedi 01-14-2009 10:00 PM

DJ's "How To Install Modifications (Mods/Hacks)" for Beginners
 
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 https://vborg.vbsupport.ru/external/2009/01/37.gif, an XML file https://vborg.vbsupport.ru/external/2012/01/5.gif, TXT files https://vborg.vbsupport.ru/external/2009/01/38.gif or a ZIP folder https://vborg.vbsupport.ru/external/2010/10/8.gif.

ZIP folders https://vborg.vbsupport.ru/external/2010/10/8.gif 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.

    https://vborg.vbsupport.ru/external/2014/04/2.gif

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

    https://vborg.vbsupport.ru/external/2014/04/3.gif

    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.
  • 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.

https://vborg.vbsupport.ru/external/2014/04/9.gif

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.

https://vborg.vbsupport.ru/external/2014/04/10.gif

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.

Trip 01-15-2009 07:45 PM

Fantastic! Great, well written article. A lot of people will find this most useful.
Thank you for taking the time to put it together.
I do have one question though...it's concerning the removal of a mod that made changes to the database. Some authors include a executable removal file. However, some do not. In most cases is it ok or common practice to un-install the product, remove the files and leave the db as is?

Digital Jedi 01-15-2009 10:29 PM

Quote:

Originally Posted by Trip (Post 1713792)
Fantastic! Great, well written article. A lot of people will find this most useful.
Thank you for taking the time to put it together.
I do have one question though...it's concerning the removal of a mod that made changes to the database. Some authors include a executable removal file. However, some do not. In most cases is it ok or common practice to un-install the product, remove the files and leave the db as is?

These days, I believe most modifications will undo any database changes upon uninstall, and the ones that don't will explicitly tell you what database tables to drop after you uninstall them. Living Avatars , for example, gives you step by step directions on what to remove and how to remove them.

But in the event the explanations are not that explicit, your best bet is to check with the developer or other people in the modification thread. In most cases, the tables will probably be sitting there doing nothing and doing no harm and dropping them is as simple as logging into phpMyAdmin and removing them. But since databases are extremely delicate, you should make absolutely sure of what your doing before you do it. And that means checking within the modification thread as thoroughly as possible, and doing your research before proceeding.

TheLastSuperman 01-19-2009 09:12 PM

Very nice DJ!!! This will help so many w/ the basics and very well done!

GlamRockTalk 01-31-2009 10:44 AM

DJ, what a great article! Where was this when I started out a few months ago?! ;)

Thanks again for all of the contributions that you make to this community and for helping others as you always do! :up:

GSeybold 02-01-2009 02:56 AM

THANKS SO MUCH FOR THIS DIG! IT IS VERY MUCH APPRECIATED!m I printed it for reference :)

Gabby

jhei21 03-27-2009 12:21 AM

Thanks for this. I was at sea without it.

Digital Jedi 08-24-2009 05:57 PM

Updated the article to include Markup Validation to Common Terms and Phrases.

Digital Jedi 03-07-2010 09:24 PM

Updated the article to include a little bit about uninstalling. Sadly, I ran out of character count so I could include more.

sulasno 03-07-2010 09:59 PM

thanks for the great article;

including tips on how to upgrade would be great

Digital Jedi 03-08-2010 02:46 AM

I'm afraid I've used up my character count for this article.

ckelley 04-28-2010 05:52 PM

Thank you soooooooo much!!! I am a vBulletin newbie and this helped a GREAT Deal!

RiskyBusin3ss 10-04-2010 07:36 PM

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:"

SEW810 12-20-2010 04:25 AM

Quote:

Originally Posted by RiskyBusin3ss (Post 2106773)
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.
http://www.seusers.com/vbulletinrepo...template_1.jpg


Now write a title for your template and copy+paste the code on the big text area.
http://www.seusers.com/vbulletinrepo...template_2.jpg





That's a rap !!!... Save changes and test your hack/mod

Digital Jedi 12-20-2010 04:56 AM

Quote:

Originally Posted by RiskyBusin3ss (Post 2106773)
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.

ilove2rock 12-28-2010 02:37 PM

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!

Digital Jedi 12-28-2010 10:53 PM

Quote:

Originally Posted by ilove2rock (Post 2140142)
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.

ilove2rock 12-29-2010 04:28 AM

Okay thank you very much!

navidmoj 06-26-2011 11:16 AM

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

Digital Jedi 09-07-2011 04:51 AM

Quote:

Originally Posted by navidmoj (Post 2212970)
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.


All times are GMT. The time now is 07:29 PM.

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.01757 seconds
  • Memory Usage 1,862KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete