Author Topic: [MOD] Contact Form with Solved Problem, Captcha and Uploadform  (Read 21957 times)

0 Members and 1 Guest are viewing this topic.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
 :flag-en:
The Original Mod can you find here: http://www.4homepages.de/forum/index.php?topic=8987.0

I Have some Problemes Solved. The Files are Updated and works fine with Captcha and Uploadform.
This is the complete and customized version, with all the solutions and ideas. Can immediately installed and used.
For the others, replace the old files.
The Mod Spellchecker are included: http://www.4homepages.de/forum/index.php?topic=22141.0
Mod is tested on 1.7.3, 1.7.4 and 1.7.6

:flag-de:
Die Originale Mod kannst du hier finden: http://www.4homepages.de/forum/index.php?topic=8987.0

Ich habe einige Probleme behoben. Die Dateien habe ich geupdated und es läuft super mit Captcha und der Uploadform.
Das ist die fertig und angepasste Version, mit allen Lösungsvorschlägen und Ideen. Kann sofort eingebaut und verwendet werden.
Die anderen, die schon die originale Version eingebaut haben, brauchen nur die Dateien zu überschreiben.
Die Mod Spellchecker ist schon mit eingebaut: http://www.4homepages.de/forum/index.php?topic=22141.0
Die Mod wurde auf 1.7.3, 1.7.4 und 1.7.6 getestet.


 :flag-de::flag-en:
Danke / Thanks:

- by vividviews for the Ori, Ori, Original Mod / Für ganz Originale Version
- by Honda2000 and Vincent For the re-set the Mod / Für das neu einstellen der Mod
- by Honda200 for the Idea / Für die Idee: http://www.4homepages.de/forum/index.php?topic=8987.msg113769#msg113769
- by ivan for the Captcha Installation / Für den Captcha- Einbau: http://www.4homepages.de/forum/index.php?topic=8987.msg80124#msg80124

Installation:
 :flag-de::flag-en:
Uploade die Files / Upload the Files
  • root/spellcheck
  • root/uploads
  • root/lang
  • root/includes
  • root/contact.php
  • root/templates/#your-dein template#/contact.html
  • root/templates/#your-dein template#/contact_mailform.html

 :flag-de::flag-en:
Öffne / Open: templates/->dein/your Template<-/header.html
 :flag-de::flag-en:
Suche / Search:
Code: [Select]
<link rel="stylesheet" href="{template_url}/style.css" /> :flag-de::flag-en:
Füge darunter das ein / Copy this below:
Code: [Select]
<link href="spellcheck/googiespell.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="spellcheck/js/AJS.js"></script>
<script type="text/javascript" src="spellcheck/js/googiespell.js"></script>
<script type="text/javascript" src="spellcheck/js/cookiesupport.js"></script>

 :flag-de::flag-en:
Upload erwünscht / Desired ?
Öffne / Open: templates/#your/dein template#/contact_mailform.html
Search / Suche:
Code: [Select]
     <!-- <th><div align="left">
          <?php

// PHP Code:
// Where the file is going to be placed
$target_path "uploads/";

/* Add the original filename to our target path. 
Result is "uploads/filename.extension" */
$target_path $target_path basename$_FILES['uploadedfile']['name']);
$_FILES['uploadedfile']['tmp_name']; 

$target_path "uploads/";

$target_path $target_path basename$_FILES['uploadedfile']['name']);

if(
move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo 
"The file ".  basename$_FILES['uploadedfile']['name']).
    
" has been uploaded";
} else{
    echo 
"";
}

?>

      </div></th>
    </tr> -->
:flag-de::flag-en:
Ersetze mit/ Replace with:
Code: [Select]
    <th><div align="left">
          <?php

// PHP Code:
// Where the file is going to be placed
$target_path "uploads/";

/* Add the original filename to our target path. 
Result is "uploads/filename.extension" */
$target_path $target_path basename$_FILES['uploadedfile']['name']);
$_FILES['uploadedfile']['tmp_name']; 

$target_path "uploads/";

$target_path $target_path basename$_FILES['uploadedfile']['name']);

if(
move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo 
"The file ".  basename$_FILES['uploadedfile']['name']).
    
" has been uploaded";
} else{
    echo 
"";
}

?>

      </div></th>
    </tr>
:flag-de::flag-en:
Search / Suche:
Code: [Select]
         <!-- <tr>
            <td align="right" valign="middle"><b>Upload:</b></td>
            <td align="left">
                <input type="hidden" name="MAX_FILE_SIZE" value="100000" class="inmput"/>
                <input name="uploadedfile" type="file" class="input" size="26"/>
                <input type="submit" value="Upload File" class="button"/>
                <br />
              </td>
          </tr> -->
:flag-de::flag-en:
Ersetze mit / Replace with:
Code: [Select]
         <tr>
            <td align="right" valign="middle"><b>Upload:</b></td>
            <td align="left">
                <input type="hidden" name="MAX_FILE_SIZE" value="100000" class="inmput"/>
                <input name="uploadedfile" type="file" class="input" size="26"/>
                <input type="submit" value="Upload File" class="button"/>
                <br />
              </td>
          </tr>
« Last Edit: January 22, 2010, 10:54:57 AM by Rembrandt »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #1 on: July 24, 2008, 12:48:57 AM »
... wenn man als Überschrift "Solved Problem" wählt, dann sollten die Problem aus dem alten Thread nun wirklich gelöst sein, um einen neuen Tread mit einem alten MOD zu eröffnen ...
... daher meine Fragen ...

  • Hast du das Kontaktformular incl. Dateiupload erfolgreich getestet ... ?
  • Wenn ich in den Code der contact.php sehe, dann fällt mir so einiger "Code-Müll" auf, der mit Sicherheit dort nicht gebraucht wird und dort hingehört. z.B. doppelter Captcha_Code (alte und neue Variante), New_Images_Code der überhaupt nicht benötigt wird, u.s.w.
  • Mit dem Upload_Form habe ich auch meine Probleme. Der kann in der vorliegenden Form einfach nicht funktionieren ...

Die Probleme sollten erst gelöst werden, um hier im Forum unter Mods & Plugins (Releases & Support) gelistet zu werden ...
Nichts für ungut ... es geht erst einmal zurück nach ... Mods & Plugins (Requests & Discussions) ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #2 on: February 16, 2009, 11:28:00 AM »
Hi,

Are this mod can be use in v1.7.6? Replace the email.php file with attached one? Etceteras?

Worry if will effects my web.

Thank you.
Love 4images! @--^-----

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #3 on: February 16, 2009, 11:46:35 AM »
After trying to replace the email.php and upload the required files into my server. The results is unsuccessful because no email is sent to the admin email.

This mod is out-dated!

Thanks.
Love 4images! @--^-----

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #4 on: February 16, 2009, 02:40:48 PM »
Does your 4images sends emails via ACP and when someone register?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #5 on: February 16, 2009, 03:27:36 PM »
When someone registered, an email which contained login details will be sent to user's email. But, no email will be send to my admin email. Erm...why? I am curious after you ask me that question.

And more thing, my 4images registration does not need an activation and also disabled the notification when user uploads an image.
Love 4images! @--^-----

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #6 on: February 16, 2009, 03:45:10 PM »
I asked that just to confirm that your 4images is actually able send email in the first place ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #7 on: February 16, 2009, 03:53:51 PM »
I never had any problem with original mod , captcha or uploadform in it. So what kind of problem did you solved????

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #8 on: February 16, 2009, 03:59:17 PM »
V@no,
So, do you think my 4images will works well? Because currently my 4images is still closed for registration. Hopefully will be okay because my 4images will be open to public by tomorrow.  :D

om6acw,
Perhaps your version is below than 1.7.6?! Erm... My resolution is not to use this mod. Do you have any idea how to get this mod work?

One more thing, the instructions are very bad. If you could help me with this, I am very-very appeciated.

Thank you.
« Last Edit: February 16, 2009, 04:09:48 PM by yesme »
Love 4images! @--^-----

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #9 on: February 16, 2009, 04:07:51 PM »
The email.php file included into the package is nothing more then unmodified file from 4images v1.7 (I have no idea why it's includes)
Just restore your email.php .
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #10 on: February 16, 2009, 04:30:32 PM »
Okay because of I concerned about your seriousness, I have re-installed and checked the mod. But the results still the same. No email is send whether from Guest user or Registered user. In addition, the spellchecker also does not work as an error appeared in IE status bar.
Love 4images! @--^-----

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #11 on: February 16, 2009, 04:44:29 PM »
om6acw,
Perhaps your version is below than 1.7.6?! Erm... My resolution is not to use this mod. Do you have any idea how to get this mod work?

I'm using latest version of 4images that's mean 1.76 and original mod works well for me since 1.72 version.
Also before you do any changes in 4images gallery based on emailing something to you , you have to make sure
this function is working on your installation before any modification.

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #12 on: February 16, 2009, 05:10:23 PM »
Owh really? Have you change the scripts to make it works? I also tried to re-installed and checked the the function of Original Mod just now. But an errors occured as below:

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in ..../public_html/includes/db_mysql.php on line 116

I dont want to change anything because lack of php language.

Updates:
After uploaded an the orginal mod, email.php to my server, the same error occured as above and also after clicked send an error as below appeared on top of the page.

Email Error: Couldn't open Template ./lang/english/email/contactform_message.html

Warning: Cannot modify header information - headers already sent by (output started at ..../public_html/includes/email.php:336) in ..../public_html/contact.php on line 85
Love 4images! @--^-----

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #13 on: February 16, 2009, 05:25:26 PM »
Owh really? Have you change the scripts to make it works? I also tried to re-installed and checked the the function of Original Mod just now. But an errors occured as below:

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in ..../public_html/includes/db_mysql.php on line 116

I dont want to change anything because lack of php language.

Updates:
After uploaded an the orginal mod, email.php to my server, the same error occured as above and also after clicked send an error as below appeared on top of the page.

Email Error: Couldn't open Template ./lang/english/email/contactform_message.html

Warning: Cannot modify header information - headers already sent by (output started at ..../public_html/includes/email.php:336) in ..../public_html/contact.php on line 85

I'm not PHP coder either  but I'm following instruction precisely, and contact form mod was working for me on first time. It's probably easiest mod. Also those errors are covered in FAQ so use search function from this forum.

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
« Reply #14 on: February 16, 2009, 05:41:37 PM »
Yeay, I got the emails!!!!

I used the original .html file but the contact.php I used the latest from this thread. And I used the latest one for email.php.

Thanks for your replies.
Love 4images! @--^-----