| :: |
| Author |
Message |
fabiomaticus
Joined: 06 Jun 2007 Posts: 46 Location: Taranto - Italy
|
Posted: Mon Jul 09, 2007 6:18 pm Post subject: [mx sitemaps] Link problem |
|
|
In my site www.500forum.it in overall footer after "Powered by phpBB © 2001, 2005 phpbb.it" there are two link:
- FORUM MAP
- SITE MAP
The link are not correct:
-http://www.500forum.it/forum/sitemaps.php?fim
-http://www.500forum.it/forum/sitemaps.php
The correct link are:
-http://www.500forum.it/sitemaps.php?fim
-http://www.500forum.it/sitemaps.php
How can i adjust it? |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Jul 11, 2007 6:02 pm Post subject: Re: [mx sitemaps] Link problem |
|
|
Looks like you are using the good old auto link mod. If so two things.
First, you need to enter the proper url to the sitemaps file upon install, it is hard coded, so just get rid of the extra "forum/" in page_tail.php.
Then, the mod was not updated to 0.2.x rewriting yet, but it's still possible to use it as is, if you just replace all occurrences of :
with
| Code: | | $phpbb_seo->format_url |
in includes/page_tail.php
and do the same with "-vf", replacing them all with "-f".
As well, it looks like you still need to install the cyber alien guest's sessions mod.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 46 Location: Taranto - Italy
|
Posted: Wed Jul 11, 2007 11:51 pm Post subject: Re: [mx sitemaps] Link problem |
|
|
| dcz wrote: | | First, you need to enter the proper url to the sitemaps file upon install, it is hard coded, so just get rid of the extra "forum/" in page_tail.php. |
Ok.
| Quote: | Then, the mod was not updated to 0.2.x rewriting yet, but it's still possible to use it as is, if you just replace all occurrences of :
with
| Code: | | $phpbb_seo->format_url |
in includes/page_tail.php
and do the same with "-vf", replacing them all with "-f". |
I don't understand.
This is my includes/page_tail.php
| Code: | <?php
//-- mod : Garage ----------------------------------------------------------------------------------------------------------
/***************************************************************************
* 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.500forum.it/';
if ( $mx_forum_id != 0 )
{
$mx_link_tmp = append_sid($root_url . 'sitemaps.'. $phpEx .'?fmp='. $mx_forum_id);
$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 . 'sitemaps.'. $phpEx . '?fim').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.'. $phpEx).'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
else
{
$mx_sitemap_link = '<a href="'.append_sid($root_url . 'sitemaps.'. $phpEx . '?fim').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.'. $phpEx).'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
//End mx_Sitemaps Auto link Add On http://www.phpbb-seo.com/
//
// 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 /><a href="http://www.500forum.it/forum/garage.php?mode=garage_pending">Valida Garage</a><br /><br />
' : '';
$template->set_filenames(array(
'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);
$template->assign_vars(array(
'U_SITEMAPS' => $mx_sitemap_link,
'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;
?> |
| Quote: | | As well, it looks like you still need to install the cyber alien guest's sessions mod. |
it is already installed
++[/quote] |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 46 Location: Taranto - Italy
|
Posted: Thu Jul 12, 2007 11:06 pm Post subject: Re: [mx sitemaps] Link problem |
|
|
| I have installed Search Engine.... and Auto link Phpbb... |
|
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 46 Location: Taranto - Italy
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 46 Location: Taranto - Italy
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
|
|