Hirdetés

Új hozzászólás Aktív témák

  • cozmo

    őstag

    válasz DiabloCorsa #3570 üzenetére

    Na akkor javítom.....

    1. Semmit sem módosítottam hónapok óta, (tehát a hiba azóta fenn állt).
    2. Regizve vagyok userként a saját áruházamban, de nem tűnt fel semmi. (mivel pont csak a regisztrációt nem próbáltam, ezután fogom!)
    3. Senki nem szólt, hogy nem megy (hónapok óta)
    4. Ha egy fájlt módosítok akkor abba ÉN írom bele ami plusz. (éppen a felesleges gubanc miatt, sosem cserélem a fájlt)
    5. Ha megnézted volna a kiegészítés tartalmát amit belinkeltem, láthattad volna, hogy nincs benne ilyen fájl, csak az install procedúrában, hogy mit tegyünk hozzá)
    (Értelemszerüen a hiba abban keresendő, amit hozzá írunk az amúgy hibátlan fájl tartalmához)

    Ezzel még nincs megoldva a probléma :( Várom a javaslatot

    részlet az install ból:

    #-----[ OPEN ]------------------------------------------------------------------
    #
    /catalog/create_account.php
    #
    #-----[ FIND ]------------------------------------------------------------------
    #
    require('includes/application_top.php');
    #
    #-----[ BEFORE, ADD ]-----------------------------------------------------------
    #
    # Note that you have to manually enter your acutal RELATIVE phpBB path again,
    # since this chunk of code takes place before we define any variables.
    #
    // Added for phpBB-osCommerce Bridge
    define(''IN_LOGIN'', true);
    define('IN_PHPBB', true);
    $phpbb_root_path = './phpbb2';
    include($phpbb_root_path . 'extension.inc');
    include($phpbb_root_path . 'common.'.$phpEx);
    // End phpBB-osCommerce Bridge
    #
    #-----[ FIND ]------------------------------------------------------------------
    #
    tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);
    #
    #-----[ BEFORE, ADD ]-----------------------------------------------------------
    #
    // Added for phpBB Intergration
    // Find if username exists already, append a number if it does.
    // Username = first name + last initial + number.
    // This function is repeated in account_edit.php & login.php
    $new_username = strtolower($firstname) . strtolower(substr($lastname,0,1));
    $unQuery = tep_db_query(''SELECT count(*) AS count FROM ''.TABLE_PHPBB_USERS.'' WHERE username LIKE '''.$new_username.''%''');
    if($unQuery) {
    $unResult = tep_db_fetch_array($unQuery);
    if($unResult['count']>0) {
    // Username exists; find out how many there are an append the next # to it.
    $unCount = $unResult['count'];
    $unCount++;
    }
    } else {
    $unCount = '';
    }
    $new_username = $new_username.$unCount;

    // This array set is repeated (with some differences) in login.php
    // We’re only entering the most basic information, relying on
    // the forum defaults for most things.
    $sql_data_array2 = array(
    'user_id' => $customer_id,
    'username' => $new_username,
    'user_password' => md5($password),
    'user_session_time' => time(),
    'user_regdate' => time(),
    'user_email' => $email_address,
    'user_from' => tep_get_zone_name((int)($country),(int)($zone_id),0)
    );
    tep_db_perform(TABLE_PHPBB_USERS, $sql_data_array2);
    // Insert our new user into the default group.
    // If you want your new signups to go to a different group,
    // change ''VALUES ('1''' to the actual user group id.
    tep_db_query(''insert into '' . TABLE_PHPBB_USER_GROUPS . '' (group_id, user_id, user_pending) VALUES ('1', $customer_id, 0)'');
    session_begin($customer_id, encode_ip(tep_get_ip_address()), PAGE_INDEX, FALSE, $autologin, 0);
    $userdata = tep_db_fetch_array($check_bbusers_query);
    $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time;
    tep_db_query(''UPDATE '' . TABLE_PHPBB_USERS . '' SET user_session_time = '''.$current_time.''', user_session_page = '0', user_lastvisit = '''.$last_visit.''' WHERE user_id =''' . $check_customer['customers_id'] . ''''');
    $userdata['user_lastvisit'] = $last_visit;
    // End phpBB-osCommerce Bridge


    [Szerkesztve]

    Eladó dolgaim: https://hardverapro.hu/tag/cozmo

Új hozzászólás Aktív témák