4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Sunny C. on July 23, 2008, 04:02:49 AM

Title: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: Sunny C. on July 23, 2008, 04:02:49 AM
 :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

 :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>
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: mawenzi 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 ...


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) ...
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: yesme 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.
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: yesme 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.
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: V@no on February 16, 2009, 02:40:48 PM
Does your 4images sends emails via ACP and when someone register?
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: yesme 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.
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: V@no 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 ;)
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: om6acw 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????
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: yesme 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.
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: V@no 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 .
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: yesme 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.
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: om6acw 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.
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: yesme 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
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: om6acw 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.
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: yesme 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.
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: KurtW on January 22, 2010, 09:21:01 AM
Hallo Benny,

kannst du bitte im Modtext die Images entfernen.
http://4images.malediven-bilder.de/images/gb.gif usw.

Erzeugen in meiner Statistik einen Fehlermeldung.

Danke! 

Gruss
Kurt
Title: Re: [MOD] Contact Form with Solved Problem, Captcha and Uploadform
Post by: Rembrandt on January 22, 2010, 10:55:51 AM
...
kannst du bitte im Modtext die Images entfernen....

erledigt

mfg Andi