Get multi-lingual forums indexed in Google.
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:
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
PHP Code:
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" <if condition="in_array($foruminfo['forumid'], array(1, 2, 3, 4, 5))">lang="X"><else />
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 No files for download. |