vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




SEO of vBulletin 3.50 Beta - Meta Tags - My First thoughts

Joeychgo
06-10-2005, 02:46 AM
Its important to note, these are preliminary thoughts I am posting for discussion.


SEO of 3.50 Beta - Meta Tags - My First thoughts


I can see some attempts to do some SEO improvements on this version.

The headinclude template contains this code:


<if condition="$threadinfo">
<meta name="keywords" content="$threadinfo[title] $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title]" />
<else />
<if condition="$foruminfo">
<meta name="keywords" content="$foruminfo[title] $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if>
</if>


This is a group of conditionals that controls the Keywords and Descriptions for all your public pages. Jelsoft has decided to code descriptions and keywords centrally in the headinclude, while coding the page Titles into the individual page templates themselves.

The code above breaks down like this:


<if condition="$threadinfo">
<meta name="keywords" content="$threadinfo[title] $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title]" />


This section is for the individual threads (showthread and showthread_showpost). These pages will do the following:




Keywords = Thread Title + Sitewide Keywords Description = Page # (if more then one page - will not say page 1) + Thread Title + Forum Title





The page option portion does not appear to be working at present. I need to submit a bug report. I also question the wisdom of placing the Page # at the front of the description.




The second section:


<if condition="$foruminfo">
<meta name="keywords" content="$foruminfo[title] $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />


This section is for the Individual Forums & Subforums (Forumdisplay Template). These pages will do the following:





Keywords = Forum Title + Sitewide Keywords


Description = Page # (if more then one page - will not say page 1) + the individual Forum Description



I see this as a problem. Many people dont use descriptions on all forums. (VBW included) and individual forums without a description written, wont have a page description for search engines to read. - The page # Variable does not work in the description here either.



The last section:

<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />


This is for all other pages and uses the sitewide Description & Keywords.


Now, since the page Titles are coded directly into each individual template, I'll explain those now.

Main Forum Page (ForumHome Template)


<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>


This breaks down into:




Sitewide Forum Name + "Powered By vBulletin"






Individual Forums & Subforums (Forumdisplay Template)





<title>$foruminfo[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>


The title for these pages contains the following:




Individual Forum Name + Page # (if more then one page - will not say page 1) + Sitewide Forum Name







And for the individual threads (showthread template).





<title>$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>


The title for these pages contains the following:




Thread Title + Page # (if more then one page - will not say page 1) + Sitewide Forum Name






For the Individual Post (showthread_showpost template)





<title>$vboptions[bbtitle] - $vbphrase[view_single_post] - $threadinfo[title]</title>








Which breaks down into:Sitewide Forum Name + "View Single Post" + Thread Title










A few other pages - Individual Member Profile (MEMBERINFO template)









<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>Sitewide Forum Name + "View Profile:" + User Name






Search Results (search_results template)







<title>$vboptions[bbtitle] - $vbphrase[search_results]</title>Sitewide Forum Name + "Search Results"




Calendar (CALENDAR Template)







<title>$vboptions[bbtitle] - $vbphrase[calendar]</title>Sitewide Forum Name + "Calendar"




So - as a wrap up of Titles, Descriptions and Keywords, here is what they will look like:



Forum Home Page (Forumhome template)

Title = Sitewide Forum Name + "Powered By vBulletin"
Keywords = Sitewide Keywords
Description = Sitewide Description

Individual Forums and Subforums (forumdisplay template)

Title = Individual Forum Name + Page # (if more then one page - will not say page 1) + Sitewide Forum Name
Keywords = Forum Title + Sitewide Keywords
Description = Page # (if more then one page - will not say page 1) + the individual Forum Description

Individual Threads (showthread template)

Title = Thread Title + Page # (if more then one page - will not say page 1) + Sitewide Forum Name
Keywords = Forum Title + Sitewide Keywords
Description = Page # (if more then one page - will not say page 1) + the individual Forum Description

Individual Posts (showthread_showpost template)

Title = Sitewide Forum Name + "View Single Post" + Thread Title
Keywords = Thread Title + Sitewide Keywords
Description = Page # (if more then one page - will not say page 1) + Thread Title + Forum Title

Individual Member Profile (MEMBERINFO template)

Title = Sitewide Forum Name + "View Profile:" + User Name
Keywords = Sitewide Keywords
Description = Sitewide Description

Search Results (search_results template)

Title = Sitewide Forum Name + "Search Results"
Keywords = Sitewide Keywords
Description = Sitewide Description

Calendar (CALENDAR Template)

Title = Sitewide Forum Name + "Calendar"
Keywords = Sitewide Keywords
Description = Sitewide Description

__________________________________________________ _________
My recommendations regarding the above:
For starters, I would remove the code in the headinclude template, and place Title, Description and Keyword meta tags into the individual templates. Mainly for 3 reasons.

First, It seems inefficient to have the Title tags in the templates and the Description and Keyword tags in the headinclude template;

Second, keeping them all in the individual templates allows for easier customization, should the end user choose to do so;

Third, large hacks such as vBGarage and vBArticles would be stuck with the Sitewide Description and Sitewide Keywords. These types of hacks can have many pages each of which should have proper meta tags for good SEO.

SO, What I would do is remove the Keyword and Description code from the headinclude template and then do the following:

Forumhome Template

Find


<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>

and replace it with:


<title>$vboptions[bbtitle]</title>
<meta name="description" content="$vboptions[description]" />
<meta name="keywords" content="$vboptions[keywords]" />


Forumdisplay Template

Find:

<title>$foruminfo[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>


and replace it with:


<title>$foruminfo[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>Discuss $foruminfo[description_clean] at $vboptions[bbtitle] " />
<meta name="keywords" content="$foruminfo[title] $vboptions[keywords]" />.



Showthread Template

Find:


<title>$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>


and replace it with:



<title>$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if></title>
<meta name="description" content="$threadinfo[title] $foruminfo[description_clean] $foruminfo[title] <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>" />
<meta name="keywords" content="$threadinfo[title] $vboptions[keywords]" />



Showthread_Showpost template

Find:


<title>$vboptions[bbtitle] - $vbphrase[view_single_post] - $threadinfo[title]</title>


and replace it with:


<title>$threadinfo[title] - $vbphrase[view_single_post]</title>
<meta name="description" content="$threadinfo[title] - $vboptions[bbtitle] - $foruminfo[title]" />
<meta name="keywords" content="$vboptions[keywords] - $vboptions[bbtitle]"/>



MEMBERINFO template
You may not want optimize member profiles -- and perhaps exclude spiders from those areas. There are a number of reasons for this such member privacy (which may be less an issue on some kinds of forums than others). So this is your call.


Find:
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>

and replace it with:


<title>$vbphrase[view_profile]: $userinfo[username] at $vboptions[bbtitle]</title>
<meta name="description" content="$userinfo[username] from $userinfo[field2] at $vboptions[bbtitle]" />
<meta name="keywords" content="$vboptions[keywords] - $vboptions[bbtitle]"/>


search_results template

Find:

<title>$vboptions[bbtitle] - $vbphrase[search_results]</title>

and replace it with:


<title>$vboptions[bbtitle] - $vbphrase[search_results]</title>
<meta name="description" content="$vboptions[description] - $vboptions[bbtitle]" />
<meta name="keywords" content="$vboptions[keywords] - $vboptions[bbtitle]"/>


There are more templates to do of course, but this is a very good start.

What your shooting for is this. You want to have a catagory of pages, (i.e. threads, Member Profiles, etc) to be as different as possible in regard to Title and Description. Meaning you want the title and description of the Member profiles to be different from one another. Using variables such as the username and the user's profile field "location" ($userinfo[field2]) will help keep search engines from catagorizing all member profiles as the same.

These elements are at the heart of what search engines use to index pages. The more pages you have indexed the more likely people will find them. Worrying about minor things such as Meber Profiles might seem like overkill. But you would be suprised what people search for and can find your site by.

As an example, someone this month searched for "hibeesbounce website" and found this site. That term comes directly from a member profile. You never know what people will search for and stumble across your site, possibly joining.

Loco.M
01-08-2006, 10:33 PM
great info,
just one question

on something like

<meta name="description"
<meta name="keywords"

do i chang the "description" to "my site discription that i want in this spot" ?
same with "keywords" --- do i put "my keywords, bluegrass music, my forum, ect..."
?

or do i just leave those parts

<meta name="description"
<meta name="keywords"


and let them pull the discription and keywords from my acp

Joeychgo
01-08-2006, 10:39 PM
just leave those parts. They tell search engines what the line is about

Loco.M
01-08-2006, 11:29 PM
okay,, well the reason I asked is because on the other thread, for older vb.. there were parts were we actually put our own description for that threads, member info, for the different pages and stuff.
just checking on this, b4 I started editing..

thanx for the fast reply :wave:

croportal
01-22-2006, 10:02 AM
<if condition="$show['threadinfo']">
<meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
<else />
<if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if>
</if>


this look my headininclude

i have <if condition="$show['threadinfo']">

and you dont have show???? whats the diferents


i mean on this

this is myne

<if condition="$show['threadinfo']">

and this is yours <if condition="$threadinfo">

whats the diference

can i change my headinclude like this:

from this code:

<if condition="$show['threadinfo']">
<meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
<else />
<if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if>
</if>


to this codE:

<if condition="$show['threadinfo']">
<meta name="keywords" content="$threadinfo[title] $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title]" />




you see i have put <if condition="$show['threadinfo']"> sHOW

croportal
01-22-2006, 10:08 AM
i have try to change headinluce and i get this error


The following error occurred when attempting to evaluate the template 'headinclude':

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/hrportal/public_html/forum/includes/adminfunctions_template.php(3537) : eval()'d code on line 3

This is likely caused by a malformed conditional statement.

Joeychgo
01-22-2006, 05:14 PM
This is why I originally said to just eliminate the descriptions from the headinclude

croportal
01-22-2006, 05:17 PM
sorry but im a liitle stupid :)

can u tell me what i ned to remove from headinlcude template, exactly

so that i can do this

Forumhome Template

Find

PHP Code:
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>


and replace it with:

PHP Code:
<title>$vboptions[bbtitle]</title>
<meta name="description" content="$vboptions[description]" />
<meta name="keywords" content="$vboptions[keywords]" />


Forumdisplay Template

Find:
PHP Code:
<title>$foruminfo[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>


and replace it with:

PHP Code:
<title>$foruminfo[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>Discuss $foruminfo[description_clean] at $vboptions[bbtitle] " />
<meta name="keywords" content="$foruminfo[title] $vboptions[keywords]" />.



Showthread Template

Find:

PHP Code:
<title>$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>


and replace it with:


PHP Code:
<title>$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if></title>
<meta name="description" content="$threadinfo[title] $foruminfo[description_clean] $foruminfo[title] <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>" />
<meta name="keywords" content="$threadinfo[title] $vboptions[keywords]" />



Showthread_Showpost template

Find:

PHP Code:
<title>$vboptions[bbtitle] - $vbphrase[view_single_post] - $threadinfo[title]</title>


and replace it with:

PHP Code:
<title>$threadinfo[title] - $vbphrase[view_single_post]</title>
<meta name="description" content="$threadinfo[title] - $vboptions[bbtitle] - $foruminfo[title]" />
<meta name="keywords" content="$vboptions[keywords] - $vboptions[bbtitle]"/>



MEMBERINFO template
You may not want optimize member profiles -- and perhaps exclude spiders from those areas. There are a number of reasons for this such member privacy (which may be less an issue on some kinds of forums than others). So this is your call.


Find:
PHP Code:
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>


and replace it with:

PHP Code:
<title>$vbphrase[view_profile]: $userinfo[username] at $vboptions[bbtitle]</title>
<meta name="description" content="$userinfo[username] from $userinfo[field2] at $vboptions[bbtitle]" />
<meta name="keywords" content="$vboptions[keywords] - $vboptions[bbtitle]"/>


search_results template

Find:

PHP Code:
<title>$vboptions[bbtitle] - $vbphrase[search_results]</title>


and replace it with:

PHP Code:
<title>$vboptions[bbtitle] - $vbphrase[search_results]</title>
<meta name="description" content="$vboptions[description] - $vboptions[bbtitle]" />
<meta name="keywords" content="$vboptions[keywords] - $vboptions[bbtitle]"/>

Joeychgo
01-22-2006, 05:58 PM
Re-read the original post.

croportal
01-23-2006, 04:28 AM
i have read 3 times but i dont understand, my english is not very god


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum