0.4.2 => 0.4.4 update problem..

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

0.4.2 => 0.4.4 update problem..

Postby angelus » Tue Jul 22, 2008 9:02 pm

0.4.2 => 0.4.4 update


I am adding this code but this code log out forum me
I don't understand :roll:


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

includes/functions.php
Code: Select all
#
#-----[ 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
angelus
PR0
PR0
 
Posts: 61
Joined: Sat Nov 10, 2007 4:36 pm

Advertisement

Postby dcz » Wed Jul 23, 2008 8:34 am

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: Select all
   // 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: Select all
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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21391
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 14 guests


 
cron