Advertisement:

Author Topic: [Instalação Manual] Canonical Tag smf  (Read 4668 times)

Offline Joomlamz

  • SMF Hero
  • ******
  • Posts: 2,639
  • Gender: Male
  • Suporte SmfPT
    • apllicmz on Facebook
    • apllicmz on GitHub
    • https://www.linkedin.com/in/aplic on LinkedIn
    • @aplichosting on Twitter
    • Webdesign
[Instalação Manual] Canonical Tag smf
« on: January 30, 2011, 02:57:32 AM »

Original e Download Link:http://custom.simplemachines.org/mods/index.php?mod=1644
Modo Nome: SMF Canonical Tag
Criado por: vmgamer
Última versão: 1.2
Compatível com: 1.1.x, 2.0 rc4
Pacote de instalação: O link original
Instalação Manual: Sim / Por Candidosa2

index.template.php
[/size]
Code: [Select]
</title>';

Adicionar

[/size]
Code: [Select]
   if (!empty($context['current_topic']))
      echo '
   <link rel="canonical" href="', $scripturl, '?topic=', $context['current_topic'] . (!empty($context['start']) ? '.' . $context['start'] : '.0') . '" />';
   elseif (!empty($context['current_board']))
      echo '
   <link rel="canonical" href="', $scripturl, '?board=', $context['current_board'] . (!empty($context['start']) ? '.' . $context['start'] : '.0') . '" />';