Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Sep 2008
    Posts
    5
    Plugin Contributions
    0

    Default PHPBB3 LOGIN Integration steps - my solution - doesn't work

    Hi ,

    Anyone help me if any well verse in zencart with phpbb login integration.

    I have copied file from the url
    http://www.zen-cart.com/forum/showthread.php?t=111251
    it works creates account both on zencart and phpbb.

    Also tried all script from

    http://ptalus.##########################/2008/02/h...-zen-cart.html

    I used zip file in forum phpbb folder forum zip

    To integrate common login for both.but it show Excute() error.If i give $db as object to$db->Excute() on zensesssion.php file

    Then i changed to function



    function _sess_write($key, $val) {
    global $db;
    if (!is_object($db)) {
    //PHP 5.2.0 bug workaround ...
    $db = new queryFactory();
    $db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);
    }

    global $SESS_LIFE;

    $expiry = time() + $SESS_LIFE;
    $value = $val;

    $qid = "select count(*) as total
    from " . TABLE_SESSIONS . "
    where sesskey = '" . zen_db_input($key) . "'";

    $total = $db->Execute($qid);

    if ($total->fields['total'] > 0) {
    $sql = "update " . TABLE_SESSIONS . "
    set expiry = '" . zen_db_input($expiry) . "', value = '" . zen_db_input($value) . "'
    where sesskey = '" . zen_db_input($key) . "'";

    return $db->Execute($sql);

    } else {
    $sql = "insert into " . TABLE_SESSIONS . "
    values ('" . zen_db_input($key) . "', '" . zen_db_input($expiry) . "', '" .
    zen_db_input($value) . "')";

    return $db->Execute($sql);

    }
    }

    It shows blank page to me.

    I have spend 2 days but no worked

    Can any give steps and point the files to hard code to work common login.


    Thanks in advance

    Regards,
    Archunan
    Attached Files Attached Files

 

 

Similar Threads

  1. PHPBB3 integration - Newly Registered User group
    By D-Lew in forum General Questions
    Replies: 0
    Last Post: 21 Jun 2011, 09:51 PM
  2. PHPBB3 Integration
    By djdavedawson in forum General Questions
    Replies: 5
    Last Post: 29 Jan 2011, 09:32 AM
  3. PHPBB3 integration
    By joe_glcuk in forum General Questions
    Replies: 1
    Last Post: 21 May 2009, 06:48 PM
  4. Replies: 11
    Last Post: 30 Apr 2008, 06:21 PM
  5. phpBB3 integration
    By puggy in forum General Questions
    Replies: 4
    Last Post: 17 Jan 2008, 04:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg