phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
[mx sitemaps] Link problem

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
::  
Author Message
fabiomaticus



Joined: 06 Jun 2007
Posts: 46
Location: Taranto - Italy

[mx sitemaps] Link problemPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[mx sitemaps] Link problemPosted: 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 :

Code:
format_url


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
Visit poster's website
fabiomaticus



Joined: 06 Jun 2007
Posts: 46
Location: Taranto - Italy

[mx sitemaps] Link problemPosted: 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 :

Code:
format_url


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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[mx sitemaps] Link problemPosted: Thu Jul 12, 2007 6:18 pm    Post subject: Re: [mx sitemaps] Link problem

Upon the first page load, I see SID in urls, like : -http://www.500forum.it/comunicazioni-aggiornamenti-e-novita-dallo-staff-vf2.html?sid=51ec2867bc26aab466830bd64dc66229
So I guess you need to check the way you installed the cyber aliens guest sessions mod.

Then I forgot to mention that all I said applied to the url rewritten version of the auto link mod : http://www.phpbb-seo.com/boards/phpbb-seo-mods/site-map-auto-link-phpbb-vt5.html#13

Wink

_________________
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
Visit poster's website
fabiomaticus



Joined: 06 Jun 2007
Posts: 46
Location: Taranto - Italy

[mx sitemaps] Link problemPosted: 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

[mx sitemaps] Link problemPosted: Fri Jul 13, 2007 2:17 pm    Post subject: Re: [mx sitemaps] Link problem

If you click www.500forum.it the url on the forum are ex http://www.500forum.it/comunicazioni-aggiornamenti-e-novita-dallo-staff-vf2.html?sid=51ec2867bc26aab466830bd64dc66229

but if you refresh page the url will be correctly.
Why?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[mx sitemaps] Link problemPosted: Fri Jul 13, 2007 5:33 pm    Post subject: Re: [mx sitemaps] Link problem

dcz wrote:

So I guess you need to check the way you installed the cyber aliens guest sessions mod.

Should not be the case with cyber alien guest sessions mod.
And there is realy a different version of the auto link mod for mod rewritten urls.
dcz wrote:

Then I forgot to mention that all I said applied to the url rewritten version of the auto link mod : http://www.phpbb-seo.com/boards/phpbb-seo-mods/site-map-auto-link-phpbb-vt5.html#13

Wink


++

_________________
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
Visit poster's website
fabiomaticus



Joined: 06 Jun 2007
Posts: 46
Location: Taranto - Italy

[mx sitemaps] Link problemPosted: Sat Jul 14, 2007 12:14 pm    Post subject: Re: [mx sitemaps] Link problem

dcz wrote:
Should not be the case with cyber alien guest sessions mod.


Is this? http://www.phpbb.com/community/viewtopic.php?f=16&t=185839&start=165


Quote:
And there is realy a different version of the auto link mod for mod rewritten urls.


I have installed this http://www.phpbb-seo.com/boards/phpbb-seo-mods/site-map-auto-link-phpbb-vt5.html#13
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[mx sitemaps] Link problemPosted: Thu Jul 19, 2007 9:12 am    Post subject: Re: [mx sitemaps] Link problem

The guest session mod, as told in install, can be found here : http://www.phpbb.com/community/viewtopic.php?t=185839

I'm sorry, it looks like I was unclear about the last part of the auto link mod, you just need to additionally perform the code changes proposed here : http://www.phpbb-seo.com/boards/phpbb-seo-mods/site-map-auto-link-phpbb-vt5.html#317
expect you'll have to replace format_url with $phpbb_seo->format_url

Wink

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
Page 1 of 1

Navigation Similar Topics

Jump to: