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

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

0 Members and 3 Guests are viewing this topic.

Offline avsrock90

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Contact Form
« Reply #75 on: January 18, 2006, 05:52:37 AM »
Please read the replies. This has been discussed and customized along the way.

I'm really sorry Oracle, but after reading the entire set of replies in english and trying to translate the German ones, I still can't see it....what would be ideal for me is just a way to have several links saying Contact Bob / Contact Tim / Contact Michael / etc and have seperate emails defined for each? That way I could set it so that emails go to addresses other than those of the admin? I've explored he coding, and read all the replies, and I guess I still must be missing something?

Best Regards

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Contact Form
« Reply #76 on: January 18, 2006, 05:56:47 AM »
Quote

what would be ideal for me is just a way to have several links saying Contact Bob / Contact Tim / Contact Michael / etc and have seperate emails defined for each?


In that case, please post a screenshot in order to have a better understanding of your request. ;)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: [MOD] Contact Form
« Reply #77 on: January 29, 2006, 08:26:34 PM »
someone knows how to put security code validation in contact form ?

Like in this mod ?
[MOD] Registration with security code validation v1.0

thx

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: [MOD] Contact Form
« Reply #78 on: February 02, 2006, 05:16:49 AM »
someone knows how to put security code validation in contact form ?

Like in this mod ?
[MOD] Registration with security code validation v1.0

thx

Read this http://www.4homepages.de/forum/index.php?topic=11405.0

Open and change all your lang/xxxxxx/main.php

add this:
Code: [Select]
$lang['secure_required'] = "You copied the secure code wrong.";
$lang['comment_secure_pleasecopy'] = "(Please copy!)";
$lang['comment_secure_scode'] = "Secure Code";

before ?>

Open contact.php

find:
Code: [Select]
if ($action == "") {
  $action = "mailform";
}

add after:

Code: [Select]
/* ## Safety script ## */
mt_srand((double)microtime()*1000000);
$comment_sicherheit = mt_rand(000001,999999);
$comment_sicherheit = str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit)));
/* ## Safety script ## */

find:
Code: [Select]
//  if(!$error && $sender_email != "" && MailChek($sender_email, 2)) {
//    $msg .= (($msg != "") ? "<br />" : "").$lang['invalid_email_format'];
//    $sendprocess = 1;
//    $error = 1;
//  }

add after:
Code: [Select]
if (($sicherheit_code == "") || ($sicherheit_code != str_replace('´|´', '=', base64_decode(base64_decode($sicherheit_dec))) ))  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['secure_required'];
      $error = 1;
    }

find:
Code: [Select]
"sender_email" => $sender_email,

add after:
Code: [Select]
"comment_sicherheit" => $comment_sicherheit,
      "comment_secure_scode" => $lang['comment_secure_scode'],
      "comment_secure_pleasecopy" => $lang['comment_secure_pleasecopy'],

Open templates/xxxxxxxx/contact_mailform.html

find:
Code: [Select]
<tr>
              <td align="right" valign="top"><b>{lang_message}</b></td>
              <td align="left" valign="top"><textarea name="message" cols="60" rows="10" wrap="VIRTUAL" id="message" tabindex="4">{message}</textarea>
              </td>
            </tr>

add after:
Code: [Select]
<tr>
                  <td width="90" valign="top"><b>{comment_secure_scode}</b><br />{comment_secure_pleasecopy}</td>
                  <td><input type="text" name="sicherheit_code" size="15" class="commentinput" />&nbsp;<img src="sicherheit.php?z={comment_sicherheit}" alt="{comment_secure_scode}" title="{comment_secure_pleasecopy}" /></td>
                </tr>

find:
Code: [Select]
<input type="hidden" name="user_id" value="{user_id}" />
add after:
Code: [Select]
<input type="hidden" name="sicherheit_dec" value="{comment_sicherheit}" />


DEMO


Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Contact Form
« Reply #79 on: February 03, 2006, 07:05:27 PM »
this show just it :

but doesn't appear any number ....

this require GD library or something ?


Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: [MOD] Contact Form
« Reply #80 on: February 03, 2006, 08:01:02 PM »
thx om6acw

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: [MOD] Contact Form
« Reply #81 on: February 04, 2006, 03:14:29 AM »
this show just it :

but doesn't appear any number ....

this require GD library or something ?



you put this part
Quote
if (($sicherheit_code == "") || ($sicherheit_code != str_replace('´|´', '=', base64_decode(base64_decode($sicherheit_dec))) ))  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['secure_required'];
      $error = 1;
    }
on wrong place probably.
Try one more time.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Contact Form
« Reply #82 on: February 04, 2006, 05:21:16 AM »
well at first time that show just that (on picture) , but when user wrote some on fields and press "submit" this reset to same page , with warn message and now this show the numbers on pic  :mrgreen:

why this doesn't show at first time ?? and only show when user click 1x in submit and receive the warning message for this show the numbers....min weird...  :?

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Contact Form
« Reply #83 on: February 05, 2006, 05:31:47 PM »
It works Great without any problems! Thank you all for this perfect Mod! :D

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Contact Form
« Reply #84 on: February 05, 2006, 05:35:59 PM »
@glitzer:

Since the anti-spam MOD works perfectly with the contact form, what does it say with the report a picture MOD ? :)

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Contact Form
« Reply #85 on: February 05, 2006, 05:38:59 PM »
nothing..i get no mail back, but i am sure that is not a problem of my hosting provider but all other mods working perfectly.
;-( I can´t find the error in the script..i put it away now from my site! Sorry oracle :(

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] Contact Form
« Reply #86 on: February 13, 2006, 09:26:49 AM »
hmm  :roll: :roll:
Everytime anyone sends me an email from that form, i get a BLANK mail ?!? Subject line is correct, but there is no content, any ideas?
http://www.zapomnime.com/index.php?template=contact

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Contact Form
« Reply #87 on: February 17, 2006, 06:56:24 PM »
Now that I have succeeded with the Report a picture MOD, perhaps I should code a new contact form MOD (especially since the Anti-Spam MOD has been released). If anyone's interested, simply say so.

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Contact Form
« Reply #88 on: February 17, 2006, 07:25:03 PM »
Hi Oracle, that would be nice, to have a contact form with the security code. :)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Contact Form
« Reply #89 on: February 17, 2006, 07:28:09 PM »
Quote

Hi Oracle, that would be nice, to have a contact form with the security code.


By still respecting the author regarding the anti-spam MOD, I will not combine his project into mine "but" I will make all necessary arrangements in order for all users to be able to "implement it" by themselves. However, evaluations will be made before distributing the MOD (as usual). ;)