porrier Posted May 16, 2018 Share Posted May 16, 2018 Hallo! Im alten Shop hatte ich das Modul contact_us_registered eingebaut. Gibt es das nicht mehr für die neue Version osCommerce Online Merchant v2.3.4? Gibt es ein Modul, das auch diese Funktion bietet, dass nur angemeldete Benutzer anfragen können? Grüße Link to comment Share on other sites More sharing options...
Yepi1533005574 Posted May 16, 2018 Share Posted May 16, 2018 Hi, wie wärs damit ? if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link('login.php', '', 'SSL')); } Link to comment Share on other sites More sharing options...
porrier Posted May 17, 2018 Author Share Posted May 17, 2018 vor 21 Stunden, Yepi1533005574 said: Hi, wie wärs damit ? if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link('login.php', '', 'SSL')); } Danke! Sagst Du mir auch noch, in welcher Zeile ich das einbauen soll? Kann leider kein php. Grüße Link to comment Share on other sites More sharing options...
Yepi1533005574 Posted May 17, 2018 Share Posted May 17, 2018 Hi, unter diese Zeile. require('includes/application_top.php'); Link to comment Share on other sites More sharing options...
IngoPhisto Posted May 25, 2018 Share Posted May 25, 2018 On 16.05.2018 at 23:27, Yepi1533005574 said: Hi, wie wärs damit ? Bitte die Zeile mit dem Redirect der Vollständigkeit halber besser so notieren: tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); porrier 1 Link to comment Share on other sites More sharing options...
porrier Posted May 25, 2018 Author Share Posted May 25, 2018 vor 11 Stunden, IngoPhisto said: Bitte die Zeile mit dem Redirect der Vollständigkeit halber besser so notieren: tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); Funktioniert nicht, bekomme einen 404. Link to comment Share on other sites More sharing options...
porrier Posted May 25, 2018 Author Share Posted May 25, 2018 (edited) vor 3 Minuten, porrier said: Funktioniert nicht, bekomme einen 404. Ah, da waren wohl die Quotes bei FILENAME_LOGIN zuviel. FILENAME_LOGIN Edited May 25, 2018 by porrier Link to comment Share on other sites More sharing options...
Yepi1533005574 Posted May 25, 2018 Share Posted May 25, 2018 Ich weiss nicht welche osC-Version du nutzt aber schau mal in includes ob du die Datei filenames.php hast. Wenn nicht dann meinen redirect: if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link('login.php', '', 'SSL')); } ansonsten den von Ingo if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Link to comment Share on other sites More sharing options...
porrier Posted May 26, 2018 Author Share Posted May 26, 2018 vor 15 Stunden, Yepi1533005574 said: Ich weiss nicht welche osC-Version du nutzt aber schau mal in includes ob du die Datei filenames.php hast. Wenn nicht dann meinen redirect: if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link('login.php', '', 'SSL')); } ansonsten den von Ingo if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Es gibt die filenames.php in includes. Der redirect von Ingo funktioniert. Danke euch! Link to comment Share on other sites More sharing options...
Recommended Posts