Fix 404 errors on Ultimate Tag Warrior Corrigir erros 404 de Ultimate Warrior Tag

I uses Ultimate Tag Warrior version 3.14159265 (February 4th, 2007) with WordPress 2.1 , it work great but there have some problem or bug that when you try to open /tag it will show 404 errors. Eu utiliza tags Ultimate Warrior versão 3,14159265 (4 de fevereiro de 2007) com WordPress 2.1, que funcionam perfeitamente, mas aí tem algum problema ou bug que quando você tenta abrir / tag irá mostrar erros 404. I check and try to make the page /tag or /tag/ show all tags with function of Ultimate Tag Warrior . Eu tento fazer e verificar a página / ou etiqueta / tag / mostrar todas as tags com funções de Ultimate Warrior Tag. Here is small changed. Aqui é pequeno mudou.

PHP: PHP:
  1. function ultimate_tag_templates ( ) { ultimate_tag_templates função () (
  2. if ( $_GET [ "archive" ] == "tag" ) { if ($ _GET [ "arquivo"] == "tag") (
  3. include ( TEMPLATEPATH . '/tag_all.php' ) ; include (TEMPLATEPATH '. / tag_all.php');
  4. } else if ( get_query_var ( "tag" ) != "" ) { ) Else if (get_query_var ( "tag")! = "") (
  5. ultimate_get_posts ( ) ; ultimate_get_posts ();
  6. if ( is_feed ( ) ) { if (is_feed ()) (
  7. return ; retorno;
  8. } )
  9. if ( file_exists ( TEMPLATEPATH . "/tag.php" ) ) { if (file_exists (TEMPLATEPATH. "/ tag.php")) (
  10. if ( $_GET [ "feed" ] == '' ) { if ($ _GET [ "feed"] =='') (
  11. include ( TEMPLATEPATH . '/tag.php' ) ; include (TEMPLATEPATH '. / tag.php');
  12. } )
  13. } else { Else ()
  14. //    include(TEMPLATEPATH . '/index.php'); / / Include (TEMPLATEPATH '. / Index.php');
  15. } )
  16. } )
  17. } )

This function will process when you query for tag but you will see if you request with empty value of tag it won’t process anything and let Wordpress process this and finally it give 404 errors Este processo irá funcionar quando você consulta para marcar, mas vai ver se você pedir vazio com valor de tag que não irá processar qualquer coisa e deixar que este processo Wordpress e finalmente se dá erros 404

I just made some changes to handle when user query with empty tag or open at /tag or /tag/ Eu só fez algumas mudanças para tratar quando o usuário com vazias query ou abrir a tag / ou etiqueta / tag /

PHP: PHP:
  1. function ultimate_tag_templates ( ) { ultimate_tag_templates função () (
  2. if ( $_GET [ "archive" ] == "tag" ) { if ($ _GET [ "arquivo"] == "tag") (
  3. include ( TEMPLATEPATH . '/tag_all.php' ) ; include (TEMPLATEPATH '. / tag_all.php');
  4. } else if ( get_query_var ( "tag" ) != "" ) { ) Else if (get_query_var ( "tag")! = "") (
  5. ultimate_get_posts ( ) ; ultimate_get_posts ();
  6. if ( is_feed ( ) ) { if (is_feed ()) (
  7. return ; retorno;
  8. } )
  9. if ( file_exists ( TEMPLATEPATH . "/tag.php" ) ) { if (file_exists (TEMPLATEPATH. "/ tag.php")) (
  10. if ( $_GET [ "feed" ] == '' ) { if ($ _GET [ "feed"] =='') (
  11. include ( TEMPLATEPATH . '/tag.php' ) ; include (TEMPLATEPATH '. / tag.php');
  12. } )
  13. } else { Else ()
  14. //    include(TEMPLATEPATH . '/index.php'); / / Include (TEMPLATEPATH '. / Index.php');
  15. } else { Else ()
  16. if ( ( eregi ( '^/tag$' , $_SERVER [ 'REQUEST_URI' ] ) ) || if ((eregi ( '^ / tag $', $ _SERVER [ 'REQUEST_URI'])) | |
  17. ( eregi ( "^/tag/$" , $_SERVER [ 'REQUEST_URI' ] ) ) ) { (Eregi ( "^ / tag / $", $ _SERVER [ 'REQUEST_URI']))) (
  18. include ( TEMPLATEPATH . '/tags.php' ) ; include (TEMPLATEPATH '. / tags.php');
  19. } )
  20. } )
  21. } )

You may need to have file tags.php in your theme directory Pode ser necessário ter em seu arquivo tags.php tema diretório

Here is example of tags.php Aqui está o exemplo de tags.php

PHP: PHP:
  1. <?php get_header ( ) ; ?> <? php get_header ();?>
  2. <div class = "primary" > <div "primary" class =>
  3. <?php UTW_ShowWeightedTagSetAlphabetical ( "coloredsizedtagcloud" , "" , 0 ) ?> <? php UTW_ShowWeightedTagSetAlphabetical ( "coloredsizedtagcloud", "", 0)?>
  4. </div> </ div>
  5. <?php get_sidebar ( ) ; ?> <? php get_sidebar ();?>
  6. <?php get_footer ( ) ; ?> <? php get_footer ();?>

You also can change function or parameters to display tag in the page as you want. Você também pode alterar a função ou parâmetros para exibir a tag na página que você deseja. Please see all detail here UltimateTagWarrior help Por favor, veja todos os detalhes aqui UltimateTagWarrior ajudar


One Response to “Fix 404 errors on Ultimate Tag Warrior” Uma resposta para "Corrigir erros 404 de Ultimate Warrior Tag"

  1. Thai Healthcare and dental care Says: Tailandês Saúde e cuidados dentários Says:

    Another Day, Another Post… Outro dia, Outra Post ...

    [...] While surfing aimlessly today I came across this site: [...]… [...] Enquanto navega à toa, hoje eu vim através deste site: [...] ...

Leave a Reply Deixe uma Resposta

You must be logged in to post a comment. Você deve estar conectado para postar um comentário.

Categories Categorias