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  
 
   
function append_sid doesn't exisit in session.php

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Simple SEO URL
::  
Author Message
cooldude41



Joined: 07 Oct 2008
Posts: 6

function append_sid doesn't exisit in session.phpPosted: Wed Oct 08, 2008 12:00 am    Post subject: function append_sid doesn't exisit in session.php

I'm trying to install simple mod,

When i open sessions.php to follow the steps below, I searched for function append_sid, but it doesn't exist in the session.php file. Ay help will be appreciate, on where to insert the code.


includes/sessions.php

#
#-----[ FIND ]------------------------------------------
#

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

#
#-----[ AFTER, ADD]------------------------------------------
#

// 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

#
Back to top
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 515
Location: Michigan

function append_sid doesn't exisit in session.phpPosted: Wed Oct 08, 2008 12:55 am    Post subject: Re: function append_sid doesn't exisit in session.php

It's there. right before the line;
// Developers using the hook function need to globalise the $_SID and
Back to top
cooldude41



Joined: 07 Oct 2008
Posts: 6

function append_sid doesn't exisit in session.phpPosted: Wed Oct 08, 2008 3:05 am    Post subject: Re: function append_sid doesn't exisit in session.php

Following is the only place in includes/session.php I see append_sid

and read me files say sessions.php, but includes folder has session.php

I used one click install provided by dreamhost.

// Does the user need to change their password? If so, redirect to the
// ucp profile reg_details page ... of course do not redirect if we're already in the ucp
if (!defined('IN_ADMIN') && !defined('ADMIN_START') && $config['chg_passforce'] && $this->data['is_registered'] && $auth->acl_get('u_chgpasswd') && $this->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400))
{
if (strpos($this->page['query_string'], 'mode=reg_details') === false && $this->page['page_name'] != "ucp.$phpEx")
{
redirect(append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=profile&amp;mode=reg_details'));
}
}

return;
}
Back to top
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 515
Location: Michigan

function append_sid doesn't exisit in session.phpPosted: Wed Oct 08, 2008 11:41 am    Post subject: Re: function append_sid doesn't exisit in session.php

Are you running phpbb3 3.0.2 ?
Back to top
cooldude41



Joined: 07 Oct 2008
Posts: 6

function append_sid doesn't exisit in session.phpPosted: Wed Oct 08, 2008 12:34 pm    Post subject: Re: function append_sid doesn't exisit in session.php

Board version: 3.0.2
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15133

function append_sid doesn't exisit in session.phpPosted: Sat Oct 11, 2008 9:58 am    Post subject: Re: function append_sid doesn't exisit in session.php

It looks like you are trying to implement the phpBB2 version of the mod on a phpBB3 board 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  » phpBB3 mod Rewrite  » Simple SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: