PHP Bulletin Board Home
News About Home
Features of phpBB Test drive phpBB Downloads Support for phpBB The phpBB Community Styles for customising phpBB 3rd party modifications to phpBB

Support Home | Knowledge Base Home | Submit Article | Search Articles | Browse Articles
 Search Engine Optimisation for phpBB 
Description: Details in some depth how to optimize your phpBB installation for submission to search engines.
Author: Lord_B
Date: Tue Dec 30, 2003 11:01 pm
Type: Tutorial
Keywords: meta,tag,edit,SEO,google,search,engine,optimisation,index,submission,listed
Category: Improvements
Introduction

First of all, I would like to thank everyone behind phpBB, for a superb effort, and a wonderful product, all for the price of nothing. I would also like to thank the "End" key, it is an invaluable tool.

I suppose this is my little contribution to the heaving community at phpBB.com, and an answer to a question that I had, but couldn't find the answer to. My original question was "How do you edit the Meta Tags in phpBB?" I soon worked out how to myself, but that got me thinking.
I'm sure there are lots of you out there who have forums, but don't get the number of hits you would like, which inspired me to write this small novel.

Welcome to the world of Search Engine Optimisation, which is commonly referred to (and will in this article) as SEO. What this term basically means is the preparation of a web site to achieve the best possible ranking in a search engine. There are many steps to follow, but it shouldn't really take you much time using phpBB.

I suppose the main search engine you want to get a high ranking on is Google, but at the time of writing (January 2004) Google is currently on the decline due to a sharp change in the "Google Dance" (all will be explained).

Well as far as brief introductions go, this introduction is not as brief as intended, but that is the nature of my intellect (leave it Razz ), so allow me to wrap things up so we can get started. All I want to say now, is that SEO is a bit of an art form. It takes a lot of consideration, careful thought and preparation, however, it is not difficult.

The skills you learn in this short tutorial can be adapted to be used on any web site you might build, although this guide will explain what to do when using phpBB 2.0.6.



Helpful Stuff

A free tool to create the robots.txt file for you.

A tutorial on the phpBB.com knowledge base that explains how to optimise the session IDs that phpBB uses for GoogleBot.



The Words

I'm going to be using a few technical words, and it is likely you will already know the meaning of most of them. For the benefit of those who don't, here is the list with meanings.

Keyword - A word that a potential visitor will use to find your web site. When you run a search using a search engine, you type the keywords into the search bar.

Meta Tag - A HTML tag that has many uses. There are two elements to the Meta Tag the "name" and "content." The only Meta Tags that will be covered in this article are the "keywords," "description," and the "robots" tags.

Crawler/spider - The software that search engines use to move through all of the links that are submitted to them, which will read the code of your page and index it. All of the information about your site that the search engine receives is through the web crawlers and spiders.

Index - A dual meaning here, index can mean the first page in a directory that a browser will automatically open unless instructed. It can also mean that a page has been added to the database of a search engine, by being indexed, a page has been added to the directory.



The Principles

The basic principle of SEO is to get the highest ranking possible in search engines. You have to decide on keywords for your site, and then emphasize these within the file. There are tactics that can be used to bring hits in an evil fashion, by tricking search engines, and using
keywords that have absolutely no relevance. I don't support this, as it's totally pointless, especially when planning to do this with your forum (you won't succeed in tricking a decent search engine with phpBB anyway, so ha).

It's a ridiculous thing to do because;

A. It's annoying when I run a search, click the top link and get taken to somewhere that has nothing to do with the search terms.

B. It defeats the object of the search engine. People use them to find web sites on a particular topic. In theory it should work very nicely, but these terrible people keep trying to trick the search engine.

C. From your point of view, what's the point? Ok, you bring in 100,000,000 illegitimate hits every month, but I guarantee that none of them will register on your forum if it has nothing to do with what they searched for. They will just hammer the back button, tutting in a disgusted manner. So then you are wasting thousands on data transfer/ bandwidth, for absolutely n-o-t-h-i-n-g. That's why we don't do it.

Anyhow, let's create an example to better explain the principles of SEO, from the perspective of a webmaster trying to promote their phpBB forum.

Example:

You are a milk enthusiast, and run a forum named... er... "MilkZone." Yeah, that's a good name. Anyhow, you have two members, you and your milkman. You want more members, but have to reach out to the world to attract the limited number of milk fans across the globe.

So the themes of your web site will be milk, and milk related products like cheese.

Now let's say I am using Google, and I want to find a milk forum, to discuss the future of milk, the theft of milk money etc. On Google, I'm going to type in "Milk Forum."

You have to target what you think the user will search for on an engine. These will become your keywords. So we have already identified two, "Milk" and "Forum." You will need more, using up to 800 characters. I've never been able to use that many without running into obscure words
that aren't really related to the site, which we want to avoid, so if you can't use 800 then don't worry, just don't use more than 800.

Other words might include "Cheese," "Pasteurised," and "Cow." Also, try words like "discussion," "people," "chat," "board," "message" etc.

Once you have decided on the keywords for your web site, you can get started. Now you have to attempt to get these keywords into the text of your forum as much as possible, without making it noticeable to your existing users. Don't start topics just for the hell of it, you need to shrewdly name your forum, boards, etc. The index page is crucial, that takes some work. The rest should fall into place, especially on phpBB.

Hopefully you now understand what the diddle this article is about, so let's get started.



Naming your Forum

In the beginning there was nothing, and then there was something. A shiny new installation of phpBB. Or perhaps an existing version. Whether you are starting out fresh, or are an existing user, you should consider the name of your forum. Make sure it contains at least one keyword. So the name MilkZone is fine for a milk fan site, but it is not appropriate for
a money box related web site. That should be called something like "The Money Box," only with a better name.

If you have already named your forum, then you can change it's name, but as long as it is related to the theme of the site then you should be fine. It's a very easy process, which would explain the disappointing length of this section. Onwards.



Choosing your keywords

This will be another short section, mainly because I've already outlined how to do this. Just sit down with a piece of paper/ hunk of text editor, and jot down as many keywords as you can think of, relating to the theme of the site, and words relating to "Forum" and "Discussion." When the keywords start to get obscure, stop. Give somebody else your piece of paper, and ask them to add any words they think would be useful. When they start pausing, and saying "Ohhhh, hmmmmm, I dunno... How about... no, no... no" then stop them, say thanks and feel content that you have every word covered. If you feel unsatisfied with your array of keywords, then try using a thesaurus. Just stick to below 800 characters, just don't start choosing stupid, obscure or unrelated words and you'll be fine.



Defining the Meta Tags

Now you need to edit one of the files in your phpBB directory.

Open:

root/templates/subSilver/overall_header.tpl

Open the file in a text editor, and take a ganders at the top of the code. Find the part that reads
Code:
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">


Directly underneath that code, copy and paste the following;

Code:
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="robots" content="index,follow">


Now you need to fill in the gap in the content element of the keywords Meta Tag. So for our MilkZone forum the code may read:

Code:
<meta name="keywords" content="milk skimmed semi semi-skimmed cheese yoghurt">


Obviously you will need more keywords than that, but you get the idea. Notice how every keyword is separated by a gap. It is important to follow that syntax, despite the fact thatmany people separate keywords with commas. However, by separating with spaces, this allows the search engine to rearrange the keywords into any combination that the user types in.

Next, you need to fill in the content element of the description Meta Tag. The description is what it says, a description of the site. Make it quick, 150 characters max. The description for MilkZone might be:

Code:
<meta name="description" content="The premier place for milk lovers to converse">


The description won't affect your ranking, it is just a short paragraph that is displayed under the site name on the search results page. When writing it, get to the point, and don't waffle. You have a limited space to convince somebody to click on your hard earned link, use it wisely.

The robots Meta Tag is very important, don't miss it. But don't edit it either, unless you understand what it does and are sure you don't want it.

The robots Meta Tag addresses the crawler/spider, and tells it to list the index page of your web site, and then to follow every link on the page and list these pages too. I would leave this tag intact unless you are very sure you don't want any of the links followed.

Well, after you're content with your editing, save and upload the file.



The Title Tag

This is an important element to SEO, but phpBB does this bit for you, however I thought I'd still explain what it does.

The title tag defines what the browser displays in the title bar (ironically named I know.) Search engines do however use the title tag to determine the relevance of your keywords. You could just type "MilkZone" in the title tag, however, it would be better to type "MilkZone :: The number one milk discussion forum."

On each subsequent page, the title tag should contain the name of the site followed by the name of the page, for example the page with the contact details on should be called "MilkZone :: Contact Details."

You may have noticed phpBB does this automatically however, so no need to worry about this.



Page Rank Explained

This is a system developed by Google in which the "importance" (how high you are ranked for your search terms) is decided by the popularity of your site. The popularity is not determined by the number of hits you receive, but rather the number of links that point towards your site. The higher the page rank of the site that links to your site, the more popular the site will be considered.

To improve your page rank, you need to get people to link to your forums. The more times Google follows a link to your site, the higher you will rank. Ask your friends to link to you on their sites and forums, and if you are members of any popular forums, put a link in your signature (as long as this is allowed). It is important to promote your site so you get a high page rank, but also somebody might follow those links and register.



Getting listed in the Open Directory

The Open Directory is a huge database of web sites, which is edited by human beings, making it extremely creditable. It is very important to submit your web site to the Open Directory, which you can do at http://www.dmoz.org. Make sure you choose the correct category to
submit your site to, and follow the rules. After you have submitted your site, bookmark the category you submitted it to, then keep checking to see if it has been listed yet. If after about 6-8 weeks it hasn't been listed, e-mail the manager of the category and politely enquire as to why you haven't been listed.

It is important to get listed here, because the Open Directory site is widely recognised as the finest database of web sites there is. Also, many search engines (including Google) use it as a starting point to start the crawling of the web.



The weight of your keywords

Web crawlers will "weigh" your keywords. This means they will test the relevance of the keywords defined in the Meta Tag. They will do this by finding the keywords you defined in the page, and "weighing" them. The weight can be affected by how far up the page the word is (in pixels), the number of times the word is used, the visibility of the word (contrast between the background colour and the text colour), if it is used in any special tags, (title, alt etc.,) and if it is emphasised at all (used with a bold tag etc.)

Obviously it is fairly difficult to organise this in a forum, as you have little control over the content of a forum. However, you can have an effect by naming boards carefully, trying to include keywords in the names and descriptions.


Robots.txt

This is a small .txt file that is placed in root directory of your server, and instructs the crawler on what directories of your server not to visit. So for example, when using phpBB, you may want to instruct the crawler not to visit the admin directory, as there would be no point. There is nothing for it to index. Well, it is up to you to decide, but here is a handy tool that constructs the robots.txt file

I would recommend making one of these files before submitting your phpBB forum to the search engine. PhpBB's file structure can get fairly complex, and if the crawler gets confused or lost, it will simply bail on your site and you will not get indexed.



Submitting the site

You may find that your forum gets submitted automatically, by the crawler finding your site through following a link. However, I would recommend submitting your site manually to Google. Don't use automatic submitters, whether they are web based or not. No software is needed, just manually submit to Google (and make sure you are listed in the Open Directory!).

Google is recognised as the leading search engine, and many other search engines will rely on it. Get listed in Google, and within a month or two, all sorts of web crawlers will turn up in your files. Not just obscure ones either, popular web crawlers will turn up, like Jeeves for instance.


Fare thee well

There it is, a few tips to help you get a much higher ranking. There is much more to it, but follow my advice for your phpBB forum and you should get along fine.

Username: Password:
News | Features | Demo | Downloads | Support | Community | Styles | Mods | Links | Merchandise | About | Home
 © Copyright 2002 The phpBB Group.