Jump to content

jens.liebermann

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Jens Liebermann
  1. Hats off to Jens! Goes out of their way to help other users!

    Thank you!

  2. jens.liebermann

    Information Pages Unlimited v1.0

    btw., i remember that i had also problems with the missing 'edit' button, but it was in fact the language problem. my language is german (2), so you may look at your tables and compare... i changed also the value of the 'locked' field in information_group, since i renamed the constants (see above). my tables (working): select * from information_group where information_group_id = 2; | information_group_id | information_group_title | information_group_description | sort_order | visible | locked | | 2 | Welcome message | Welcome message | 2 | 1 | sort_order,parent_id,visible | select information_id,information_title,parent_id,sort_order,language_id from information where information_group_id=2; +----------------+--------------------------------+-----------+------------+-------------+ | information_id | information_title | parent_id | sort_order | language_id | +----------------+--------------------------------+-----------+------------+-------------+ | 1 | HEADING_TITLE | 0 | 1 | 2 | | 2 | TEXT_GREETING_PERSONAL_ADD | 0 | 2 | 2 | | 3 | TEXT_GREETING_PERSONAL_RELOGON | 0 | 3 | 2 | | 4 | TEXT_GREETING_GUEST_ADD | 0 | 4 | 2 | | 5 | TEXT_MAIN | 0 | 5 | 2 | | 1 | HEADING_TITLE | NULL | 1 | 1 | | 2 | TEXT_GREETING_PERSONAL_ADD | NULL | 2 | 1 | | 3 | TEXT_GREETING_PERSONAL_RELOGON | NULL | 3 | 1 | | 4 | TEXT_GREETING_GUEST_ADD | NULL | 4 | 1 | | 5 | TEXT_MAIN | NULL | 5 | 1 | +----------------+--------------------------------+-----------+------------+-------------+ i had the problem that the supplied information_additional.sql script caused errors and the records where not inserted; because of key violation. i had some entries in the information table already; so it may be necessary to change the 'id' value to unused values. the key of the table is id+language_id
  3. jens.liebermann

    Information Pages Unlimited v1.0

    yes. it's not elegant, but it works for me. just did the modifications as described in the readme, and then the following: renamed TEXT_GREETING_PERSONAL and TEXT_GREETING_GUEST in the database; for me the following statement did the job: update information set information_title='TEXT_GREETING_GUEST_ADD' where information_id=4 and information_group_id=2; update information set information_title='TEXT_GREETING_PERSONAL_ADD' where information_id=2 and information_group_id=2; the information_id value may differ in your database, use select information_id,information_title from information where information_group_id=2 to determine. and then changed the tep_information_customer_greeting() in catalog\includes\functions\information.php to function tep_information_customer_greeting() { global $customer_id, $customer_first_name; if (defined (TEXT_GREETING_PERSONAL_ADD)){ $tgp = TEXT_GREETING_PERSONAL_ADD; } else { $tgp = TEXT_GREETING_PERSONAL; } if (defined ('TEXT_GREETING_GUEST_ADD')){ $tgg = TEXT_GREETING_GUEST_ADD; } else { $tgg = TEXT_GREETING_GUEST; } if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_string = sprintf($tgp, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW)); } else { $greeting_string = sprintf($tgg, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); } return $greeting_string; } TEXT_GREETING_PERSONAL_RELOGON seems not to be in use with my shop installation; so i ignored it.
  4. jens.liebermann

    Information Pages Unlimited v1.0

    Hi there, just installed oscommerce 2.2rc1, some modifications, and ipuv203. everything's fine, except the welcome message; it changes only the heading and leaves the greetings as they are. i looked at the code, and i think i found the problem; but i'm no expert, and if i'm right it should not work on any installation, so i'm probably wrong: i inserted the lines require_once(DIR_WS_FUNCTIONS . 'information.php'); tep_information_customer_greeting_define(); // Should be called before the Default Language is defined just before the require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); as suggested. when i'm right, the function tep_information_customer_greeting_define() defines the constants used in the greeting text, e.g. TEXT_GREETING_GUEST. but this is also defined by oscommerce in MYLANGUAGE.php in the languages dir. maybe this is the reason to include the lines BEFORE the language definition. but nearly the first line in my index.php includes application_top, and application_top includes the languages, so TEXT_GREETING_GUEST is already defined and cannot be changed. i could modify the code, use my own constants in tep_information_customer_greeting(), but i want to KNOW whats wrong with the code (or my brain) anyway.... thanks
×