Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Get multi-lingual forums indexed in Google. Details »
Get multi-lingual forums indexed in Google.
Mod Version: 1.00, by Alfa1 (Coder/Designer) Alfa1 is offline
Developer Last Online: Mar 2017 I like it Show Printable Version Email this Page

vB Version: 3.8.0 Rating: (0 vote - 0 average) Installs: 13
Released: 19 Jan 2009 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes Re-usable Code Translations  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 19 Jan 2009, 22:05
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Real name: Josh Arcadia
It works?
__________________
. █│║▌│█│║▌║│█║▌│║║█║
Reply With Quote
  #3  
Old 20 Jan 2009, 20:31
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Yes, it does. Do you have a question about it? if there's anything you want clarified let me know.
Reply With Quote
  #4  
Old 22 Jan 2009, 01:21
dreads dreads is offline
 
Join Date: Feb 2007
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
Reply With Quote
  #5  
Old 22 Jan 2009, 13:30
zooki zooki is offline
 
Join Date: Jun 2006
hey this is quite good, I have 10 different languages on my site, so I will try it out later
Reply With Quote
  #6  
Old 22 Jan 2009, 16:09
zooki zooki is offline
 
Join Date: Jun 2006
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>

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

whats a better way to write it if I hav a lot of languages? i would then have like 10 End If statements?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by zooki; 22 Jan 2009 at 18:29.
Reply With Quote
  #7  
Old 22 Jan 2009, 23:41
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Originally Posted by zooki View Post
after each lang="X" or lang="Y" I aded ">" this will close the bracket to make the Statement appear correct.
Thanks. I missed that one. I corrected it.

Originally Posted by zooki View Post
whats a better way to write it if I hav a lot of languages? i would then have like 10 End If statements?
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #8  
Old 01 Feb 2009, 04:15
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
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.
Reply With Quote
  #9  
Old 02 Feb 2009, 03:10
tefon tefon is offline
 
Join Date: Aug 2008
what's demo adress?
Reply With Quote
  #10  
Old 02 Feb 2009, 23:54
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
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.
Reply With Quote
  #11  
Old 03 Feb 2009, 00:25
rob01 rob01 is offline
 
Join Date: Sep 2008
Real name: robert
do we need this if we use vbseo?
Reply With Quote
  #12  
Old 03 Feb 2009, 01:32
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
I am not sure, because I do not have vbSEO. maybe someone that has vbSEO can explain this.
Reply With Quote
  #13  
Old 18 Feb 2009, 19:12
luan7749's Avatar
luan7749 luan7749 is offline
 
Join Date: Apr 2008
Not work for vietnammese lang
Reply With Quote
  #14  
Old 18 Feb 2009, 19:15
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
What code do you use for Vietnamese?
Reply With Quote
  #15  
Old 14 Oct 2009, 23:27
Fenriz Fenriz is offline
 
Join Date: Aug 2002
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 ??

Last edited by Fenriz; 14 Oct 2009 at 23:34.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 17:37.

Layout Options | Width: Wide Color: