![]() |
Get multi-lingual forums indexed in Google.
1 Attachment(s)
If you have a site with subforums in different languages, then you will likely have encountered a problem with getting these forums indexed in the appropiate Google index. For example, if you have English set as your board language in vbulletin options, then your German sub-forum will not do well in google.de
To solve this I have written a simple conditional, that changes the lang=X html code on a per forum basis. The example below is for two languages besides the default language. You can add more languages, by repeating the code. In SHOWTHREAD and in FORUMDISPLAY template, find: PHP Code:
PHP Code:
To find your forumID's go to the forums that you want search engines to perceive as a different language and note down which number comes after /forumdisplay.php?f= Do not forget to replace X and Y with the proper language codes. Here is an overview: http://xml.coverpages.org/iso639a.html |
It works? :(
|
Yes, it does. Do you have a question about it? if there's anything you want clarified let me know.
|
if you have English set as your board language in vbulletin options, then your German sub-forum will not do well in google.de
That didnt sound right lol |
hey this is quite good, I have 10 different languages on my site, so I will try it out later :)
|
hi First of all your code did not work properly, I am not a coder, so I changed a few things to get it to work
after each lang="X" or lang="Y" I aded ">" this will close the bracket to make the Statement appear correct. If you right click and view the source of the page in the forum, you will see. This is the changed version> PHP Code:
PHP Code:
|
Quote:
Quote:
For one forum, instead of an array of forums; I normally use this conditional: PHP Code:
|
I can confirm that Google is now indexing my forums in the correct languages, as I am receiving Google alerts from google.nl and google.de
The interesting thing, is that Google sees my old topics, as new content as well, since it has never indexed it in google.de or google.de before. Only in google.com. |
what's demo adress?
|
There is no demo. The only thing difference after installing this hack, is that the source of for example a German page on an English website, has a lang=de instead of a lang=en meta tag.
The proof is in the pudding in this one. Try it out for a month and see what google does. |
do we need this if we use vbseo?
|
I am not sure, because I do not have vbSEO. maybe someone that has vbSEO can explain this.
|
Not work for vietnammese lang :(
|
What code do you use for Vietnamese?
|
Is there any condition to mark forum with several languages at the same time to index it f.expl at google.no and google.com simultaneously ??
|
I'm not sure about that. Normally a page is only in one language. I did add comma separated variations of English to pages about a decade ago. I don't know if that would still work.
|
All times are GMT. The time now is 02:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|