• [MOD] Contact Form 5 0 5 1
Currently:  

Author Topic: [MOD] Contact Form  (Read 369899 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Contact Form
« Reply #150 on: August 03, 2007, 11:51:49 AM »
Quote
$site_email->set_to("firstAdmin@home.com, secondAdmin@home.com");

Not work. Bcc method in. Line top $set_to, use:

Quote
$emails = explode(",", $config['upload_emails']);

Next, top $site_email->send_email(), use:

Quote
$site_email->set_bcc($emails);

This right method. Add email in ACP - > Setting. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] Contact Form
« Reply #151 on: August 03, 2007, 12:41:43 PM »
This line:
top $site_email->send_email(), use:
I have found...

This Line:
$set_to, use:
I donīt have found...in no files...

An how to write the emails in ACP???
111@xxx.com, 222@xxx.com ???

Please help...

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Contact Form
« Reply #152 on: August 03, 2007, 12:46:09 PM »
Quote
This Line:
$set_to, use:
I donīt have found...in no files...

When go first topic (contact.zip), line 74 (contact.php). Is in.

Quote
An how to write the emails in ACP???

Quote
This right method. Add email in ACP - > Setting.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] Contact Form
« Reply #153 on: August 03, 2007, 01:00:48 PM »
May be you mean this.. ???

$site_email->set_to("dein@email.ldt");

Ok, but how to change, to what, how it mus looks like????
This i to complicated for me.... :oops: :oops: :oops:

Sorry....

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Contact Form
« Reply #154 on: August 03, 2007, 01:33:12 PM »
Quote
$site_email->set_to("dein@email.ldt");

suppose:

Quote
$site_email->set_to(stripslashes($config['site_email']));

On top, add $emails line posted here:

http://www.4homepages.de/forum/index.php?topic=8987.msg97112#msg97112
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] Contact Form
« Reply #155 on: August 03, 2007, 01:59:28 PM »
suppose means remove???

So please, how must look these lines?

i tried some kinds of various testīs but it is still not working...

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Contact Form
« Reply #156 on: August 03, 2007, 02:00:25 PM »
Quote
suppose means remove???

Suppose - this time - replace.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] Contact Form
« Reply #157 on: August 03, 2007, 02:06:43 PM »
 :cry:
I´m confused...
No my code looks like this:

Code: [Select]
// Start Emailer
    include(ROOT_PATH.'includes/email.php');
    $site_email = new Email();
    $site_email->set_from($sender_user_email, $sender_user_name);
    $site_email->set_to(stripslashes($config['site_email']));  // CHANGE THIS - Set to your email address
    $site_email->set_subject("What a subjekt/".$subject);  // CHANGE THIS - Set this to whatever prefix you want to appear in the email subject
    $site_email->register_vars(array(

But like you may be know: It´s still not working... :oops: :oops: :cry: :cry:

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Contact Form
« Reply #158 on: August 03, 2007, 02:16:05 PM »
Did you add email in ACP - > setting ? Did you add all email (same page) for upload (this time use for contact) ?

For $emails let do this way:

Quote
$site_email->set_body ...

(... means what after ... no worry).

add after:

Quote
$emails = explode(", ", stripslashes($config['upload_emails']));
$site_email->set_bcc->($emails);
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] Contact Form
« Reply #159 on: August 03, 2007, 02:25:53 PM »
I just show you the code:
Code: [Select]
<?php 
/************************************************************************** 
 *                                                                        * 
 *    4images - A Web Based Image Gallery Management System               * 
 *    ----------------------------------------------------------------    * 
 *                                                                        * 
 *             File: member.php                                           * 
 *        Copyright: (C) 2002 Jan Sorgalla                                * 
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7                                                  * 
 *                                                                        * 
 *    Never released without support from: Nicky (http://www.nicky.net)   * 
 *                                                                        * 
 ************************************************************************** 
 *                                                                        * 
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       * 
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 * 
 *    ---------------------------------------------------------------     * 
 *    This script is NOT freeware! Please read the Copyright Notice       * 
 *    (Licence.txt) for further information.                              * 
 *                                                                        * 
 *************************************************************************/ 

$main_template "contact"

define('GET_CACHES'1); 
define('ROOT_PATH''./'); 
define('GET_USER_ONLINE'1); 
include(
ROOT_PATH.'global.php'); 
require(
ROOT_PATH.'includes/sessions.php'); 
include(
ROOT_PATH.'includes/page_header.php'); 

if (
$action == "") { 
  
$action "mailform"

$content ""
$txt_clickstream "Contact"

$sendprocess 0
$user_id 1;  // CHANGE THIS - Set this to your user id 


if ($action == "emailSiteOwner") { 
  
$user_id = (isset($HTTP_POST_VARS[URL_USER_ID])) ? intval($HTTP_POST_VARS[URL_USER_ID]) : 1// CHANGE THIS - 1 is hardcoded to my user id 
  
$error 0
  
  
$sender_name stripslashes(trim($HTTP_POST_VARS['sender_name'])); 
  
$sender_email stripslashes(trim($HTTP_POST_VARS['sender_email'])); 
  
$subject stripslashes(trim($HTTP_POST_VARS['subject'])); 
  
$message stripslashes(trim($HTTP_POST_VARS['message'])); 

  if (
$sender_name == "" || $sender_email == "" || $subject == "" || $message == "") { 
    
$msg $lang['lostfield_error']; 
    
$sendprocess 1
    
$error 1
  } 
  
//  if(!$error && $sender_email != "" && MailChek($sender_email, 2)) { 
//    $msg .= (($msg != "") ? "<br />" : "").$lang['invalid_email_format']; 
//    $sendprocess = 1; 
//    $error = 1; 
//  } 

  
if (!$error) { 
    
$user_row get_user_info($user_id); 
    
$sender_user_name $sender_name
    
$sender_user_email $sender_email

    
// Start Emailer 
    
include(ROOT_PATH.'includes/email.php'); 
    
$site_email = new Email(); 
    
$site_email->set_from($sender_user_email$sender_user_name);
    
$site_email->set_to(stripslashes($config['site_email']));  // CHANGE THIS - Set to your email address 
    
$site_email->set_subject("BrickCinema.com No Reply/".$subject);  // CHANGE THIS - Set this to whatever prefix you want to appear in the email subject 
    
$site_email->register_vars(array( 
      
"sender_user_name" => $sender_user_name
      
"sender_user_email" => $sender_user_email
      
"message" => $message
      
"site_name" => $config['site_name'
    )); 
    
$site_email->set_body("contactform_message"$config['language_dir']); 
    
$site_email->send_email(); 
    
$msg $lang['emailuser_success']; 
header("Refresh: 3; url=".ROOT_PATH);
  } 
  else { 
    
$action "mailform"
  } 


if (
$action == "mailform") { 
  if (!
$sendprocess) { 
    
$subject ""
    
$message ""
  } 

  
$sender_name = ($user_info['user_level'] != GUEST) ? $user_info['user_name'] : ""
  
$sender_email = ($user_info['user_level'] != GUEST) ? $user_info['user_email'] : ""
  
    
$site_template->register_vars(array( 
      
"sender_name" => $sender_name
      
"sender_email" => $sender_email
      
"subject" => htmlspecialchars($subject), 
      
"message" => htmlspecialchars($message), 
      
"lang_send_email_to" => $lang['send_email_to'], 
      
"lang_subject" => $lang['subject'], 
      
"lang_message" => $lang['message'], 
      
"lang_submit" => $lang['submit'], 
      
"lang_reset" => $lang['reset'
    )); 
    
$content $site_template->parse_template("contact_mailform"); 


  
//----------------------------------------------------- 
//--- Clickstream ------------------------------------- 
//----------------------------------------------------- 
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>"

//----------------------------------------------------- 
//--- Print Out --------------------------------------- 
//----------------------------------------------------- 
$site_template->register_vars(array( 
  
"content" => $content
  
"msg" => $msg
  
"clickstream" => $clickstream
  
"lang_control_panel" => $lang['control_panel'
)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>


So, like you will see I did something wrong...
But I dont know what and where... :oops: :oops:

I hate php....

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Contact Form
« Reply #160 on: August 03, 2007, 02:27:38 PM »
Quote
$site_email->set_body("contactform_message", $config['language_dir']);
where the add code ???
$site_email->send_email();

Add the two line I post in where the add code ??? line (replace).
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] Contact Form
« Reply #161 on: August 03, 2007, 02:45:50 PM »
Dear thunderstrike....
Please, which lines now must in there?
I thought I have includet all of your code... :cry:
But which ones must nur in ADD???

Now I donīt know nothing.... :oops: :cry: :? :(

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Contact Form
« Reply #162 on: August 03, 2007, 02:50:51 PM »
Look ...

just add:

Quote
$site_email->set_body("contactform_message", $config['language_dir']);
$emails = explode(", ", stripslashes($config['upload_emails']));
$site_email->set_bcc($emails);

$site_email->send_email();

 :|

Can't do this line ? Please consider professional programmer for you under request for paid ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [MOD] Contact Form
« Reply #163 on: August 03, 2007, 03:10:05 PM »
Ok, I donīt do it more...
Itīs still not working, and I donīt want to make you nervus...

So itīs still:
The End

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Contact Form
« Reply #164 on: August 03, 2007, 08:47:44 PM »
Me nervus ? No. :)

Simple apply step before and should work ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?