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  
 
   
SID

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
mgl



Joined: 30 Sep 2007
Posts: 23

SIDPosted: Sun Sep 30, 2007 2:26 pm    Post subject: SID

Hello!

First of all, I want to congratulate the team of phpbb-seo, for their excellent work! I believe you are without any doubt the authority in phpbb seo!

What brings me here, is the fact that the sid gets "attached" at the end of the link for all guests. I have modified the append_sid function in includes/sessions.php, but the sid still gets appended.

Code:
function append_sid($url, $non_html_amp = false)
{
   global $SID;

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
   $url = $phpbb_seo->url_rewrite($url, $non_html_amp);
   // www.phpBB-SEO.com SEO TOOLKIT END
        if ($userdata['user_id'] == ANONYMOUS)
        {
            //No SID for you!
            return $url;
        }
   if ( !empty($SID) && !preg_match('#sid=#', $url) )
   {
      $url .= ( ( strpos($url, '?') !== false ) ?  ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
   }


   return $url;
}

?>



Can anyone tell me what's wrong?



cheers Smile


EDIT: I just noticed I posted on the wrong forum, I would appreciate if any mod would move it to the right place Smile
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

SIDPosted: Mon Oct 01, 2007 10:31 am    Post subject: Re: SID

And welcome Very Happy

Have you installed the guest sessions mod as advised in the install ?

++

_________________
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
mgl



Joined: 30 Sep 2007
Posts: 23

SIDPosted: Mon Oct 01, 2007 12:45 pm    Post subject: Re: SID

Humm, no I just added the
Code:

if ($userdata['user_id'] == ANONYMOUS)
{
     //No SID for you!
     return $url;
}


I thought that was enough
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

SIDPosted: Wed Oct 03, 2007 7:51 am    Post subject: Re: SID

Well it isn't.

The guest session mod really is required with phpBB2, and it's pretty simple to install (one file to edit).

++

_________________
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 mod Rewrite
Page 1 of 1

Navigation

Jump to: