Användare loggas ut med phpBB 2.0.22 och Fetch All

Frågor kring MODdar (modifikationer) för phpBB 2.0.x.

Moderatorer: Supportgrupp, Moderatorgrupp

abbebus
Medlem
Medlem
Inlägg: 13
Blev medlem: 2006-11-06 11:58
Svar: 0

Användare loggas ut med phpBB 2.0.22 och Fetch All

Inlägg av abbebus »

Efter att ha uppdaterat phpBB till 2.0.22 så har jag fått problem med att användare loggas ut.

Jag använder modden/tillägget phpBB Fetch All för att visa de senaste inläggen på min sajts startsida. Varje gång en användare går in på sidan med phpBB Fetch All så loggas denne ut. Detta hände inte med phpBB 2.0.21.

Antar att problemet har något med sessioner att göra. Är det någon som har en lösning på detta så skulle jag vara mycket tacksam!!!

Bifogar koden som ligger i sidhuvudet på sidan där jag använder Fetch All. Misstänker att problemet finns här:

Kod: Markera allt

// This path points to the directory where phpBB is installed. Do
// not enter an URL here. The path must end with a trailing slash.
$phpbb_root_path = '../forum/';

define ('IN_PHPBB', true);

if (!file_exists($phpbb_root_path . 'extension.inc'))
{
    die ('<tt><b>phpBB Fetch All:</b>
          $phpbb_root_path is wrong and does not point to your forum.</tt>');
}

// phpBB related files
include_once ($phpbb_root_path . 'extension.inc');
include_once ($phpbb_root_path . 'common.' . $phpEx);
include_once ($phpbb_root_path . 'includes/bbcode.' . $phpEx);

// Fetch necessary related files
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/common.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/posts.' . $phpEx);

// start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);

// since we are demonstrating span pages we need to set the page offset
if (isset($HTTP_GET_VARS['start']) or isset($HTTP_POST_VARS['start'])) {
    $CFG['posts_span_pages_offset'] = isset($HTTP_GET_VARS['start']) ? $HTTP_GET_VARS['start'] : $HTTP_POST_VARS['start'];
}

$CFG['posts_trim_topic_number'] = 30;
$recent      = phpbb_fetch_posts(29, POSTS_FETCH_LAST);

// disconnect from the database
phpbb_disconnect();

Vilka är online

Användare som besöker denna kategori: 3 och 0 gäster