Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Addition of rel="alternate" tags

  1. #1
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default Addition of rel="alternate" tags

    Can an option be added to add tags to translated pages:
    HTML Code:
    <link rel="alternate" hreflang="es" href="http://site.com/es/thread_etc.html" />
    More info here: rel="alternate" hreflang="x" - Webmaster Tools Help

  2. #2

    Default

    Text automatically translated from: Spanish to: English
    Translated text
    Excellent!
    Original text

  3. #3
    MichaƂ Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Accepted

  4. #4
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    Great! In the meantime could you tell me how this could be added manually if it is not too complicated?

  5. #5
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    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.

  6. #6
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    great, thanks!

  7. #7
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    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

  8. #8
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default "Alternate" tag - quick fix

    Quick fix for this feature is:
    1. Open file includes/vbenterprisetranslator_functions_hooks.php
    2. Find code:
      PHP Code:
      if (!VBET_IS_ACTUAL_IGNORED && (!$vbulletin->options['vbenterprisetranslator_flags_guestsonly'] || !$vbulletin->userinfo['userid'])) { 
    3. 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.

  9. #9
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    thank you! really appreciate it!

  10. #10
    Senior Member
    Join Date
    Dec 2009
    Posts
    276

    Default

    hrm, I was under the impression that the base language should not be an 'alternate' page.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •