Can an option be added to add tags to translated pages:
More info here: rel="alternate" hreflang="x" - Webmaster Tools HelpHTML Code:<link rel="alternate" hreflang="es" href="http://site.com/es/thread_etc.html" />
Can an option be added to add tags to translated pages:
More info here: rel="alternate" hreflang="x" - Webmaster Tools HelpHTML Code:<link rel="alternate" hreflang="es" href="http://site.com/es/thread_etc.html" />
Accepted![]()
Great! In the meantime could you tell me how this could be added manually if it is not too complicated?
When we do that, and if it's a simple change then we will publish a quick fix for people who will not want to wait for the new release.
great, thanks!
I would really like to see this sooner than later as it may help with this issue I'm having: http://www.vbenterprisetranslator.co...e-content.html
Quick fix for this feature is:
- Open file includes/vbenterprisetranslator_functions_hooks.php
- Find code:
PHP Code:if (!VBET_IS_ACTUAL_IGNORED && (!$vbulletin->options['vbenterprisetranslator_flags_guestsonly'] || !$vbulletin->userinfo['userid'])) {
- PUT AFTER it this code:
PHP Code:require_once(DIR. '/includes/vbenterprisetranslator_functions_lang.php');
require_once(DIR. '/includes/vbenterprisetranslator_functions_url.php');
$active = vbet_getActiveTranslations();
$host = substr($vbulletin->options['bburl'],0,strlen($vbulletin->options['bburl'])-strlen($vbulletin->options['vbenterprisetranslator_forumdir']));
foreach ($active as $key => $value)
{
$template_hook['headinclude_css'] .= '<link rel=\'alternate\' hreflang=\''.$key.'\' href=\''.$host.vbet_createURL($key).'\' />';
}
This quick fix will add "alternate" tags to all your pages. In the next release this option will be configurable. In the next release we will add this feature.
Last edited by Marcin Kalak; 15-02-13 at 23:47.
hrm, I was under the impression that the base language should not be an 'alternate' page.
Actually, I think I'm wrong...
If you have multiple language versions of a URL, each language page in the set must use rel="alternate" hreflang="x" to identify all language versions including itself. For example, if your site provides content in French, English, and Spanish, the Spanish version must include a rel="alternate" hreflang="x" link for itself in addition to links to the French and English versions. Similarly the English and French versions must each include the same references to the French, English, and Spanish versions