| :: |
| Auteur |
Message |
wythi PR2

Inscrit le: 06 Déc 2006 Messages: 211 Localisation: Belgique
|
Posté le: Dim Fév 25, 2007 3:41 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
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 |
_________________ Forum d'entraide psychologique |
|
| Revenir en haut de page |
|
 |
|
 |
philippe phpBB SEO Team


Inscrit le: 23 Juin 2006 Messages: 529 Localisation: Région Parisienne
|
Posté le: Dim Fév 25, 2007 4:14 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
| 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 Discussions sur la New Beetle | Blog 123-newbeetle | Annuaire Automobile | Forum Scirocco |
|
| Revenir en haut de page |
|
 |
wythi PR2

Inscrit le: 06 Déc 2006 Messages: 211 Localisation: Belgique
|
Posté le: Dim Fév 25, 2007 4:19 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
| 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! |
_________________ Forum d'entraide psychologique |
|
| Revenir en haut de page |
|
 |
wythi PR2

Inscrit le: 06 Déc 2006 Messages: 211 Localisation: Belgique
|
Posté le: Dim Fév 25, 2007 4:34 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
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: |
<?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. |
_________________ Forum d'entraide psychologique |
|
| Revenir en haut de page |
|
 |
philippe phpBB SEO Team


Inscrit le: 23 Juin 2006 Messages: 529 Localisation: Région Parisienne
|
Posté le: Dim Fév 25, 2007 4:46 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
| Citation: |
<?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 Discussions sur la New Beetle | Blog 123-newbeetle | Annuaire Automobile | Forum Scirocco |
|
| Revenir en haut de page |
|
 |
wythi PR2

Inscrit le: 06 Déc 2006 Messages: 211 Localisation: Belgique
|
Posté le: Dim Fév 25, 2007 5:04 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
comme sa:
| Code: |
<?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. |
_________________ Forum d'entraide psychologique |
|
| Revenir en haut de page |
|
 |
philippe phpBB SEO Team


Inscrit le: 23 Juin 2006 Messages: 529 Localisation: Région Parisienne
|
|
| Revenir en haut de page |
|
 |
wythi PR2

Inscrit le: 06 Déc 2006 Messages: 211 Localisation: Belgique
|
Posté le: Dim Fév 25, 2007 5:27 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
| philippe a écrit: | Ouaip, j'avais pas mis le fichier entier pour éviter d'avoir 500 lignes de code sur la page  |
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!!!
 |
_________________ Forum d'entraide psychologique |
|
| Revenir en haut de page |
|
 |
philippe phpBB SEO Team


Inscrit le: 23 Juin 2006 Messages: 529 Localisation: Région Parisienne
|
Posté le: Dim Fév 25, 2007 5:44 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
JE pensais que tu l'avais déja installé l'auto link Lien vers le mod auto link ancienne version
En plus il faut faire cela:
| Code: | #
#-----[ 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 Discussions sur la New Beetle | Blog 123-newbeetle | Annuaire Automobile | Forum Scirocco |
|
| Revenir en haut de page |
|
 |
wythi PR2

Inscrit le: 06 Déc 2006 Messages: 211 Localisation: Belgique
|
Posté le: Dim Fév 25, 2007 6:14 pm Sujet du message: Re: [règler][mx sitemaps] problèmes erreur 404 |
|
|
a merci!
je mes sa en place tout de suite, vraiment merci a toi philipe |
_________________ Forum d'entraide psychologique |
|
| Revenir en haut de page |
|
 |
|
|