Fix 404 errors on Ultimate Tag Warrior Corregir errores en 404 Ultimate Tag Warrior

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. I utiliza Ultimate Tag Warrior versión 3,14159265 (4 de febrero de 2007) con WordPress 2.1, que gran trabajo pero hay algún problema o error que cuando se intenta abrir / etiqueta se mostrará errores 404. I check and try to make the page /tag or /tag/ show all tags with function of Ultimate Tag Warrior . I comprobar y tratar de hacer que la página / o etiqueta / tag / mostrar todas las etiquetas con las funciones de Ultimate Tag Warrior. Here is small changed. Aquí hay una pequeña cambiado.

PHP: PHP:
  1. function ultimate_tag_templates ( ) { ultimate_tag_templates función () (
  2. if ( $_GET [ "archive" ] == "tag" ) { if ($ _GET [ "archivo"] == "etiqueta") (
  3. include ( TEMPLATEPATH . '/tag_all.php' ) ; incluyen (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' ) ; incluyen (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 Esta función cuando el proceso de consulta para la etiqueta, pero usted verá si usted solicita vacío con valor de la etiqueta que no proceso de nada y dejar que este proceso de Wordpress y por último, se da 404 errores

I just made some changes to handle when user query with empty tag or open at /tag or /tag/ Acabo de hacer algunos cambios para manejar cuando el usuario consulta con etiqueta vacía abiertas o en / o etiqueta / tag /

PHP: PHP:
  1. function ultimate_tag_templates ( ) { ultimate_tag_templates función () (
  2. if ( $_GET [ "archive" ] == "tag" ) { if ($ _GET [ "archivo"] == "etiqueta") (
  3. include ( TEMPLATEPATH . '/tag_all.php' ) ; incluyen (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' ) ; incluyen (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 ( '^ / etiqueta $', $ _SERVER [ 'REQUEST_URI'])) | |
  17. ( eregi ( "^/tag/$" , $_SERVER [ 'REQUEST_URI' ] ) ) ) { (Eregi ( "^ / tag / $", $ _SERVER [ 'REQUEST_URI']))) (
  18. include ( TEMPLATEPATH . '/tags.php' ) ; incluyen (TEMPLATEPATH '. / tags.php');
  19. } )
  20. } )
  21. } )

You may need to have file tags.php in your theme directory Es posible que tenga que tener el archivo tags.php tema en su directorio

Here is example of tags.php Aquí es ejemplo 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. Usted también puede cambiar de función o parámetros para mostrar la etiqueta en la página como desee. Please see all detail here UltimateTagWarrior help Por favor, ver todos los detalles aquí UltimateTagWarrior ayuda


One Response to “Fix 404 errors on Ultimate Tag Warrior” Una respuesta a "Corregir errores en 404 Ultimate Tag Warrior"

  1. Thai Healthcare and dental care Says: Tailandés de Salud y atención dental dice:

    Another Day, Another Post… Otro día, otro puesto ...

    [...] While surfing aimlessly today I came across this site: [...]… [...] Si bien el surf aimlessly hoy me encontré con este sitio: [...] ...

Leave a Reply Deje un comentario

You must be logged in to post a comment. Usted debe estar conectado para publicar un comentario.

Categories Categorías