[règler][mx sitemaps] problèmes erreur 404

Forum consacré aux codes conseillés ou mis à disposition sur phpBB SEO. Support, téléchargements, conseils ...

Modérateur: Modérateurs

Messagede wythi » Dim Fév 25, 2007 3:41 pm

Bonjour,
a merci! sa marche...
jouf tu me sauve mdr
mais juste tu peux m'expliquer pourquoi j'ai du faire cette modif?
juste pour comprendre pour la prochaine foi :)
faut bien que j'aprène lol
PS: l'auto link c'est le même que pour l'enciène vercion?
merci.
wythi
wythi
PR2
PR2
 
Messages: 211
Inscription: Mer Déc 06, 2006 12:45 pm
Localisation: Belgique

Publicité

Messagede philippe » Dim Fév 25, 2007 4:14 pm

wythi a écrit:Bonjour,
a merci! sa marche...
jouf tu me sauve mdr
mais juste tu peux m'expliquer pourquoi j'ai du faire cette modif?
juste pour comprendre pour la prochaine foi :)
faut bien que j'aprène lol
PS: l'auto link c'est le même que pour l'enciène vercion?
merci.
wythi


Cette modif indique le chemin PHPBB_URL qui n'était pas renseignée ..
Quelle version de rewrite et phpbb_seo_class.php utilises tu ?


Tes urls étaient du type www.domaine.com/PHPBB_URLtopic11.html

Pour l'autolink il faut remplacer dans page_tail.php

format_url par $phpbb_seo->format_url
Philippe
Webmaster du forum de Portail New Beetle | special-t
philippe
phpBB SEO Team
phpBB SEO Team
 
Messages: 601
Inscription: Ven Juin 23, 2006 12:00 pm
Localisation: Région Parisienne

Messagede wythi » Dim Fév 25, 2007 4:19 pm

philippe a écrit:
wythi a écrit:Bonjour,
a merci! sa marche...
jouf tu me sauve mdr
mais juste tu peux m'expliquer pourquoi j'ai du faire cette modif?
juste pour comprendre pour la prochaine foi :)
faut bien que j'aprène lol
PS: l'auto link c'est le même que pour l'enciène vercion?
merci.
wythi


Cette modif indique le chemin PHPBB_URL qui n'était pas renseignée ..
Quelle version de rewrite et phpbb_seo_class.php utilises tu ?


Tes urls étaient du type www.domaine.com/PHPBB_URLtopic11.html

Pour l'autolink il faut remplacer dans page_tail.php

format_url par $phpbb_seo->format_url


Re,
mods rerite intermédiaire, le tout dernier, zéro duplicate, j'èspère que c'est de sa que tu parle lol :)
et merci pour le petit coure lol :)
je vais faire la modif pour l'auto link ;)
merci a toi!
wythi
PR2
PR2
 
Messages: 211
Inscription: Mer Déc 06, 2006 12:45 pm
Localisation: Belgique

Messagede wythi » Dim Fév 25, 2007 4:34 pm

re, il n'y a pas cette ligne dans page_tail.php
le mode recherche ne la trouvais pas, j'ai donc fais une recherche moi meme, mais elle n'y est pas lol
tu t'ai pas tromper de fichier?
voici ce que j'ai dans page_tail.php:
Code: Tout sélectionner
<?php
/***************************************************************************
*                              page_tail.php
*                            -------------------
*   begin                : Saturday, Feb 13, 2001
*   copyright            : (C) 2001 The phpBB Group
*   email                : support@phpbb.com
*
*   $Id: page_tail.php,v 1.27.2.4 2005/09/14 18:14:30 acydburn Exp $
*
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

if ( !defined('IN_PHPBB') )
{
   die('Hacking attempt');
}

global $do_gzip_compress;

//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';

$template->set_filenames(array(
   'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);

$template->assign_vars(array(
   'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''),
   'ADMIN_LINK' => $admin_link)
);

$template->pparse('overall_footer');

//
// Close our DB connection.
//
$db->sql_close();

//
// Compress buffered output if required and send to browser
//
if ( $do_gzip_compress )
{
   //
   // Borrowed from php.net!
   //
   $gzip_contents = ob_get_contents();
   ob_end_clean();

   $gzip_size = strlen($gzip_contents);
   $gzip_crc = crc32($gzip_contents);

   $gzip_contents = gzcompress($gzip_contents, 9);
   $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);

   echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
   echo $gzip_contents;
   echo pack('V', $gzip_crc);
   echo pack('V', $gzip_size);
}

exit;

?>

merci, wythi.
wythi
PR2
PR2
 
Messages: 211
Inscription: Mer Déc 06, 2006 12:45 pm
Localisation: Belgique

Messagede philippe » Dim Fév 25, 2007 4:46 pm

<?php
/***************************************************************************
* page_tail.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: page_tail.php,v 1.27.2.4 2005/09/14 18:14:30 acydburn Exp $
*
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}

global $do_gzip_compress;

//
//Begin mx_Sitemaps Auto link Add On http://www.phpbb-seo.com/
//
$mx_forum_id =( isset($HTTP_GET_VARS[POST_FORUM_URL]) )? intval($HTTP_GET_VARS[POST_FORUM_URL]) : 0;
$root_url = 'http://www.forum-newbeetle.fr/';
if ( $mx_forum_id != 0 )
{
$mx_link_tmp = append_sid($root_url . $phpbb_seo->format_url($forum_row['forum_name']) . '-fmp' .$mx_forum_id . '.html');
$link_title = $forum_row['forum_name'].' - Map';
$mx_sitemap_link = '<a href="'.$mx_link_tmp.'" class="copyright" title="'.$link_title.'">'.$link_title.'</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
else
{
$mx_sitemap_link = '<a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}

//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';

.....................

Philippe
Webmaster du forum de Portail New Beetle | special-t
philippe
phpBB SEO Team
phpBB SEO Team
 
Messages: 601
Inscription: Ven Juin 23, 2006 12:00 pm
Localisation: Région Parisienne

Messagede wythi » Dim Fév 25, 2007 5:04 pm

comme sa:
Code: Tout sélectionner
<?php
/***************************************************************************
*                              page_tail.php
*                            -------------------
*   begin                : Saturday, Feb 13, 2001
*   copyright            : (C) 2001 The phpBB Group
*   email                : support@phpbb.com
*
*   $Id: page_tail.php,v 1.27.2.4 2005/09/14 18:14:30 acydburn Exp $
*
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

if ( !defined('IN_PHPBB') )
{
   die('Hacking attempt');
}

global $do_gzip_compress;
//
//Begin mx_Sitemaps Auto link Add On
//http://www.phpbb-seo.com/

//

$mx_forum_id =( isset($HTTP_GET_VARS[POST_FORUM_URL]) )? intval($HTTP_GET_VARS[POST_FORUM_URL]) : 0;
$root_url = 'http://www.forum-newbeetle.fr/';
if ( $mx_forum_id != 0 )
{
$mx_link_tmp = append_sid($root_url . $phpbb_seo->format_url($forum_row['forum_name']) . '-fmp' .$mx_forum_id . '.html');
$link_title = $forum_row['forum_name'].' - Map';
$mx_sitemap_link = '<a href="'.$mx_link_tmp.'" class="copyright" title="'.$link_title.'">'.$link_title.'</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">SiteMap</a>';
}
else
{
$mx_sitemap_link = '<a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">SiteMap</a>';
}

//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';

$template->set_filenames(array(
   'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);

$template->assign_vars(array(
   'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''),
   'ADMIN_LINK' => $admin_link)
);

$template->pparse('overall_footer');

//
// Close our DB connection.
//
$db->sql_close();

//
// Compress buffered output if required and send to browser
//
if ( $do_gzip_compress )
{
   //
   // Borrowed from php.net!
   //
   $gzip_contents = ob_get_contents();
   ob_end_clean();

   $gzip_size = strlen($gzip_contents);
   $gzip_crc = crc32($gzip_contents);

   $gzip_contents = gzcompress($gzip_contents, 9);
   $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);

   echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
   echo $gzip_contents;
   echo pack('V', $gzip_crc);
   echo pack('V', $gzip_size);
}

exit;

?>

?
merci,
wythi.
wythi
PR2
PR2
 
Messages: 211
Inscription: Mer Déc 06, 2006 12:45 pm
Localisation: Belgique

Messagede philippe » Dim Fév 25, 2007 5:19 pm

Ouaip, j'avais pas mis le fichier entier pour éviter d'avoir 500 lignes de code sur la page :shock:
Philippe
Webmaster du forum de Portail New Beetle | special-t
philippe
phpBB SEO Team
phpBB SEO Team
 
Messages: 601
Inscription: Ven Juin 23, 2006 12:00 pm
Localisation: Région Parisienne

Messagede wythi » Dim Fév 25, 2007 5:27 pm

philippe a écrit:Ouaip, j'avais pas mis le fichier entier pour éviter d'avoir 500 lignes de code sur la page :shock:


voila,
j'ai mis le code en place et envoy la page sur le serveur, mais je ne trouve pas la diférence lol :)
en tout cas merci pour ton aide!!!
;)
wythi
PR2
PR2
 
Messages: 211
Inscription: Mer Déc 06, 2006 12:45 pm
Localisation: Belgique

Messagede philippe » Dim Fév 25, 2007 5:44 pm

JE pensais que tu l'avais déja installé l'auto link :D Lien vers le mod auto link ancienne version

En plus il faut faire cela:

Code: Tout sélectionner
#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/overall_footer.tpl

#
#-----[ FIND ]------------------------------------------
#
</span></div>
#
#-----[ REPLACE WITH ]------------------------------------------
#
</span><br />{U_SITEMAPS}<br /></div>


#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
#
#-----[ AFTER, ADD ]------------------------------------------
#
   'U_SITEMAPS' => $mx_sitemap_link,
Philippe
Webmaster du forum de Portail New Beetle | special-t
philippe
phpBB SEO Team
phpBB SEO Team
 
Messages: 601
Inscription: Ven Juin 23, 2006 12:00 pm
Localisation: Région Parisienne

Messagede wythi » Dim Fév 25, 2007 6:14 pm

a merci!
je mes sa en place tout de suite, vraiment merci a toi philipe
wythi
PR2
PR2
 
Messages: 211
Inscription: Mer Déc 06, 2006 12:45 pm
Localisation: Belgique

Précédente

Retourner vers MODS phpBB2 SEO

 


  • Articles en relation
    Réponses
    Vus
    Dernier message

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 44 invités