SMF/Xoops Bridge: Cookie and Session Errors When Attempting to Login

Started by zandraya, December 10, 2007, 02:48:54 PM

Previous topic - Next topic

Orstio

Alright,

In your Xoops modules/smf folder is a file named index.php.

Find this in that file:

function integrate_pre_load ()
{
global $modSettings, $sc, $context;

loadSession();
cleanRequest();


Add this immediately after:

//if the person logged in from Xoops, they aren't really logged in here.  No need to trip any alarms trying to logout
if (isset($_REQUEST['action']) && $_REQUEST['action']=='logout')
integrate_logout();


Orstio


Migraine


Migraine

Here are the two main errors I'm receiving repeatedly in the error log:

8: Undefined index: page_title
File: /home/XXXXXXX/public_html/X/modules/smf/index.php
Line: 176

and

8: Undefined variable: ID_MEMBER
/home/XXXXXXXXXXXX/public_html/X/modules/smf/index.php
458

Not sure if they're related to the problems above, but I'm posting just in case...  :-\

Migraine

Here's line 176

   <title>' . $context['page_title'] . '</title>';



And here is line 458



function integrate_verify_user (){   global $xoopsUser, $db_prefix;      if (is_object($xoopsUser) && $xoopsUser->getVar('uname')){      $query = mysql_query("         SELECT ID_MEMBER         FROM {$db_prefix}members         WHERE memberName = '" . $xoopsUser->getVar('uname') . "'");      list($ID_MEMBER) = mysql_fetch_row($query);   }      return $ID_MEMBER;}

Advertisement: