function append_sid doesn't exisit in session.php

phpBB3 SEO Simple mod Rewrite support forum. This mods performs URL rewriting for phpBB3 in a static way.

Moderator: Moderators

function append_sid doesn't exisit in session.php

Postby cooldude41 » Wed Oct 08, 2008 12:00 am

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

#
cooldude41
 
Posts: 6
Joined: Tue Oct 07, 2008 11:57 pm

Advertisement

Postby Peter77 » Wed Oct 08, 2008 12:55 am

It's there. right before the line;
// Developers using the hook function need to globalise the $_SID and
Peter77
phpBB SEO Team
phpBB SEO Team
 
Posts: 526
Joined: Wed May 10, 2006 9:46 am
Location: Michigan

Postby cooldude41 » Wed Oct 08, 2008 3:05 am

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;
}
cooldude41
 
Posts: 6
Joined: Tue Oct 07, 2008 11:57 pm

Postby Peter77 » Wed Oct 08, 2008 11:41 am

Are you running phpbb3 3.0.2 ?
Peter77
phpBB SEO Team
phpBB SEO Team
 
Posts: 526
Joined: Wed May 10, 2006 9:46 am
Location: Michigan

Postby cooldude41 » Wed Oct 08, 2008 12:34 pm

Board version: 3.0.2
cooldude41
 
Posts: 6
Joined: Tue Oct 07, 2008 11:57 pm

Postby dcz » Sat Oct 11, 2008 9:58 am

It looks like you are trying to implement the phpBB2 version of the mod on a phpBB3 board ;)

++
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: 21291
Joined: Fri Apr 28, 2006 9:03 pm


Return to Simple SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests