![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
Get multi-lingual forums indexed in Google.
![]() Developer Last Online: Dec 2020 ![]() ![]() ![]()
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:
Replace with:
Do not forget to replace the forumID numbers with your forumID numbers. 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 Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
Comments |
#2
|
||||
|
||||
It works?
![]() No members have liked this post.
|
#3
|
||||
|
||||
Yes, it does. Do you have a question about it? if there's anything you want clarified let me know.
No members have liked this post.
|
#4
|
|||
|
|||
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
__________________
Community Forums - Gaming Technology and Anime KiloByte - Virtual Engine - Crypto No members have liked this post.
|
#5
|
|||
|
|||
hey this is quite good, I have 10 different languages on my site, so I will try it out later
![]() No members have liked this post.
|
#6
|
||||||||
|
||||||||
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>
whats a better way to write it if I hav a lot of languages? i would then have like 10 End If statements?
No members have liked this post.
Last edited by zooki; 22 Jan 2009 at 17:29. |
#7
|
||||
|
||||
Originally Posted by zooki
Thanks. I missed that one. I corrected it. ![]()
Originally Posted by zooki
I use a good number of conditionals on my forum pages and have no problems with it. However there may be a tidier way.![]()
For one forum, instead of an array of forums; I normally use this conditional:
No members have liked this post.
|
#8
|
||||
|
||||
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. No members have liked this post.
|
#9
|
|||
|
|||
what's demo adress?
No members have liked this post.
|
#10
|
||||
|
||||
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. No members have liked this post.
|
#11
|
|||
|
|||
do we need this if we use vbseo?
No members have liked this post.
|
#12
|
||||
|
||||
I am not sure, because I do not have vbSEO. maybe someone that has vbSEO can explain this.
No members have liked this post.
|
#13
|
||||
|
||||
Not work for vietnammese lang
![]() No members have liked this post.
|
#14
|
||||
|
||||
What code do you use for Vietnamese?
No members have liked this post.
|
#15
|
|||
|
|||
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 ??
No members have liked this post.
Last edited by Fenriz; 14 Oct 2009 at 22:34. |
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 11:07.