Trade Republic - Provisionsfrei Aktien handeln
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: ANLEITUNG: Zweites Kontaktformular einbinden

    OM-D

    • Neu im Forum
    • Beiträge: 40
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #15 am: 01. August 2013, 07:48:51
    Versuch es mal so
    Code: PHP  [Auswählen]
    if (($_GET['coID'] == 7 && isset($_GET['action']) && $_GET['action'] == 'success') || ($_GET['coID'] == 40 && $_GET['action'] == 'success') || ($_GET['coID'] == 41 && $_GET['action'] == 'success')) {

    karsta.de

    • Experte
    • Beiträge: 3.156
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #16 am: 01. August 2013, 08:49:16
    Ich würde es so versuchen:

    Code: PHP  [Auswählen]
    if (($_GET['coID'] == 7 && isset($_GET['action']) && $_GET['action'] == 'success') ||
    ($_GET['coID'] == 40 && isset($_GET['action']) && $_GET['action'] == 'success') ||
    ($_GET['coID'] == 41 && isset($_GET['action']) && $_GET['action'] == 'success')) {
     

    Maggel

    • Neu im Forum
    • Beiträge: 15
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #17 am: 01. August 2013, 13:47:35
    Super es hat geklappt. Ich hatte die Klammern vergessen.

    Maggel

    • Neu im Forum
    • Beiträge: 15
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #18 am: 01. August 2013, 14:28:34
    Bei mir sieht der Code nun so aus:
    Code: PHP  [Auswählen]
    if ($_GET['coID'] != 7 && $_GET['coID'] != 10) {
            require (DIR_WS_INCLUDES.'header.php');
    }
    if (($_GET['coID'] == 7 && isset($_GET['action']) && $_GET['action'] == 'success') || ($_GET['coID'] == 10 && isset($_GET['action']) && $_GET['action'] == 'success')) {
            require (DIR_WS_INCLUDES.'header.php');
    }

    $smarty->assign('CONTENT_HEADING', $shop_content_data['content_heading']);

    if ($_GET['coID'] == 7) {
        //BOF - web28 - 2010-04-03 - outsource email code
            include (DIR_WS_INCLUDES.'contact_us.php');
            //EOF - web28 - 2010-04-03 - outsource email code
    }
    else
    if ($_GET['coID'] == 10) {
    include (DIR_WS_INCLUDES.'contact_new.php');
    }

    wobei ID10 mein zweites Formular ist.

    miCro2k

    • Neu im Forum
    • Beiträge: 15
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #19 am: 01. August 2013, 19:35:44
    Bei mir hat es soweit geklappt das die Fehlermeldung weg ist aber ich hab weder ein normales noch ein 2 oder 3. Kontaktformular :) sondern nur weiße seiten :(

    Sogar wenn ich den Code von Maggel bei mir einbaue und im Conten Manager die ID auf 10 setzte kommt ein fehler weil ihn das letzte "}" stört. Nehm ich das raus hab ich weiße seiten ohne Kontaktformulare

    Maggel

    • Neu im Forum
    • Beiträge: 15
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #20 am: 06. August 2013, 09:39:38
    hast du die neue Datei für das 2. Kontaktformular auch in dem lang/german Ordner erstellt?

    geänderte/neue Dateien sind bei mir jetzt:

    - contact_new.html (template/module)
    - contact_new.php (includes)
    - contact_new.php (lang/german)
    - shop_content.php

    dann eben im Contentmanager einen neuen Content erstellt und die ID in der shop_content.php eingetragen (bei mir war das ID10).

    miCro2k

    • Neu im Forum
    • Beiträge: 15
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #21 am: 11. August 2013, 00:30:15
    So beide Kontaktformulare funktionieren jetzt aber nur halb :( Undzwar:)

    1. Ist das so richtig?
    das aus der xtc_php_mail.inc.php
    Code: PHP  [Auswählen]
      if($_GET['coID'] == 11) {
    $email_subject = "Betreff Kontakt 2";
    }
    if($_GET['coID'] == 12) {
    $email_subject = "Betreff Kontakt 2";
    }
      $mail->Subject = $email_subject;
    oder hab ich mich da etwas zu weit aus dem Fenster gelegt :)?

    2. Weiter gehts damit das sich nach dem Abschicken die komplette Page verschiebt und kein Style mehr vorhaden ist :( natürlich nur solang bis man iwo anders draufgeht aber trotzdem ist das so nix :( Wo hab ich da was vergessen/falsch gemacht?

    3. Dann würd ich gern ein paar neue Felder hinzufügen kann mir aber kein Reim machen wie das geht. Könnt ihr mir da helfen?

    Roberto75

    • Viel Schreiber
    • Beiträge: 836
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #22 am: 13. Juni 2014, 11:59:23
    Hallo,

    ich habe ein neues Formular für Kunden nach der Anleitung hier angelegt, beim Absenden des Formulares jedoch erhalte ich folgende Fehlermeldung:

    Zitat
    Message was not sent

    Mailer Error: SMTP Fehler: Die folgenden Empfänger sind nicht korrekt: contact_new_EMAIL_ADDRESS, contact_new_FORWARDING_STRING

    Diese Meldung erhalte ich, wenn sendmail aktiviert ist:

    Zitat
    Mailer Error: Konnte folgenden Befehl nicht ausführen: /usr/sbin/sendmail -t -i

    Die shop_content sieht in dem geänderten Bereich so aus:

    Code: PHP  [Auswählen]
            //EOF - web28 - 2010-04-03 - outsource email code
    } */
    //neues Kontaktformular Beginn
    if ($_GET['coID'] != 7 && $_GET['coID'] != 18) {
        require (DIR_WS_INCLUDES.'header.php');
    }
     
    if (($_GET['coID'] == 7 && isset($_GET['action']) && $_GET['action'] == 'success') || ($_GET['coID'] == 18 && isset($_GET['action']) && $_GET['action'] == 'success')) {
            require (DIR_WS_INCLUDES.'header.php');
    }
     
    $smarty->assign('CONTENT_HEADING', $shop_content_data['content_heading']);
     
    if ($_GET['coID'] == 7) {
    include (DIR_WS_INCLUDES.'contact_us.php');
    }
    else
    if ($_GET['coID'] == 18) {
    include (DIR_WS_INCLUDES.'contact_new.php');
    } //neues Kontakformular Ende
     else {

            if ($shop_content_data['content_file'] != '') {

    Die xtc_php_mail_inc.php in geänderten Bereich so:

    Code: PHP  [Auswählen]
      for( $i = 0, $n = count($attachments); $i < $n; $i++) {
        $mail->AddAttachment($attachments[$i]);
      }
      if($_GET['coID'] == 18) {
    $email_subject = "Widerruf";
    }
      $mail->Subject = $email_subject;

    Die contact_us.php habe ich kopiert und in contact_new.php umbenannt. Hier der Code:

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: contact_new.php 4321 2013-01-15 16:42:37Z web28 $

       modified eCommerce Shopsoftware
       http://www.modified-shop.org

       Copyright (c) 2009 - 2013 [www.modified-shop.org]
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2006 XT-Commerce

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


    //included by shop_content.php

      //use contact_new.php language file
      require_once (DIR_WS_LANGUAGES.$_SESSION['language'].'/contact_new.php');
     
      $error = false;
      if (isset ($_GET['action']) && ($_GET['action'] == 'send')) {

        //BOF - web28 - 2010-04-03 - New error handling for required fileds
        //jedes Feld kann hier auf die gewünschte Bedingung getestet und eine Fehlermeldung zugeordnet werden
        //BOF error handling
        $err_msg = '';
        if (!xtc_validate_email(trim($_POST['email']))) $err_msg .= ERROR_EMAIL;
        if ((strtoupper($_POST['vvcode']) != $_SESSION['vvcode']) || $_SESSION['vvcode']=='') $err_msg .= ERROR_VVCODE;
            if (trim($_POST['name']) == '') $err_msg .= ERROR_NAME;
            if (trim($_POST['street']) == '') $err_msg .= ERROR_STREET;
            if (trim($_POST['postcode']) == '') $err_msg .= ERROR_POSTCODE;
            if (trim($_POST['city']) == '') $err_msg .= ERROR_CITY;
            if (trim($_POST['order']) == '') $err_msg .= ERROR_ORDER;
            if (trim($_POST['bestelldatum']) == '') $err_msg .= ERROR_BESTELLDATUM;
            if (trim($_POST['lieferdatum']) == '') $err_msg .= ERROR_LIEFERDATUM;
            if (trim($_POST['artikelnummer']) == '') $err_msg .= ERROR_ARTIKELNUMMER;
            if (trim($_POST['kontoinhaber']) == '') $err_msg .= ERROR_KONTOINHABER;
        //EOF error handling

        $smarty->assign('error_message', ERROR_MAIL . $err_msg);

        if ($err_msg != '') $error = true;

        //Wenn kein Fehler Email formatieren und absenden
        if (!$error) {
          // Datum und Uhrzeit
          $datum= date("d.m.Y");
          $uhrzeit= date("H:i");

          // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
          $additional_fields = '';
          if (isset($_POST['company']))  $additional_fields =  EMAIL_COMPANY. $_POST['company'] . "\n" ;
          if (isset($_POST['street']))   $additional_fields .= EMAIL_STREET . $_POST['street'] . "\n" ;
          if (isset($_POST['postcode'])) $additional_fields .= EMAIL_POSTCODE . $_POST['postcode'] . "\n" ;
          if (isset($_POST['city']))     $additional_fields .= EMAIL_CITY . $_POST['city'] . "\n" ;
          if (isset($_POST['phone']))    $additional_fields .= EMAIL_PHONE . $_POST['phone'] . "\n" ;
          if (isset($_POST['fax']))      $additional_fields .= EMAIL_FAX . $_POST['fax'] . "\n" ;
              if (isset($_POST['order']))      $additional_fields .= EMAIL_ORDER . $_POST['order'] . "\n" ;
              if (isset($_POST['bestelldatum']))      $additional_fields .= EMAIL_BESTELLDATUM . $_POST['bestelldatum'] . "\n" ;
              if (isset($_POST['lieferdatum']))      $additional_fields .= EMAIL_LIEFERDATUM . $_POST['lieferdatum'] . "\n" ;
              if (isset($_POST['artikelnummer']))      $additional_fields .= EMAIL_ARTIKELNUMMER . $_POST['artikelnummer'] . "\n" ;
              if (isset($_POST['payment']))      $additional_fields .= EMAIL_PAYMENT . $_POST['payment'] . "\n" ;
              if (isset($_POST['paypal']))      $additional_fields .= EMAIL_PAYPAL . $_POST['paypal'] . "\n" ;
              if (isset($_POST['kontoinhaber']))      $additional_fields .= EMAIL_KONTOINHABER . $_POST['kontoinhaber'] . "\n" ;
              if (isset($_POST['iban']))      $additional_fields .= EMAIL_IBAN . $_POST['iban'] . "\n" ;
              if (isset($_POST['bic']))      $additional_fields .= EMAIL_BIC . $_POST['bic'] . "\n" ;
              if (isset($_POST['bankname']))      $additional_fields .= EMAIL_BANKNAME . $_POST['bankname'] . "\n" ;
          // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)

          // BOF - Tomcraft - 2009-11-05 - Advanced contact form (check for USE_CONTACT_EMAIL_ADDRESS)
          $use_contact_email_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'USE_CONTACT_EMAIL_ADDRESS'");
          $use_contact_email = xtc_db_fetch_array($use_contact_email_query);
          if ($use_contact_email['configuration_value'] == 'true') {
              $email = trim(contact_new_EMAIL_ADDRESS);
            $name = contact_new_NAME;
            $notify =  EMAIL_NOTIFY . "\n\n";
          } else {
            $email = trim($_POST['email']);
            $name = $_POST['name'];
            $notify =  '';
          }
          // EOF - Tomcraft - 2009-11-05 - Advanced contact form (check for USE_CONTACT_EMAIL_ADDRESS)

          $email_layout = sprintf(EMAIL_SENT_BY, contact_new_NAME, contact_new_EMAIL_ADDRESS, $datum , $uhrzeit) . "\n" .
                  "--------------------------------------------------------------" . "\n" . $notify .
                  EMAIL_NAME. $_POST['name'] . "\n" .
                  EMAIL_EMAIL. trim($_POST['email']) . "\n" .
                  // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
                  $additional_fields .
                  // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
                  "\n".EMAIL_MESSAGE."\n ". $_POST['message_body'] . "\n";

          xtc_php_mail($email,
                 $name,
                 contact_new_EMAIL_ADDRESS,
                 contact_new_NAME,
                 contact_new_FORWARDING_STRING,
                 $email,
                 $name,
                 '',
                 '',
                 contact_new_EMAIL_SUBJECT,
                 nl2br($email_layout),
                 $email_layout
                 );

          if (!isset ($mail_error)) {
            xtc_redirect(xtc_href_link(FILENAME_CONTENT, 'action=success&coID='.(int) $_GET['coID']));
          } else {
            $smarty->assign('error_message', $mail_error);
          }
        }
        //EOF - web28 - 2010-04-03 - New error handling for required fileds
      }

      $smarty->assign('CONTACT_HEADING', $shop_content_data['content_heading']);
      if (isset ($_GET['action']) && ($_GET['action'] == 'success')) {
        $smarty->assign('success', '1');
        $smarty->assign('BUTTON_CONTINUE', '<a href="'.xtc_href_link(FILENAME_DEFAULT).'">'.xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE).'</a>');

      } else {
        if ($shop_content_data['content_file'] != '') {
          ob_start();
          if (strpos($shop_content_data['content_file'], '.txt'))
            echo '<pre>';
          include (DIR_FS_CATALOG.'media/content/'.$shop_content_data['content_file']);
          if (strpos($shop_content_data['content_file'], '.txt'))
            echo '</pre>';
        $contact_content = ob_get_contents();
        ob_end_clean();
        } else {
          $contact_content = $shop_content_data['content_text'];
        }
        require (DIR_WS_INCLUDES.'header.php');

        // BOF - Tomcraft - 2009-11-05 - Advanced contact form (fix override by error request)
        if (isset ($_SESSION['customer_id']) && !$error) {
        // EOF - Tomcraft - 2009-11-05 - Advanced contact form (fix override by error request)
          $customers_name = $_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name'];
          // BOF - Dokuman - 2009-09-04: preallocate email address on contact form
          //$email_address = $_SESSION['customer_email_address'];
          $c_query = xtc_db_query("SELECT * FROM ".TABLE_CUSTOMERS." WHERE customers_id='".(int)$_SESSION['customer_id']."'");
          $c_data  = xtc_db_fetch_array($c_query);
          $email_address = stripslashes($c_data['customers_email_address']);
          // EOF - Dokuman - 2009-09-04: preallocate email address on contact form
          // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
          $phone   = stripslashes($c_data['customers_telephone']);
          $fax     = stripslashes($c_data['customers_fax']);
          // BOF - Dokuman - 2010-10-14: preallocate additional fields on contact form correctly
          //$company  = stripslashes($c_data['entry_company']);
          //$street   = stripslashes($c_data['entry_street_address']);
          //$postcode = stripslashes($c_data['entry_postcode']);
          //$city     = stripslashes($c_data['entry_city']);
          $address_query = xtc_db_query("select
                            entry_company,
                            entry_street_address,
                            entry_city,
                            entry_postcode
                            from "
    . TABLE_ADDRESS_BOOK . "
                            where customers_id = '"
    . (int)$_SESSION['customer_id'] . "'
                            and address_book_id = '"
    . (int)$_SESSION['customer_default_address_id'] . "'");
          $address_data = xtc_db_fetch_array($address_query);
          $company  = stripslashes($address_data['entry_company']);
          $street   = stripslashes($address_data['entry_street_address']);
          $postcode = stripslashes($address_data['entry_postcode']);
          $city     = stripslashes($address_data['entry_city']);
          // EOF - Dokuman - 2010-10-14: preallocate additional fields on contact form correctly
          // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
        } elseif (!$error) {
            $customers_name = '';
            $email_address = '';
            $phone = '';
            $company = '';
            $street = '';
            $postcode = '';
            $city = '';
            $fax = '';
        }

        // BOF - Tomcraft - 2009-11-05 - Advanced contact form (product question)
        $products_info = '';
        // BOF - web28 - 2010-07-14 -  false clamp fixing
        //if (trim($_GET['products_name'] != '')) {$products_info= trim($_GET['products_name']);}
        //if (trim($_GET['products_model'] != '')) {$products_info= trim($products_info . ' - ' . trim($_GET['products_model']));}
        //if ($products_info != '') {$products_info = trim($_GET['question'])."\n" . $products_info . "\n"; }
        if (!empty($_GET['products_name'])) {$products_info = trim($_GET['products_name']);}
        if (!empty($_GET['products_model'])) {$products_info = trim($products_info . ' - ' . trim($_GET['products_model']));}
        if (!empty($_GET['question'])) {$products_question = trim($_GET['question'])."\n";}
        if ($products_info != '') {$products_info = $products_question . $products_info . "\n"; }
        // EOF - web28 - 2010-07-14 -  false clamp fixing
        if (!$error) $message_body = $products_info . "\n";
        // EOF - Tomcraft - 2009-11-05 - Advanced contact form (product question)

        $smarty->assign('CONTACT_CONTENT', $contact_content);
        //BOF - Dokuman - 2009-12-23 - send contact form information with SSL
        //$smarty->assign('FORM_ACTION', xtc_draw_form('contact_new', xtc_href_link(FILENAME_CONTENT, 'action=send&coID='.(int) $_GET['coID'])));
        $smarty->assign('FORM_ACTION', xtc_draw_form('contact_new', xtc_href_link(FILENAME_CONTENT, 'action=send&coID='.(int) $_GET['coID'], 'SSL')));
        //EOF - Dokuman - 2009-12-23 - send contact form information with SSL
        //BOF - web28 - 2009-07-28 - FIX SSL captcha image path
        $smarty->assign('VVIMG', '<img src="'.xtc_href_link(FILENAME_DISPLAY_VVCODES,'','SSL').'" alt="Captcha" />');
        //EOF - web28 - 2009-07-28 - FIX SSL captcha image path
        $smarty->assign('INPUT_CODE', xtc_draw_input_field('vvcode', '', 'size="8" maxlength="6"', 'text', false));
        $smarty->assign('INPUT_NAME', xtc_draw_input_field('name', ($error ? $_POST['name'] : $customers_name), 'size="30"'));
        $smarty->assign('INPUT_EMAIL', xtc_draw_input_field('email', ($error ? $_POST['email'] : $email_address), 'size="30"'));
        // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
        $smarty->assign('INPUT_PHONE', xtc_draw_input_field('phone', ($error ? $_POST['phone'] : $phone), 'size="30"'));
        $smarty->assign('INPUT_COMPANY', xtc_draw_input_field('company', ($error ? $_POST['company'] : $company), 'size="30"'));
        $smarty->assign('INPUT_STREET', xtc_draw_input_field('street', ($error ? $_POST['street'] : $street), 'size="30"'));
        $smarty->assign('INPUT_POSTCODE', xtc_draw_input_field('postcode', ($error ? $_POST['postcode'] : $postcode), 'size="30"'));
        $smarty->assign('INPUT_CITY', xtc_draw_input_field('city', ($error ? $_POST['city'] : $city), 'size="30"'));
        $smarty->assign('INPUT_FAX', xtc_draw_input_field('fax', ($error ? $_POST['fax'] : $fax), 'size="30"'));
            $smarty->assign('INPUT_ORDER', xtc_draw_input_field('order', ($error ? $_POST['order'] : $order), 'size="60"'));
            $smarty->assign('INPUT_BESTELLDATUM', xtc_draw_input_field('bestelldatum', ($error ? $_POST['bestelldatum'] : $bestelldatum), 'size="17"'));
            $smarty->assign('INPUT_LIEFERDATUM', xtc_draw_input_field('lieferdatum', ($error ? $_POST['lieferdatum'] : $lieferdatum), 'size="17"'));
            $smarty->assign('INPUT_ARTIKELNUMMER', xtc_draw_input_field('artikelnummer', ($error ? $_POST['artikelnummer'] : $artikelnummer), 'size="60"'));
            $smarty->assign('INPUT_PAYMENT', xtc_draw_input_field('payment', ($error ? $_POST['payment'] : $payment), 'size="40"'));
            $smarty->assign('INPUT_PAYPAL', xtc_draw_input_field('paypal', ($error ? $_POST['paypal'] : $paypal), 'size="40"'));
            $smarty->assign('INPUT_KONTOINHABER', xtc_draw_input_field('kontoinhaber', ($error ? $_POST['kontoinhaber'] : $fax), 'size="30"'));
            $smarty->assign('INPUT_IBAN', xtc_draw_input_field('iban', ($error ? $_POST['iban'] : $iban), 'size="35"'));
            $smarty->assign('INPUT_BIC', xtc_draw_input_field('bic', ($error ? $_POST['bic'] : $bic), 'size="35"'));
            $smarty->assign('INPUT_BANKNAME', xtc_draw_input_field('bankname', ($error ? $_POST['bankname'] : $bankname), 'size="40"'));
        // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
        // BOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form
        //$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? xtc_db_input($_POST['message_body']) : $first_name)));
        // BOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux.
        //$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? $_POST['message_body'] : $message_body)));
        $smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 45, 15, ($error ? $_POST['message_body'] : $message_body)));
        // EOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux.
        // EOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form
        $smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_send.gif', IMAGE_BUTTON_SEND));
        $smarty->assign('FORM_END', '</form>');
      }

      $smarty->assign('language', $_SESSION['language']);
      $smarty->caching = 0;
      $main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/contact_new.html');
    ?>

    Kann es daran liegen, dass ich unter xtc_php_mail($email, contact_us in contact_new geändert habe? Wahrscheinlich darf da nichts gemacht werden?

    Es wäre schön, wenn ich Hilfe bekommen würde.

    Gruß

    Roberto75

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.367
    • Geschlecht:
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #23 am: 13. Juni 2014, 12:56:39
    [...]
    Kann es daran liegen, dass ich unter xtc_php_mail($email, contact_us in contact_new geändert habe? Wahrscheinlich darf da nichts gemacht werden?
    [...]

    Ja! Du hast an diversen Stellen einfach blindlinks "contact" oder eben auch "CONTACT" ersetzt durch "contact_new". :oh-no:

    Grüße

    Torsten

    19Katha88

    • Neu im Forum
    • Beiträge: 45
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #24 am: 11. April 2017, 12:38:58
    Gibt es hier auch eine Lösung für die Version 2.0?
    Oder kann ich das auch genauso verwenden?

    karsta.de

    • Experte
    • Beiträge: 3.156
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #25 am: 14. November 2018, 00:06:02
    Ich habe ein 2.Kontaktformular nach dieser Anleitung in die Version 2.0.4.2 eingebaut. Funktioniert solange alles bestens bis ich die Änderung in der shop_content.php in Zeile 115 vornehmen möchte und beide coID's einfügen will.
    Code: PHP  [Auswählen]
      if (($_GET['coID'] != 7) || (isset($_GET['action']) && $_GET['action'] == 'success') || $content_exists == 0) {
        require (DIR_WS_INCLUDES.'header.php');
      }

    Jeweils einzeln funktioniert jede coID für das jeweilige Formular. Inzwischen habe schon alle möglichen Kombinationen durch und komme leider nicht drauf wie es aussehen muß, dass es mit 2 coID's funktioniert.

    Vielleicht hat das schon irgend jemand erfolgreich umgesetzt und hat hier einen Tipp für mich.

    BG kgd

    web-looks

    • Mitglied
    • Beiträge: 136
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #26 am: 14. November 2018, 05:03:51
    @kgd: So müsste es funktionieren:

    Code: PHP  [Auswählen]
    if (($_GET['coID'] != 7 && $_GET['coID'] != 18) || (isset($_GET['action']) && $_GET['action'] == 'success') || $content_exists == 0) {
        require (DIR_WS_INCLUDES.'header.php');
      }

    18 dann durch Deine neue cID ersetzen.

    karsta.de

    • Experte
    • Beiträge: 3.156
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #27 am: 14. November 2018, 07:26:53
    Oh man  :wallbash:, ich hatte die ganze Zeit eine OR-Blockade. Vielen Dank, mit AND funktionierts.  :-B

    BG kgd

    web-looks

    • Mitglied
    • Beiträge: 136
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #28 am: 14. November 2018, 11:56:38
    Ja oftmals sind es kleine Fehler, die uns zum verzweifeln bringen :-D

    Buggyboy

    • Fördermitglied
    • Beiträge: 968
    • Geschlecht:
    Re: ANLEITUNG: Zweites Kontaktformular einbinden
    Antwort #29 am: 02. Februar 2019, 16:24:10
    Hallo!

    Das ist dann aber alles nicht update sicher eingebaut, oder?

    LG
    Peter
    0 Antworten
    2237 Aufrufe
    27. August 2012, 22:13:51 von shark007
    4 Antworten
    4351 Aufrufe
    29. Juli 2014, 18:05:05 von astaller
    3 Antworten
    2746 Aufrufe
    18. Juni 2010, 10:13:41 von mop81
               
    anything