Página 1 de 2

Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 25 Ene 2011, 18:30
por zoby
Hola, he activado la opción
Activar URL Rewriting:
Una vez que se han establecido las siguientes opciones, y generado su .htaccess personalizado, puede activar la reescritura de URL y comprobar si su URL rewriting funciona correctamente. Si obtiene errores 404, lo mas probable es que tenga problemas con su .htaccess, pruebe algunas de las herramientas para generar un nuevo .htaccess
Pero, al dar Gracias (Thanks Post MOD 0.4.0), o en el NV recent Topics 1.0.5, al pulsar el botón para ir al ultimo post, sale el Error 404
He Actualizado el .htaccess, pero me imagino que para que no salga, tengo que poner algo mas, actuamente, tengo:

Código: Seleccionar todo

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
# 
# @package phpBB3 Portal  a.k.a canverPortal  ( www.phpbb3portal.com )
# @version $Id: .htaccess,v 1.7 2008/02/09 08:18:13 angelside Exp $
# @copyright (c) Canver Software - www.canversoft.net
# @license http://opensource.org/licenses/gpl-license.php GNU Public License 
# 

DirectoryIndex portal.php index.php index.html index.htm
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
# You may need to un-comment the following lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
# RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^espartapsp\.zobyhost\.com$ [NC]
# RewriteRule ^(.*)$ http://espartapsp.zobyhost.com/$1 [QSA,L,R=301]

# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
#####################################################
# PHPBB SEO REWRITE RULES ALL MODES
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES ALL MODES WITH ID
RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
# USER MESSAGES ALL MODES WITH ID
RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# UNREAD POSTS
RewriteRule ^unreadposts(-([0-9]+))?\.html$ /search.php?search_id=unreadposts&start=$2 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM ALL MODES
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)(-([0-9]+))\.html$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)\.html$ /viewforum.php?forum_uri=$1 [QSA,L,NC]
# FIX RELATIVE PATHS : FILES
RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /$1 [QSA,L,NC,R=301]
# FIX RELATIVE PATHS : IMAGES
RewriteRule ^.+/(styles/.*|images/.*)/$ /$1 [QSA,L,NC,R=301]
# END PHPBB PAGES
#####################################################
<IfModule mod_rewrite.c>
RewriteEngine on

Rewriterule ^blog/(.+)/(.+).html$		./blog/view/blog.php?page=$1&mode=$2 [NC]
Rewriterule ^blog/(.+).html$			./blog/blog.php?page=$1 [NC]
Rewriterule ^blog/(.+)/$				./blog/view/blog.php?page=$1 [NC]
Rewriterule ^blog/$						./blog/blog.php [NC]

RewriteCond %{REQUEST_FILENAME} !-f
Rewriterule ^blog/(.+)/(.+)$		./blog/view/blog.php?page=$1&mode=$2 [NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^blog/(.+)$ ./blog/blog.php?page=$1 [NC]
</IfModule>
Me Imagino que hay que añadir algo parecido a:
# THANKS
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php&thanks= Y Algunos Numeros/Letras

Alguien Sabe como puedo solucionarlo ?¿
Gracias de Antemano :D

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 25 Ene 2011, 19:41
por RogerBCA
Pues no debería salir error e visto foros funcionando normalmente ve bien lo que as editado y limpia la cache del sitio.

Esos dos que mencionas no hay problemas con ese mod solo es cuestión de revisar los archivos editados por el SEO

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 25 Ene 2011, 20:49
por zoby
LeGeNDCyNRo escribió:Pues no debería salir error e visto foros funcionando normalmente ve bien lo que as editado y limpia la cache del sitio.

Esos dos que mencionas no hay problemas con ese mod solo es cuestión de revisar los archivos editados por el SEO
La Cache del sitio no creo que tenga nada que ver, lo curioso, es que cuando tenía el mod de seo en la versión 0.6.4 y el NV Recent Topics en la 1.0.4 y tenía otro mod thanks instalado, si que me funcionaba todo bien, así que no se si a lo mejor es un error en la actualización de 0.6.4 a 0.6.6, lo revisare, pero si alguien tiene alguna solucion, que la diga, ya que a lo mejor el problema no es ese ...
Saludos

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 29 Ene 2011, 15:33
por zoby
En Este Tema (CREO) que esta la solución al problema con el NV Recent Topics 1.0.5, pero debido a mi pesimo ingles, no sabría cual es la solución exacta, ni que hay que editar.
El tema esta aquí http://www.phpbb-seo.com/en/phpbb-seo-m ... e5055.html

Espero que alguien me pueda ayudar :D

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 29 Ene 2011, 18:07
por angelismo
Abrir : includes/functions_recenttopics.php
Buscar

Código: Seleccionar todo

 function recent_topics_generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = false, $tpl_prefix = '', $start_item_name = '')
{
   global $template, $user;
añadir despues

Código: Seleccionar todo

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
   // www.phpBB-SEO.com SEO TOOLKIT END
buscar

Código: Seleccionar todo

function display_recent_topics($topics_per_page, $num_pages, $excluded_topics, $tpl_loopname = 'recenttopicrow', $spec_forum_id = 0, $include_subforums = true)
{
   global $auth, $cache, $config, $db, $template, $user;
   global $phpbb_root_path, $phpEx;
añadir despues

Código: Seleccionar todo

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
   // www.phpBB-SEO.com SEO TOOLKIT END

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 13:39
por zoby
Gracias Angelismo, pero me sigue saliendo el error 404 al pulsar la ''celda'' del ultimo mensaje ... :?
Hay alguna otra solución ?¿

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6  Tema Solucionado

Publicado: 30 Ene 2011, 13:52
por angelismo
Abrir : includes/functions_recenttopics.php
buscar

Código: Seleccionar todo

 $topic_id = $row['topic_id'];
      $forum_id = $row['forum_id'];
añadir despues

Código: Seleccionar todo

  // www.phpBB-SEO.com SEO TOOLKIT BEGIN
       $phpbb_seo->set_url($row['forum_name'], $forum_id, $phpbb_seo->seo_static['forum']);
       $phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$forum_id]);
       // www.phpBB-SEO.com SEO TOOLKIT END
buscar

Código: Seleccionar todo

 'U_NEWEST_POST'         => $view_topic_url . '&view=unread#unread',
         'U_LAST_POST'         => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],
reemplazar por

Código: Seleccionar todo

    // www.phpBB-SEO.com SEO TOOLKIT BEGIN
           'U_NEWEST_POST'         => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&view=unread') . '#unread',
            // www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe
            'U_LAST_POST'         => $phpbb_seo->seo_opt['no_dupe']['on'] ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$topic_id])) . '#p' . $row['topic_last_post_id'] : append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],
            // www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe
            // www.phpBB-SEO.com SEO TOOLKIT END

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 16:42
por zoby
angelismo escribió:Abrir : includes/functions_recenttopics.php
buscar

Código: Seleccionar todo

 $topic_id = $row['topic_id'];
      $forum_id = $row['forum_id'];
añadir despues

Código: Seleccionar todo

  // www.phpBB-SEO.com SEO TOOLKIT BEGIN
       $phpbb_seo->set_url($row['forum_name'], $forum_id, $phpbb_seo->seo_static['forum']);
       $phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$forum_id]);
       // www.phpBB-SEO.com SEO TOOLKIT END
buscar

Código: Seleccionar todo

 'U_NEWEST_POST'         => $view_topic_url . '&view=unread#unread',
         'U_LAST_POST'         => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],
reemplazar por

Código: Seleccionar todo

    // www.phpBB-SEO.com SEO TOOLKIT BEGIN
           'U_NEWEST_POST'         => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&view=unread') . '#unread',
            // www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe
            'U_LAST_POST'         => $phpbb_seo->seo_opt['no_dupe']['on'] ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$topic_id])) . '#p' . $row['topic_last_post_id'] : append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],
            // www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe
            // www.phpBB-SEO.com SEO TOOLKIT END
Gracias Angelismo :D
Sabes como puedo solucionar ahora los Bugs que me han salido ha hacer esos cambios ?¿
[phpBB Debug] PHP Notice: in file /includes/functions_recenttopics.php on line 426: Undefined index: no_dupe
[phpBB Debug] PHP Notice: in file /includes/functions_recenttopics.php on line 426: Undefined index: no_dupe
[phpBB Debug] PHP Notice: in file /includes/functions_recenttopics.php on line 426: Undefined index: no_dupe
[phpBB Debug] PHP Notice: in file /includes/functions_recenttopics.php on line 426: Undefined index: no_dupe
[phpBB Debug] PHP Notice: in file /includes/functions_recenttopics.php on line 426: Undefined index: no_dupe

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 17:22
por angelismo
¿tienes este mod instalado?
http://www.phpbb-seo.com/en/phpbb-seo-t ... t1225.html

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 17:34
por zoby
angelismo escribió:¿tienes este mod instalado?
http://www.phpbb-seo.com/en/phpbb-seo-t ... t1225.html
No, No lo tengo instalado
Hace falta tenerlo instalado ?¿

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 17:45
por zoby
angelismo escribió:Creo que si.
Lo Instalare, luego te cuento como me ha ido :D

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 18:23
por zoby
Muchisimas Gracias Angelismo, creo que ya esta TODO solucionado, exepto una Cosa, solo queda hacer que no me salga el error (errror 404) al pulsar el botón gracias.
Si sabes (o alguien sabe) como solucionarlo, le agradecería que me diera la solución :D

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 18:41
por angelismo
abrir: viewtopic.php
buscar

Código: Seleccionar todo

// Thanks mod
$to_id = request_var('to_id', 0);
$thanks = request_var('thanks', 0);
$rthanks = request_var('rthanks', 0);
añadir antes

Código: Seleccionar todo

// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> Zero dupe
$phpbb_seo->seo_opt['zero_dupe']['start'] = $phpbb_seo->seo_chk_start( $start, $config['posts_per_page'] );
buscar

Código: Seleccionar todo

$phpbb_seo->seo_chk_dupe();
cambiar por

Código: Seleccionar todo

if (!$to_id && !$thanks && !$rthanks) {
     $phpbb_seo->seo_chk_dupe();
}
lo he sacado de aqui
http://www.phpbb-seo.com/en/advanced-se ... tml#p29143

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 18:47
por zoby
Gracias Angelismo, pero creo que el MOD Gracias que hay en ese tema (http://www.phpbb-seo.com/en/advanced-se ... 08-15.html) es el 1.3.0 (http://www.phpbb-es.com/foro/descarga-m ... 28173.html) y yo uso el 0.4.0 (http://www.coloreatuforo.com/mods-desar ... t2452.html)
Y claro, no encuentro

Código: Seleccionar todo

// Thanks mod
$to_id = request_var('to_id', 0);
$thanks = request_var('thanks', 0);
$rthanks = request_var('rthanks', 0);
Y tampoco encuentro

Código: Seleccionar todo

$phpbb_seo->seo_chk_dupe();
Edit:
Creo que la solución esta aquí (pero como antes, no se cual es ...)
http://www.phpbb-seo.com/en/phpbb-mod-r ... e1767.html

Re: Problemas con phpBB SEO Ultimate SEO URL v0.6.6

Publicado: 30 Ene 2011, 18:54
por angelismo
Ese mod es antiguo y además esta abandonado ,seria mejor que cambiaras de mod.