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  
 
   
0.4.2 => 0.4.4 update problem..

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



Joined: 10 Nov 2007
Posts: 25

0.4.2 => 0.4.4 update problem..Posted: Tue Jul 22, 2008 9:02 pm    Post subject: 0.4.2 => 0.4.4 update problem..

0.4.2 => 0.4.4 update


I am adding this code but this code log out forum me
I don't understand Rolling Eyes


thanks,sorry my english..
-------------------
server: localhost
phpbb v. : 3.0.2

includes/functions.php
Code:
#
#-----[ FIND ]------------------------------------------
#
function append_sid($url, $params = false, $is_amp = true, $session_id = false)
{
   global $_SID, $_EXTRA_URL, $phpbb_hook;
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
   // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ REPLACE WITH ]------------------------------------------
#
function append_sid($url, $params = false, $is_amp = true, $session_id = false)
{
   global $_SID, $_EXTRA_URL, $phpbb_hook;
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   // We bypass the hook function here, the same effect as a standalone hook, which we want, but faster ;-)
   global $phpbb_seo;
   if (!empty($phpbb_seo->seo_opt['url_rewrite'])) {
      return $phpbb_seo->url_rewrite($url, $params, $is_amp, $session_id);
   } else
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

0.4.2 => 0.4.4 update problem..Posted: Wed Jul 23, 2008 8:34 am    Post subject: Re: 0.4.2 => 0.4.4 update problem..

Well these instruction are for when you would update the mod rewrite, the 3.0.2 files do not contain the mod rewrite code, it could only be this.

All you need to do for the whole append_sid function is to add :

Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   // We bypass the hook function here, the same effect as a standalone hook, which we want, but faster ;-)
   global $phpbb_seo;
   if (!empty($phpbb_seo->seo_opt['url_rewrite'])) {
      return $phpbb_seo->url_rewrite($url, $params, $is_amp, $session_id);
   } else
   // www.phpBB-SEO.com SEO TOOLKIT END


after :
Code:
function append_sid($url, $params = false, $is_amp = true, $session_id = false)
{
   global $_SID, $_EXTRA_URL, $phpbb_hook;


if you start from a the original code of the append_sid function.

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

Navigation Similar Topics

Jump to: