Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Help!Footer was gone when I use fast secure contact form php script version

    Hi, need your help, my footer was gone when I installed the fast secure contact form php script version. I used that for my contact us form and parts request form. I am using zencart 1.3.9h. Please help. Thanks a lot!

  2. #2
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,982
    Plugin Contributions
    1

    Default Re: Help!Footer was gone when I use fast secure contact form php script version

    The script you have added is causing a php error that is stopping the rest of the page loading.

    You can look in the cache folder to see the error logs and see what is going on.

    Without more information than you have given I can't give more advice other than to remove it.

  3. #3
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Help!Footer was gone when I use fast secure contact form php script version

    Quote Originally Posted by niccol View Post
    The script you have added is causing a php error that is stopping the rest of the page loading.

    You can look in the cache folder to see the error logs and see what is going on.

    Without more information than you have given I can't give more advice other than to remove it.

    Thanks for that quick reply. Sorry here is the link to the site


    https://spares.cncmachinery.com.au/i...age=page&id=16

  4. #4
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,982
    Plugin Contributions
    1

    Default Re: Help!Footer was gone when I use fast secure contact form php script version

    Well, yes, that looks like a php error created by that alteration.

    Without being able to look at the code of what has been added I don't think that anyone will be able to comment much further than that.

    You really need to look at the error logs and try and see what those errors are.

    Sorry, I can't be of much more help than that.

  5. #5
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Help!Footer was gone when I use fast secure contact form php script version

    Quote Originally Posted by niccol View Post
    Well, yes, that looks like a php error created by that alteration.

    Without being able to look at the code of what has been added I don't think that anyone will be able to comment much further than that.

    You really need to look at the error logs and try and see what those errors are.

    Sorry, I can't be of much more help than that.

    - I looked at the error logs in rootfolder/cache but the errors I found there dont pertain to the two concerned pages.

    - which code am I going to modify for this? This is the code for the contacts page public_html/contact.php


    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title><script type="text/javascript" src="https://spares.cncmachinery.com.au/contact-files/contact-form.js"></script>
    <style type="text/css">
    
    body {
    	margin-left: 0px;
    	margin-top: 10px;
    	margin-right: 0px;
    	margin-bottom: 0px;
          font-family:Arial !important;
          font-size:12px;
         }
    
    #fsc_message2
    {
    font-family: Arial !important;
    }
    </style>
    </head>
    
    <body>
    <?php
    $contact_form = 2; // set desired form number.
    $contact_form_path = '/home/cncmach/public_html/contact-files/'; // set path to /contact-files/ with slash on end.
    require $contact_form_path . 'contact-form-run.php';
    ?>
    </body>
    </html>
    and this is the code for the spares request page public_html/spares_request.php


    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title><script type="text/javascript" src="https://spares.cncmachinery.com.au/contact-files/contact-form.js"></script>
    </head>
    
    <body>
    <?php
    $contact_form = 1; // set desired form number.
    $contact_form_path = '/home/cncmach/public_html/contact-files/'; // set path to /contact-files/ with slash on end.
    require $contact_form_path . 'contact-form-run.php';
    ?>
    </body>
    </html>

    I used Fast Secure contact form php script version.

    Thanks

  6. #6
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Help!Footer was gone when I use fast secure contact form php script version

    anyone please help

  7. #7
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,982
    Plugin Contributions
    1

    Default Re: Help!Footer was gone when I use fast secure contact form php script version

    It is really hard to fault find this remotely without being able to see the code.

    You have errors on that page.

    Firstly, looking at the source there is not a closing tag </iframe> to the iframe that is holding the form.

    Secondly there is a javascript error which has to do with the javascript method 'kwicks'.

    Thirdly you are loading jQuery twice in different versions of it. Which may well be causing the above two errors.

    The first thing to do is work out why you are loading jQuery twice. Once I guess from the site and once from Fast Secure. You need to disable one of those.

  8. #8
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Help!Footer was gone when I use fast secure contact form php script version

    Quote Originally Posted by niccol View Post
    Firstly, looking at the source there is not a closing tag </iframe> to the iframe that is holding the form.
    by looking at firebug, i saw that it has </iframe>

    Code:
     <fieldset>
    <iframe width="700" height="900" frameborder="0" src="https://spares.cncmachinery.com.au/spares_request.php">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>Untitled Document</title>
    <script src="https://spares.cncmachinery.com.au/contact-files/contact-form.js" type="text/javascript">
    </head>
    <body>
    <p>
    <font size="2" face="Arial">
    </p>
    <a id="FSCForm1" name="FSCForm1"></a>
    <div style="width:375px;">
    <form id="fsc_form1" method="post" action="https://spares.cncmachinery.com.au/spares_request.php#FSCForm1" enctype="multipart/form-data">
    </div>
    </body>
    </html>
    </iframe>
    </fieldset>
    I hope this is the right form for contacts. Its in public_html/contact-files/contact-form-display.php. Here is the code

    Code:
        <form '.$have_attach.'action="'.$this->form_action_url.'#FSCForm'.$form_id_num.'" id="fsc_form'.$form_id_num.'" method="post">
        
           <legend>';
         $string .= ($fsc_opt['title_border'] != '') ? $fsc_opt['title_border'] : _(' ');
        $string .= '</legend>';
    } else {
    
     $string .= '
    <form '.$have_attach.'action="'.$this->form_action_url.'#FSCForm'.$form_id_num.'" id="fsc_form'.$form_id_num.'" method="post">
    ';
    }
    
    // check attachment directory
    $attach_dir_error = 0;
    if ($have_attach){
    	$attach_dir = $this->site_path . '/attachments/';
        $this->init_temp_dir($attach_dir);
        if ($fsc_opt['php_mailer_enable'] == 'php'){
           $this->fsc_error = 1;
    	   $attach_dir_error = _( 'This contact form has file attachment fields. Attachments are only supported when the Send E-Mail function is set to phpmailer. You can find this setting on the contact form settings page.' );
        }
    	if ( !is_dir($attach_dir) ) {
            $this->fsc_error = 1;
    		$attach_dir_error = sprintf( _( 'This contact form has file attachment fields, but the temporary folder for the files (%s) does not exist or is not writable. Create the folder or change its permission manually.' ), $attach_dir );
    	} else if(!is_writable($attach_dir)) {
            $this->fsc_error = 1;
    		$attach_dir_error = sprintf( _( 'This contact form has file attachment fields, but the temporary folder for the files (%s) is not writable. Fix the permissions.' ), $attach_dir );
        } else {
           // delete files over 3 minutes old in the attachment directory
           $this->clean_temp_dir($attach_dir, 3);
    	}
    }
    
    // print any input errors
    if ($this->fsc_error) {
        $string .= '<div '.$this->ctf_required_style.'>
        <div '.$this->ctf_error_style.'>'."\n";
        $string .= ($fsc_opt['error_correct'] != '') ? $fsc_opt['error_correct'] : _('Please make corrections below and try again.');
        $string .= '
        </div>
    </div>'."\n";
        if($have_attach && $attach_dir_error) {
          $string .= '<div '.$this->ctf_required_style.'>
          <div '.$this->ctf_error_style.'>'."\n";
          $string .= $attach_dir_error;
          $string .= '
          </div>
    </div>'."\n";
        }
    }
    if (empty($ctf_contacts)) {
       $string .= '<div '.$this->ctf_required_style.'>
       <div '.$this->ctf_error_style.'>'._('ERROR: Misconfigured E-mail address in options.').'
       </div>
    </div>'."\n";
    }
    
    if ($fsc_opt['req_field_label_enable'] == 'true' && $fsc_opt['req_field_indicator_enable'] == 'true' ) {
       $string .=  '<div '.$this->ctf_required_style.'>'."\n";
       $string .= ($fsc_opt['tooltip_required'] != '') ? '<span class="required">'.$fsc_opt['req_field_indicator'].'</span>' .$fsc_opt['tooltip_required'] : '<span class="required">'.$fsc_opt['req_field_indicator'].'</span>' . _('(denotes required field)');
       $string .= '</div>
    ';
    }
    
    if (count($contacts) > 1) {
    
         $string .= '
            <div '.$this->ctf_title_style.'>
                    <label for="fsc_CID'.$form_id_num.'">';
         $string .= ($fsc_opt['title_dept'] != '') ? $fsc_opt['title_dept'] : _('Department to Contact').':';
         $string .= $req_field_ind.'</label>
            </div>
            <div '.$this->ctf_field_div_style.'>
                   '.$this->echo_if_error($fsc_error_contact).' 
                    <select '.$this->ctf_select_style.' id="fsc_CID'.$form_id_num.'" name="fsc_CID" '.$this->ctf_aria_required.'>
    ';
    
        $string .= '                <option value="">';
        $string .= ($fsc_opt['title_select'] != '') ? $this->ctf_output_string($fsc_opt['title_select']) : $this->ctf_output_string( _('Select'));
        $string .= '</option>'."\n";
    
        if ( !isset($cid) && isset($_GET[$form_id_num .'mailto_id']) ) {
            $cid = (int)$this->fsc_get_var($form_id_num,'mailto_id');
        }else if ( !isset($cid) && isset($_GET['fsc_CID']) ){
            $cid = (int)$_GET['fsc_CID']; // legacy code
        }
    
         $selected = '';
    
          foreach ($contacts as $k => $v)  {
              if (!empty($cid) && $cid == $k) {
                        $selected = ' selected="selected"';
              }
              $string .= '                <option value="' . $this->ctf_output_string($k) . '"' . $selected . '>' . $this->ctf_output_string($v['CONTACT']) . '</option>' . "\n";
              $selected = '';
          }
    
          $string .= '                </select>
          </div>
    ';
    }
    else {
    
         $string .= '
            <div>
                    <input type="hidden" name="fsc_CID" value="1" />
            </div>
    ';
    
    }
    
    if($fsc_opt['name_type'] != 'not_available' ) {
    
         $f_name_string = '
            <div '.$this->ctf_title_style.'>
    <table border="0">
    <tr valign="bottom">
    <td width="200" height="20">
                    <label for="fsc_f_name'.$form_id_num.'">';
         $f_name_string .= ($fsc_opt['title_fname'] != '') ? $fsc_opt['title_fname'] : _('First Name').':';
         if($fsc_opt['name_type'] == 'required' )
               $f_name_string .= $req_field_ind;
         $f_name_string .= '</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_f_name).'
                    <input '.$this->ctf_field_style.' type="text" id="fsc_f_name'.$form_id_num.'" name="fsc_f_name" value="' . $this->ctf_output_string($f_name) .'" '.$this->ctf_aria_required.' size="'.$ctf_field_size.'" />
            </div></td><td width="200" height="20">
    
    ';
    
         $l_name_string = '
            <div '.$this->ctf_title_style.'>
    
                    <label for="fsc_l_name'.$form_id_num.'">';
         $l_name_string .= ($fsc_opt['title_lname'] != '') ? $fsc_opt['title_lname'] : _('Last Name').':';;
         if($fsc_opt['name_type'] == 'required' )
               $l_name_string .= $req_field_ind;
         $l_name_string .= '</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_l_name).'
                    <input '.$this->ctf_field_style.' type="text" id="fsc_l_name'.$form_id_num.'" name="fsc_l_name" value="' . $this->ctf_output_string($l_name) .'" '.$this->ctf_aria_required.' size="'.$ctf_field_size.'" />
            </div>
    </td></tr></table>
    ';
    
      switch ($fsc_opt['name_format']) {
           case 'name':
    
    $string .= '
            <div '.$this->ctf_title_style.'>
                    <label for="fsc_name'.$form_id_num.'">';
         $string .= ($fsc_opt['title_name'] != '') ? $fsc_opt['title_name'] : _('Name').':';
         if($fsc_opt['name_type'] == 'required' )
               $string .= $req_field_ind;
         $string .= '</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_name).'
                    <input '.$this->ctf_field_style.' type="text" id="fsc_name'.$form_id_num.'" name="fsc_name" value="' . $this->ctf_output_string($name) .'" '.$this->ctf_aria_required.' size="'.$ctf_field_size.'" />
            </div>
    ';
      
    
          break;
          case 'first_last':
    
         $string .= $f_name_string;
         $string .= $l_name_string;
    
          break;
          case 'first_middle_i_last':
    
         $string .= $f_name_string;
    
    $string .= '
            <div '.$this->ctf_title_style.'>
                    <label for="fsc_mi_name'.$form_id_num.'">';
         $string .= ($fsc_opt['title_miname'] != '') ? $fsc_opt['title_miname'] : _('Middle Initial').':';
         $string .= '</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_mi_name).'
                    <input '.$this->ctf_field_style.' type="text" id="fsc_mi_name'.$form_id_num.'" name="fsc_mi_name" value="' . $this->ctf_output_string($mi_name) .'" '.$this->ctf_aria_required.' size="2" />
            </div>';
    
         $string .= $l_name_string;
    
          break;
          case 'first_middle_last':
    
         $string .= $f_name_string;
    
    $string .= '
            <div '.$this->ctf_title_style.'>
                    <label for="fsc_m_name'.$form_id_num.'">';
         $string .= ($fsc_opt['title_mname'] != '') ? $fsc_opt['title_mname'] : _('Middle Name').':';
         $string .= '</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_m_name).'
                    <input '.$this->ctf_field_style.' type="text" id="fsc_m_name'.$form_id_num.'" name="fsc_m_name" value="' . $this->ctf_output_string($m_name) .'" '.$this->ctf_aria_required.' size="'.$ctf_field_size.'" />
            </div>';
    
         $string .= $l_name_string;
    
          break;
        }
    }
    if($fsc_opt['email_type'] != 'not_available' ) {
     if ($ctf_enable_double_email == 'true') {
       $string .= '
            <div '.$this->ctf_title_style.'>
    
    
                    <label for="fsc_email'.$form_id_num.'">';
         $string .= ($fsc_opt['title_email'] != '') ? $fsc_opt['title_email'] : _('E-Mail Address').':';
         if($fsc_opt['email_type'] == 'required' )
               $string .= $req_field_ind;
         $string .= '</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_email).'
             '.$this->echo_if_error($fsc_error_double_email).'
                    <input '.$this->ctf_field_style.' type="email" id="fsc_email'.$form_id_num.'" name="fsc_email" value="' . $this->ctf_output_string($email) . '" '.$this-> ctf_aria_required.' size="'.$ctf_field_size.'" />
            </div>
            <div '.$this->ctf_title_style.'>
                    <label for="fsc_email2_'.$form_id_num.'">';
         $string .= ($fsc_opt['title_email2'] != '') ? $fsc_opt['title_email2'] : _('E-Mail Address again').':';
         $string .= $req_field_ind.'</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_email2).'
                    <span style="font-size:x-small; font-weight:normal;">';
         $string .= ($fsc_opt['title_email2_help'] != '') ? $fsc_opt['title_email2_help'] : _('Please enter your E-mail Address a second time.');
         $string .= '</span><br />
                    <input '.$this->ctf_field_style.' rows="80" width="900" type="email" id="fsc_email2_'.$form_id_num.'" name="fsc_email2" value="' . $this->ctf_output_string($email2) . '" '.$this->ctf_aria_required.' size="'.$ctf_field_size.'" />
            </div>
     ';
    
    
      } else {
        $string .= '
            <div '.$this->ctf_title_style.'><table>
    <tr><td width="900">
                    <label for="fsc_email'.$form_id_num.'">';
         $string .= ($fsc_opt['title_email'] != '') ? $fsc_opt['title_email'] : _('E-Mail Address').':';
         if($fsc_opt['email_type'] == 'required' )
               $string .= $req_field_ind;
         $string .= '</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_email).'
                    <input '.$this->ctf_field_style.' rows="8" size="300" type="email" id="fsc_email'.$form_id_num.'" name="fsc_email" value="' . $this->ctf_output_string($email) . '" '.$this->ctf_aria_required.' size="100""'.$ctf_field_size.'" />
            </div></td></tr></table>
    ';
      }
    
    }
    if($fsc_opt['subject_type'] != 'not_available' ) {
       if (count($subjects) > 0) {
    
           $string .= '
            <div '.$this->ctf_title_style.'>
    <table border="0">
    <tr align="left">
    <td width="400" height="30" cellspacing="1">
    
                    <label for="fsc_subject_ID'.$form_id_num.'">';
         $string .= ($fsc_opt['title_subj'] != '') ? $fsc_opt['title_subj'] : _('Subject').':';
         if($fsc_opt['subject_type'] == 'required' )
               $string .= $req_field_ind;
         $string .= '</label>
    
            </div></td><td width="700" height="30">
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_subject).'
                   <select '.$this->ctf_select_style.' id="fsc_subject_ID'.$form_id_num.'" name="fsc_subject_ID" '.$this->ctf_aria_required.'>
    ';
    
        $string .= '               <option value="">';
        $string .= ($fsc_opt['title_select'] != '') ? $this->ctf_output_string($fsc_opt['title_select']) : $this->ctf_output_string( _('Select'));
        $string .= '</option>'."\n";
    
        if ( !isset($sid) && isset($_GET[$form_id_num .'subject_id']) ) {
            $sid = (int)$this->fsc_get_var($form_id_num,'subject_id');
        }else if ( !isset($sid) && isset($_GET['fsc_SID']) ){
            $sid = (int)$_GET['fsc_SID']; // legacy code
        }
    
         $selected = '';
    
          foreach ($subjects as $k => $v)  {
              if (!empty($sid) && $sid == $k) {
                        $selected = ' selected="selected"';
              }
              $string .= '               <option value="' . $this->ctf_output_string($k) . '"' . $selected . '>' . $this->ctf_output_string($v) . '</option>' . "\n";
              $selected = '';
          }
    
          $string .= '               </select>';
    
           } else {
                // text entry subject
                  if ( $subject != '' ) {
                    $subject = substr($subject,0,75); // shorten to 75 chars or less
                  }
                $string .= '
            <div '.$this->ctf_title_style.'>
                    <label for="fsc_subject'.$form_id_num.'">';
         $string .= ($fsc_opt['title_subj'] != '') ? $fsc_opt['title_subj'] : _('Subject').':';
         if($fsc_opt['subject_type'] == 'required' )
               $string .= $req_field_ind;
         $string .= '</label>
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_subject).'
                     <input '.$this->ctf_field_style.' type="text" id="fsc_subject'.$form_id_num.'" name="fsc_subject" value="' . $this->ctf_output_string($subject) . '" '.$this->ctf_aria_required.' size="'.$ctf_field_size.'" />';
           }
    
            $string .= '
            </div>
    </tr>
    </td>
    </table>
    ';
    }
    
    if ($fsc_opt['ex_fields_after_msg'] != 'true') {
         // are there any optional extra fields/
         for ($i = 1; $i <= $fsc_gb['max_fields']; $i++) {
            if ($fsc_opt['ex_field'.$i.'_label'] != '') {
               // include the code to display extra fields
               require $this->site_path . '/contact-form-ex-fields.php';
               break;
            }
          }
    }
    
    
    
    if($fsc_opt['message_type'] != 'not_available' ) {
    $string .= '
            <div '.$this->ctf_title_style.'>
    
                    <label for="fsc_message'.$form_id_num.'">';
         $string .= ($fsc_opt['title_mess'] != '') ? $fsc_opt['title_mess'] : _('Message').':';
         if($fsc_opt['message_type'] == 'required' )
               $string .= $req_field_ind;
         $string .= '</label>
    
            </div>
            <div '.$this->ctf_field_div_style.'>'.$this->echo_if_error($fsc_error_message).'
                    <textarea cols="60" '.$this->ctf_field_style.' id="fsc_message'.$form_id_num.'" name="fsc_message" '.$this->ctf_aria_required.' rows="6"  cols="10""'.$this->absint($fsc_opt['text_cols']).'" rows="'.$this->absint($fsc_opt['text_rows']).'">' . $this->ctf_output_string($message) . '</textarea>
            </div>
    ';
    }
    
    if ($fsc_opt['ex_fields_after_msg'] == 'true') {
         // are there any optional extra fields/
         for ($i = 1; $i <= $fsc_gb['max_fields']; $i++) {
            if ($fsc_opt['ex_field'.$i.'_label'] != '') {
               // include the code to display extra fields
               require $this->site_path . '/contact-form-ex-fields.php';
               break;
            }
          }
    }
    
     $this->ctf_submit_div_style = $this->fsc_convert_css($fsc_opt['submit_div_style']);
     $this->ctf_submit_style = $this->fsc_convert_css($fsc_opt['button_style']);
     $this->ctf_reset_style = $this->fsc_convert_css($fsc_opt['reset_style']);
    // captcha is optional but recommended to prevent spam bots from spamming your contact form
    
    if ( $this->is_captcha_enabled() ) {
      $string .= $this->get_captcha_html($fsc_error_captcha,$form_id_num)."\n";
    }
    
    $string .= '
    <div '.$this->ctf_submit_div_style.'>
      <input type="hidden" name="fsc_action" value="send" />
      <input type="hidden" name="fsc_form_id" value="'.$form_id_num.'" />
      <input type="submit" '.$this->ctf_submit_style.' value="';
         $string .= ($fsc_opt['title_submit'] != '') ? $this->ctf_output_string( $fsc_opt['title_submit'] ) : $this->ctf_output_string( _('Submit'));
         $string .= '" ';
       if($fsc_opt['enable_areyousure'] == 'true') {
         $string .= ' onclick="return confirm(\'';
         $string .= ($fsc_opt['title_areyousure'] != '') ? $this->ctf_output_string(addslashes( $fsc_opt['title_areyousure'] )) : $this->ctf_output_string( addslashes(_('Are you sure?')));
         $string .= '\')" ';
        }
         $string .= '/> ';
       if($fsc_opt['enable_reset'] == 'true') {
         $string .= '<input type="reset" '.$this->ctf_reset_style.' value="';
         $string .= ($fsc_opt['title_reset'] != '') ? $this->ctf_output_string( $fsc_opt['title_reset'] ) : $this->ctf_output_string( _('Reset'));
         $string .= '" onclick="return confirm(\'';
         $string .= addslashes(_('Do you really want to reset the form?'));
         $string .= '\')"  />'."\n";
        }
    $string .= '</div>
    ';
    if ($fsc_opt['border_enable'] == 'true') {
      $string .= '
        
      ';
    }
    $string .= '
    </form>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    </div>
    ';
    if ($fsc_opt['enable_credit_link'] == 'true') {
      $this->ctf_powered_by_style = $this->fsc_convert_css($fsc_opt['powered_by_style']);
    $string .= '
    <p '.$this->ctf_powered_by_style.'>'._('Powered by'). ' <a href="http://www.FastSecureContactForm.com">'._('Fast Secure Contact Form - PHP'). '</a></p>
    ';
    }
    $string .= '<!-- Fast Secure Contact Form PHP plugin '.$this->fsc_version.' - end - http://www.FastSecureContactForm.com -->
    ';
    
    ?>

    Quote Originally Posted by niccol View Post
    Secondly there is a javascript error which has to do with the javascript method 'kwicks'.

    Thirdly you are loading jQuery twice in different versions of it. Which may well be causing the above two errors.
    I think this is the concerned code for scripts. I found it in includes/templates/my_template/common/html_header.php

    Code:
    /**
     * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
      while(list ($key, $value) = each($directory_array)) {
        echo '<script type="text/javascript" src="' .  $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
      }
    
    /**
     * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
     */
      $directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js');
      while(list ($key, $value) = each($directory_array)) {
        echo '<script type="text/javascript" src="' . $page_directory . '/' . $value . '"></script>' . "\n";
      }
    
    /**
     * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php');
      while(list ($key, $value) = each($directory_array)) {
    /**
     * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value); echo "\n";
      }
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     */
      $directory_array = $template->get_template_part($page_directory, '/^jscript_/');
      while(list ($key, $value) = each($directory_array)) {
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        require($page_directory . '/' . $value); echo "\n";
      }
    
    //DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
    ?>
    
    <script type="text/javascript">
    $(document).ready(function () {
    	//kwicks begin
    	$('.kwicks').kwicks({
    	min:42,
    	spacing : 0,
    	sticky : true,
    	defaultKwick:0,
    	event : 'click'
    });
    });
    
    </script>
    
    <script type="text/javascript" src="includes/templates/theme425/jscript/ie6_script_other.js"></script>

    Unfortunately cant figure out why jQuery is loading twice in different versions.


    I tried to modify those codes (despite my poor knowledge with php) and I only get a blank page


    Sorry for being such a pain. Hope its ok with you to help me work out on this. Im really desperate for help.


    Thank you.

  9. #9
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,982
    Plugin Contributions
    1

    Default Re: Help!Footer was gone when I use fast secure contact form php script version

    OK. Well, I am reaching the end of what I can do without being able to see the files.

    First question. Why are you using fast secure? It might just be easier to use a cloned version of the existing contact us page. The 'Ask a question' mod implements something like that so you could look at that. You'd get more help from the community that route because it is really hard to give you advice about fast secure without seeing the files.

    Next jQuery. Yes, it is loaded from html_header.php. But it will have been added by a template or a addon module.

    The two versions you are using are

    includes/templates/theme425/jscript/jscript_jquery-1.3.2.min.js
    includes/templates/theme425/jscript/jquery-1.4.4.min.js

    I would guess that the first one is loaded by fast secure but this is a guess. The second one is loaded from somewhere else. And importantly it is loaded after the fast secure javascript.

    As a first try do this:

    Add to html_header.php

    Code:
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" type="text/javascript"></script>
    
    <?php
    /**
     * load all template-specific stylesheets, named like "style*.css", alphabetically
     */
    That will load jQuery from the google repository. Which will probably load faster than from your site anyway for most users. Now your site will be loading jQuery three times!

    Then backup the two other versions of jQuery on the site.

    includes/templates/theme425/jscript/jscript_jquery-1.3.2.min.js
    includes/templates/theme425/jscript/jquery-1.4.4.min.js

    and then delete them.

    This comes with a warning. It may screw up some stuff on your site so you need to be absolutely sure that you are ready to restore the files. I can't see that there will be a problem but better safe than sorry.

    Beyond that I am really going to recommend that you either choose a different route to the same goal or perhaps post on a forum where people know more about fast secure.

 

 

Similar Threads

  1. Secure Form Script
    By PatF in forum General Questions
    Replies: 3
    Last Post: 8 May 2011, 04:17 PM
  2. How can I Get the Zen Cart Version Using a Script?
    By ciel_bleu in forum General Questions
    Replies: 8
    Last Post: 5 Dec 2008, 08:35 PM
  3. SPAM from ‘Contact Us’ form, even though form is removed
    By Beer_man in forum General Questions
    Replies: 5
    Last Post: 3 Dec 2008, 02:40 AM
  4. Ignore Java Script during secure session
    By davefant in forum Basic Configuration
    Replies: 2
    Last Post: 11 Jan 2008, 06:38 AM

Bookmarks

Posting Permissions

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