4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: Vincent on July 22, 2005, 01:37:27 PM

Title: [MOD] Contact Form
Post by: Vincent on July 22, 2005, 01:37:27 PM
the Original MOD (by vividviews) have been lost since the hack! :twisted:
Honda2000 and myself have put it back a live!  :wink:

download the file - unzip the file - upload the file to the right place on your server!

the contact.php in the root
the email.php in the includes directory

the contact.html you put them in your templates/<your template>/
the contact_mailform.html in the your templates/<your template>/

the mailform_message.html in your lang/<your language>/email/

the file contact.php around line 74 and 75 you have to add your email adress and if you like a part of the email subject!

hope it helps
sincerly
Vincent
Title: Re: [MOD] Contact Form
Post by: paburmester on July 23, 2005, 12:25:23 AM
thanks men!
Title: Re: [MOD] Contact Form
Post by: TheOracle on July 23, 2005, 02:39:16 AM
Quote

$site_email->set_to("your@email.com");


for :

Code: [Select]

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


since global.php is included on the top as this will save you a lot of trouble. ;)
Title: Re: [MOD] Contact Form
Post by: TomYork on July 23, 2005, 05:49:09 AM
excelent!
Title: Re: [MOD] Contact Form
Post by: honda2000 on July 23, 2005, 03:35:08 PM
ja, natürlich! der MOD ist nur für den Standard, ohne includete Dateien, wer die includen möchte z.B. 4dark.php / random_image.php u.s.w. muss sich natürlich die contact_mailform.html entsprechend anpassen!!!!

also auf jedes Template und jedes layout anpassbar!
Title: Re: [MOD] Contact Form
Post by: TheOracle on July 24, 2005, 01:10:58 AM
the korrekt Weise zu verbinden contact_form.html ist mit page_header.php oder index.php. ;)
Title: Re: [MOD] Contact Form
Post by: TheOracle on July 24, 2005, 07:56:13 PM
Another tip before installing this MOD. Make sure that you have the ' mailchek ' module added from your includes/functions.php file. Otherwise, it will not work. ;)

-------------------------------------------------

Du müssen überprüfen, zuerst, wenn ' mailchek ' Modul ist beteiligt in includes/functions.php. Andernfalls, es wille ausfallen. ;)
Title: Re: [MOD] Contact Form
Post by: TheOracle on July 25, 2005, 01:59:07 PM
Another tip :

If you're using the modified version of ' check_email ' MOD from :

http://www.4homepages.de/forum/index.php?topic=6551.0

then rename ' mailchek ' to : ' mailcheck ' in your contact.php file.

-------------------------------------------

Einen anderen Vorschlag:

Wenn du die abgeänderte Version von ‘check_email’ MOD hast

http://www.4homepages.de/forum/index.php?topic=6551.0

Dann kannst du in der contact.php mailchek zu mailcheck umbenennen
Title: Re: [MOD] Contact Form
Post by: Vincent on July 25, 2005, 02:48:05 PM
.
Title: Re: [MOD] Contact Form
Post by: Boardy on August 01, 2005, 11:24:35 PM
Hallo


Könnte mir jemand sagen wieso, bei mir folgender Fehler nach absenden der Empfehlung angezeigt wird ?

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

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


Die Mail kommt zwar bei mir an, aber leider wird nicht angezeigt was geschrieben wurde. Die Mail ist also leer :(
Kann mir da jemand sagen was da falsch läuft ?  :?:
Title: Re: [MOD] Contact Form
Post by: Vincent on August 01, 2005, 11:25:55 PM
hast du diese datei

Code: [Select]
Email Error: Couldn't open Template ./lang/deutsch/email/contactform_message.html
gruss
vincent
Title: Re: [MOD] Contact Form
Post by: Boardy on August 01, 2005, 11:28:10 PM
Nein, die war bei mir nicht dabei  8O
Title: Re: [MOD] Contact Form
Post by: Vincent on August 01, 2005, 11:31:30 PM
na na so kann es nicht sein
die contact.zip aus diesem MOD hast du runtergeladen? und dort ist dieses file!!

der pfadfehler zeigt dir sogar genau an wo es hin muss!

gruss
vincent
Title: Re: [MOD] Contact Form
Post by: Boardy on August 01, 2005, 11:43:05 PM
Nein die war nicht dabei, jedenfalls hieß die anderes. Statt contactform_message hieß die Datei mailform_message.html. Hab sie einfach mal umgeschrieben und nun gehts *freu*
War also nur ein schreibfehler der Datei  :roll:
Danke trotzdem, hast mir da sehr geholfen, sonst wäre es mir nicht aufgefallen  :wink:



gruss Boardy
Title: Re: [MOD] Contact Form
Post by: Vincent on August 01, 2005, 11:53:00 PM
 :?    54 mal wurde die datei gedownloadet und das fällt erst jetzt auf

gruss
vincent
Title: Re: [MOD] Contact Form
Post by: Boardy on August 01, 2005, 11:56:00 PM
Ja deshalb hatte ich gefragt. Wusste nicht genau wo mein Fehler lag, da ich alles so gemacht hatte wie es in der Read Me stand. Bloß der Schreibfehler ist mir auch erst später aufgefallen  :lol:
Title: Re: [MOD] Contact Form
Post by: colorssky on August 18, 2005, 05:28:33 PM
when I tried to send contact I have this error


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

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


how to fix it?
Title: Re: [MOD] Contact Form
Post by: honda2000 on August 19, 2005, 10:21:14 AM
zum Beitrag von Boardy

klar ist die Datei nicht im zip-Ordner, wozu auch?? Die Datei ist Orginal im Ordner email vorhanden!

wer die natürlich nicht nutzt oder löscht...
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 23, 2005, 06:01:38 PM
I am also getting
Code: [Select]
Email Error: Couldn't open Template ./lang/english/email/contactform_message.html

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

This has been covered above in German, but please post the solution in English.
Thank You.
Title: Re: [MOD] Contact Form
Post by: Vincent on August 23, 2005, 06:11:29 PM
strange - did you read this topic  :?:

vincent
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 23, 2005, 06:15:16 PM
Yes, but the previous comment on the same error was in German, you replied to him, but I don't know what it meant.
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 23, 2005, 06:47:34 PM
Make sure there are no spaces between <?php<spaces> and ?><spaces>.

The "<spaces>" must not be included. ;)
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 23, 2005, 07:10:08 PM
nope, there are no extra spaces..
It sends the e-mail allright, but it keeps adding the error to the top.

It doesn't return an error when you don't fill all the fields, so it is not the submitting, it is the sending part that gives me the error.

Please test:
www.34tr.com/contact.php

 :(
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 24, 2005, 03:34:50 AM
Quote

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


You did not complete the instructions of this MOD. You must create a file called : contactform_message.html under your templates/<your_template> folder and paste the content from the instructions. From there, it should definitely resolve the issue. ;)
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 24, 2005, 06:03:02 AM
Hi Oracle,

saw your test at the site, thanks for the concern.

About the instructions=   :( Am I missing something that was previously released and now is not around?

All i get is the zip file with 3xhtml and 2xphp and 1xhelp file in german.

Code: [Select]
so, die beiden html dateien legst du in den ordner: template/default/dein_template
und auch in alle anderen aktiven templates, solltest du den useren templates zur auswahl geben!

die datei: email.php legst du in den ordner includes

und die datei contakt.php legst du in den ordner root der galerie bzw. deiner webseite, dort wo die index liegt.  passe vorher die zeilen 74 bis 76(75) an deine seite und deine e-mail-addi an!

danach gibst du die datei home.html mit chmod 777 frei um im acp das template bearbeiten zu können..
ACP >>> Template bearbeiten  >>> Template home.html bearbeiten

suche: <td align="right" width="50%">
        <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
        <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;
</td>

und ersetze es mit:

<td align="right" width="50%">
        <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
        <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;<br><br>
<a href="contact.php"><b>Kontakt</b></a>&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<br>

       </td>

(wäre der link zur kontaktseite in der home.html) zu kannst den link aber auch an anderer stelle z.b. header/footer oder wo auch immer einbauen.

die datei mailform_message.html kommt in den ordner: lang/deutsch/email/

solltest du die datei in englisch haben wollen, so ändere die lang und leg die datei zusätlich in den ordner: lang/english/email/
(den inhalt der datei kannst du frei anpassen!

das war´s! viel spaß mit dem kontaktformular!

bedankt euch bei: vincent kocher (www.foto-kocher.com)

solltet ihr fragen haben zu diesem mod haben: info@thomas-heydel.de oder www.thomas-heydel.de/galerie/


 

I only got the idea that I can add link to contact in my userlogin section and that's about it.

Could you please help me get the idea of a contactform_message or something similar?

It also mentions chmodding something to 777. Could you translate it? I assume that's the error about declaring header?


Title: Re: [MOD] Contact Form
Post by: Vincent on August 24, 2005, 08:10:09 AM
do you have this file  mailform_message.html  in your template?

vincent
Title: Re: [MOD] Contact Form
Post by: honda2000 on August 24, 2005, 09:00:50 AM
contact_mailform and mailform_message, contact.html must be in all templates, in default an in all styles.
email.php-file in > includes
contact.php in root of galery

for linking:
in my site is the link to Kontakt (contakt) in the  Template home.html
CHMOD is for working in ACP on home.html
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 24, 2005, 12:12:16 PM
Quote

contact_mailform and mailform_message


The extension would be important to specify since you're also referring to PHP files below. ;)

Quote

CHMOD is for working in ACP on home.html


I'm not sure I get this part though ... it is like you're talking about two different process in one single line.
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 24, 2005, 03:56:50 PM
do you have this file mailform_message.html in your template?

vincent


Actually:

 contact.php is in root,
contact.html is in my template folder
contact_mailform.html in my template folder
mailform_message.html is /4images/lang/english/email/ (already had this one there, didn't replace, --does this have to be in template or under email?)

contactform_message.html <- I don't have this.

Thank You.
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 24, 2005, 03:59:55 PM
Quote

mailform_message.html is /4images/lang/english/email/ (already had this one there, didn't replace, --does this have to be in template or under email?)


It is in the right place.

Quote

contactform_message.html <- I don't have this.


You must have this file by following the instructions.
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 24, 2005, 04:20:09 PM
 8O  Which instructions...:?:     :|
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 24, 2005, 04:21:43 PM
Instructions from the ZIP Package file . . .  :?
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 24, 2005, 04:27:52 PM
Oh my god.
I have already posted above what I got in the zip file, it is in GERMAN, and does not mention the missing file.

Code: [Select]
so, die beiden html dateien legst du in den ordner: template/default/dein_template
und auch in alle anderen aktiven templates, solltest du den useren templates zur auswahl geben!

die datei: email.php legst du in den ordner includes

und die datei contakt.php legst du in den ordner root der galerie bzw. deiner webseite, dort wo die index liegt.  passe vorher die zeilen 74 bis 76(75) an deine seite und deine e-mail-addi an!

danach gibst du die datei home.html mit chmod 777 frei um im acp das template bearbeiten zu können..
ACP >>> Template bearbeiten  >>> Template home.html bearbeiten

suche: <td align="right" width="50%">
        <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
        <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;
</td>

und ersetze es mit:

<td align="right" width="50%">
        <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
        <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;<br><br>
<a href="contact.php"><b>Kontakt</b></a>&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<br>

       </td>

(wäre der link zur kontaktseite in der home.html) zu kannst den link aber auch an anderer stelle z.b. header/footer oder wo auch immer einbauen.

die datei mailform_message.html kommt in den ordner: lang/deutsch/email/

solltest du die datei in englisch haben wollen, so ändere die lang und leg die datei zusätlich in den ordner: lang/english/email/
(den inhalt der datei kannst du frei anpassen!

das war´s! viel spaß mit dem kontaktformular!

bedankt euch bei: vincent kocher (www.foto-kocher.com)

solltet ihr fragen haben zu diesem mod haben: info@thomas-heydel.de oder www.thomas-heydel.de/galerie/


 

Where in above file do you see contactform_message.html ??? Not even in german, let alone english.

....
Title: Re: [MOD] Contact Form
Post by: honda2000 on August 24, 2005, 05:12:37 PM
pleace, my enlish is not werry good, but in englich!

from zip-file:
contact.php in >>> in root
in contact.php  pleace order the contact.php in line 74 - 79 (your e-mail-adress)
an than in root upload!

email.php in includes upload

contact_mailform.html and mailform_message.html and  contact.html must be in all templates, in default an in all styles.




Title: Re: [MOD] Contact Form
Post by: TheOracle on August 24, 2005, 05:18:57 PM
Quote

contact_mailform.html and mailform_message.html and  contact.html must be in all templates, in default an in all styles.


contact_mailform.html = templates
contact.html = templates
mailform_message.html = lang/<your_lang>/email
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 24, 2005, 05:26:17 PM
Honda, that was already there, in english in first post.  :lol:

Yes, yes and yes.
I have all of the above correctly placed, and still getting the same error.

Mind you, I have installed many other mods and they all run perfectly. But this one is asking for the contactform_message.html .

Oracle, c'mon.
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 24, 2005, 05:29:16 PM
Quote

But this one is asking for the contactform_message.html


If this file is being requested, it means that you do not have the file or you did not uploaded in the right place or you did not uploaded them on all customized folders or simply not in the one you're currently using since 4images cannot detect the file.

Quote

Oracle, c'mon.


You are being asked to remain calm, since I only come on this forum volontarely. Thanks.
Title: Re: [MOD] Contact Form
Post by: honda2000 on August 24, 2005, 05:32:41 PM
contactform_message.htl ist your template!

whenn not?!
pleace: mailform_message.html copy this file in in an gif the name: contactform_message.html
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 24, 2005, 05:36:48 PM
OK..
I was actually thinking of the same thing, what I did was I just put the same file and renamed it.
Now it does not return any error.


@oracle,
I know it is voluntary, I was not flaming you or demanding an explanation, I was just friendly "c'mon'ing"
I knew the file was missing, that I figured out. However, so far not a single post mentioned how to create the darn file or that we had to rename another file into that, or that it even had to exist.  That was my point through the whole thing.

It wouldn't hurt if somone edited the first post and added the above piece of information.

Thanks for your help, and as you know it is always appreciated.
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 24, 2005, 05:48:51 PM
Quote

However, so far not a single post mentioned how to create the darn file or that we had to rename another file into that, or that it even had to exist.


I won't take any chances. Here -

mailform_message.html :

Code: [Select]

This message was sent by {sender_user_name} ({sender_user_email}) through "{site_name}".
{site_name} cannot be held responsible for the content of this email.

Here is their message:
-------------------------------------------
{message}


From your lang/<your_lang>/email folder. ;)
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 24, 2005, 06:02:46 PM
Actually contactform_message.html

The easiest way would be just copy and rename mailform_message.html and add contactform_message.html to the zip package. ;) that's it.
But thanks for your help.
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 24, 2005, 06:06:25 PM
In that case, you could simply go to your contact.php file and look

for :

Quote

$site_email->set_body("contactform_message", $config['language_dir']);


and change it to :

Code: [Select]

$site_email->set_body("mailform_message", $config['language_dir']);


;)
Title: Re: [MOD] Contact Form
Post by: hyde101 on August 24, 2005, 06:44:53 PM
That's correct. :)  I love 4 images. :)
Title: Re: [MOD] Contact Form
Post by: honda2000 on August 24, 2005, 06:53:10 PM
sorry, my english is not good!
all is very well! :D :wink:
Title: Re: [MOD] Contact Form
Post by: TheOracle on August 25, 2005, 05:19:47 AM
That's what I thought. 8)
Title: Re: [MOD] Contact Form
Post by: IWS_steffen on September 25, 2005, 03:39:16 AM
HI

This Mod works perfect ... great !!! 

Many thanks   

coooool

Steffen
Title: Re: [MOD] Contact Form
Post by: bibabobu on November 07, 2005, 10:12:20 PM
 :D
Vielen Dank Leute!!!
Funktioniert einwandfrei!!!
Man muß nur darauf achten das man eine contactform_message.html mit gleichem (oder individuell angepassten) Inhalt im lang/email Ordner hat.

Habe trotzdem noch eine Frage.
Wie und wo kann ich denn die Schriftart der Inputboxen ändern :?:
Wahrscheinlich über den CSS File oder? Konnte aber noch nichts genaues finden.
Möchte gerne den einheitlichen Look meiner Seiten mit dem Tahome Font beibehalten.

Kann mir jemand helfen?

EDIT:
 :cry: :cry: :cry:
Zu früh gefreut.
Es funktioniert nur an meine eigene E-Mail Adresse perfekt.
Bei Versand an eine externe E-Mail erhalte ich folgende Fehlermeldung.
Code: [Select]
Email Error: RCPT TO invalid mail server response: 550 relay not permitted
Erbitte dringend Hilfe, weshalb dies der Fall ist. Habe leider keine Ahnung woran es liegen könnte :cry:
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 07, 2005, 10:26:42 PM
Du musste den Textfeldern noch die CSS Klassen zuordnen wie zB "class="logininput"" bei dem Login Textfeld... (o:
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 07, 2005, 10:29:28 PM
Es funktioniert nur an meine eigene E-Mail Adresse perfekt.
Bei Versand an eine externe E-Mail erhalte ich folgende Fehlermeldung.
Code: [Select]
Email Error: RCPT TO invalid mail server response: 550 relay not permitted
Erbitte dringend Hilfe, weshalb dies der Fall ist. Habe leider keine Ahnung woran es liegen könnte :cry:


Das liegt nicht an den Script sondern an den Server Einstellungen... (o:
Das ist so eingestellt damit man zB das Formular nicht zum Spam versenden benutzen kann...
Title: Re: [MOD] Contact Form
Post by: bibabobu on November 08, 2005, 07:51:53 AM
Sorry, blick ich nicht.
Meine eigene funktioniert. Alle anderen Email Adressen funktionieren nicht!
Dann ist es ja unbrauchbar!
Oder steh ich auf der Leitung.

Kannst es ja mal auf meiner Seite ausprobieren.

Wie bekomme ich das hin :?:

 :cry: :cry: :cry:
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 08, 2005, 08:15:58 AM
Nutzt Du SMTP zum Mailsversenden?

Wenn ja:
http://www.4homepages.de/forum/index.php?topic=3162.0
Title: Re: [MOD] Contact Form
Post by: bibabobu on November 08, 2005, 09:09:05 AM
Vielen Dank Acidgod!  +1 Karma von mir :-) wieder mal  :mrgreen:

Scheint jetzt alles problemlos zu laufen.
Das mit den CSS und layouten von den Inputboxen werde ich wohl auch noch  hinbekommen.

 :D :D :D :D :D :D
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 08, 2005, 09:15:37 AM
poste doch mal dein template dann sage ich dir gerne wie man die css klassen einbindet das ist super easy...
Title: Re: [MOD] Contact Form
Post by: honda2000 on November 08, 2005, 09:16:09 AM
@bibabobu irgendetwas stimmt mit der seite trozdem nicht!
der IE zeigt in der statusleiste einen fehler!

könnte am tabellenaufbau, votingscript, oder sonstwas liegen!

dummerweise kommt der fehler auf allen seiten!

Grüße
honda2000
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 08, 2005, 09:17:48 AM
Du hast auch bei dem Clickstream ein spacer.gif nicht richtig verlinkt... (o:

http://www.industrie-gravuren.de/galerie/%7btemplate_url%7d/images/spacer.gif

Ich sehe greade das das Template von dem Kontaktformular noch mehr "Fehler" aufweisst aber die wirst ja bestimmt noch fixen...

EDIT:
@Honda
Wo ist dort den ein Fehler? Mein Netscape meldet keine Fehler... Meinste Javascript Fehler oder was für ein Fehler kommt dort?

EDITII:
In der detail.html ist das spacer.gif auch nicht richtig verlinkt oder es ist nicht vorhanden oder es ist kaputt...
http://www.industrie-gravuren.de/galerie/templates/defaultimages/spacer.gif

EDITIII:
Du brauchst, wenn sich dein Firmensitz in Deutschland befindet auch unbedingt ein Impressum!!!!

EDITIV:
Auf der Startseite ist der Link NewsArchiv grau hinterlegt, dafür müsstest Du in dem Template nach <a class="head1"  href="news.php"> suchen und das class="head1"  entfernen... (o:
Title: Re: [MOD] Contact Form
Post by: bibabobu on November 08, 2005, 09:34:08 AM
WOW vielen Dank für die umfangreiche Hilfe :D

Das mit den Fehlermeldungen ist mir durchaus bewußt und bertifft glaube ich nahezu alle Seiten.
Ich werde gerne mal in der global.php die Fehlermeldungen aktivieren, dann könnte man sicher (wenn man es so drauf hat wie ihr) besser die Fehler erkennen und und entfernen.

@acidgo
das mit den css class werde ich wohl hinbekommen.
Das mit dem Impressum weiß ich. Wollte auch schpn längst eines erstellt haben.
machst mir ja roichtig Angst. Werde ich als nächstes angehen.

Könntet Ihr mir helfen die Fehlermeldungen in der Statusleiste entfernen??? :oops:
Das wäre super!!!!!!!
Title: Re: [MOD] Contact Form
Post by: honda2000 on November 08, 2005, 09:37:18 AM
das hier meine ich!

Title: Re: [MOD] Contact Form
Post by: bibabobu on November 08, 2005, 09:39:52 AM
also habe in der global.php die error message aktiviert.

...ach du *******
fette viele Fehler  :cry:
Könnt Ihr mir helfen?
Liegt wohl hauptsächlich an einem Kalender und Umfrage template. Sind alles Mods aus dem Forum hier.
Title: Re: [MOD] Contact Form
Post by: honda2000 on November 08, 2005, 09:39:59 AM
könnte ja sovieles sein!
tabellenaufbau
script (eingebundenes)
template
fehlender spacer
.
.
.
ich hab so einen fehler auf der www.welsh-terrier-online.de unter kleinanzeigen und e-mail-service und bekomm ihn nicht weg! :cry: :cry:
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 08, 2005, 09:41:15 AM
welche php version?
Title: Re: [MOD] Contact Form
Post by: bibabobu on November 08, 2005, 09:53:41 AM
habe server info MOD installiert.

ist glaube ich unter www.industrie-gravuren.de/galerie/admin/plugins/server_information.php oder so ähnlich einsehbar.

PHP Version 5.0.5   :!:
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 08, 2005, 09:55:46 AM
oder so ähnlich trifft es voll... *g*
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 08, 2005, 10:05:16 AM
Mit der PHP 5 Version gibt es zB massive Fehlermeldungen mit dem Dreamboard...

Ich denke das Du diese Fehlermeldungen nicht so einfach beseitigen kannst ausser das Du wieder die Error Messages deaktivierst... )o:
Title: Re: [MOD] Contact Form
Post by: bibabobu on November 08, 2005, 10:08:54 AM
Mist, dabei läuft es eigentlich gut bei mir. hatte ein paar sachen geändert.
Werde es wohl erst einmal so lassen.

Gibt es eine gute Alternative zur Integration eines Boards mit derselben Userverwaltung?

Wie bekomme ich den Link "News Archiv" auf meiner home in schwarz?

Wie bekomme ich diese haufen Fehlermeldungen weg
Code: [Select]
Notice: Use of undefined constant mon - assumed 'mon' in /is/htdocs/wp1015398_0TDZ7CIHLH/www/galerie/includes/page_header.php on line 505

Denke es liegt am Kalender MOD in Verbindung mit dem englichen Template :?: :oops:
Title: Re: [MOD] Contact Form
Post by: Acidgod on November 08, 2005, 10:14:12 AM
Also eins nach dem anderen... Mach mal einen neuen Thread auf wo wir darüber reden können, das gehört hier nämlich nicht wirklich rein... (o:
Title: Re: [MOD] Contact Form
Post by: bibabobu on November 08, 2005, 10:34:35 AM
Neuen Thread unter Discussion und Troubleshooting eröffnet :wink:
Title: Re: [MOD] Contact Form
Post by: Helge on November 11, 2005, 08:21:19 PM
Der MOD funzt soweit einwandfrei, nur werden mir keine Umlaute im Betreff angezeigt.
Beim verfassen geht es noch, aber wenn ich die Mail dann erhalte, steht im Betreff statt "Schönes Wetter" SchXnes Wetter". Kann mir da wer helfen?

Gruß
Title: Re: [MOD] Contact Form
Post by: honda2000 on November 11, 2005, 11:21:27 PM
in das deutsche sprachmodul musst du ihn schon chachen!

umlaute können aber auch von provider "verschluckt" werden wenn du per domain die mail verschickst!
Title: Re: [MOD] Contact Form
Post by: chip on January 02, 2006, 06:01:27 PM
hi everyone,

if I try to send via the contact form I get this:

Quote
Email Error: AUTH LOGIN invalid mail server response: 250-SIZE 26214400
Maybe your SMTP Server does'nt support authentification. Try to leave Username and Password blank in your settings.

I'm using smtp because without it, email would not work.

Any ideas?

Title: Re: [MOD] Contact Form
Post by: V@no on January 02, 2006, 06:02:53 PM
and you are sure that you can send out emails through members email forum or through ACP?
Title: Re: [MOD] Contact Form
Post by: chip on January 02, 2006, 06:07:05 PM
hi vano,

yes. Email from ACP, postcards and registration everything works well, except the contact form.
Title: Re: [MOD] Contact Form
Post by: chip on January 04, 2006, 10:38:07 PM
hi everyone,

I installed the mod again and got the same error message as posted above.

Now I asked myself what email.php has to do with this mod, since this is the file causing my problems.

So I changed email.php back to original (from the 1.7.1 installation) and now the contact form works perfectly with smtp.  :)

But now of course I wonder  :?:

Title: Re: [MOD] Contact Form
Post by: TheOracle on January 05, 2006, 12:13:21 PM
Quote

So I changed email.php back to original (from the 1.7.1 installation) and now the contact form works perfectly with smtp.


It might be possible that you installed another MOD that required modifications to includes/email.php file. The problem wasn't the file itself but probably something during the modification / implementation you did along the other process. ;)
Title: Re: [MOD] Contact Form
Post by: avsrock90 on January 16, 2006, 05:16:55 PM
Just a few questions about this mod:

Is there any reason why the template on the contact.php page would not match the rest of the site once it has been installed?

Is there any way to customize who the emails go to? Several other regular uploaders to my database would like their own contact link as well. Could I just make some changes in contact.php and have several different files that email individual contributors?

Thanks for helping out a coding idiot! 
Title: Re: [MOD] Contact Form
Post by: TheOracle on January 16, 2006, 05:24:49 PM
Please read the replies. This has been discussed and customized along the way.
Title: Re: [MOD] Contact Form
Post by: avsrock90 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
Title: Re: [MOD] Contact Form
Post by: TheOracle 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. ;)
Title: Re: [MOD] Contact Form
Post by: kief24 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
Title: Re: [MOD] Contact Form
Post by: om6acw 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 (http://www.myanimalsworld.com/sk/contact.php)

Title: Re: [MOD] Contact Form
Post by: Stoleti on February 03, 2006, 07:05:27 PM
this show just it :

but doesn't appear any number ....

this require GD library or something ?

Title: Re: [MOD] Contact Form
Post by: kief24 on February 03, 2006, 08:01:02 PM
thx om6acw
Title: Re: [MOD] Contact Form
Post by: om6acw 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.
Title: Re: [MOD] Contact Form
Post by: Stoleti 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...  :?
Title: Re: [MOD] Contact Form
Post by: glitzer on February 05, 2006, 05:31:47 PM
It works Great without any problems! Thank you all for this perfect Mod! :D
Title: Re: [MOD] Contact Form
Post by: TheOracle 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 ? :)
Title: Re: [MOD] Contact Form
Post by: glitzer 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 :(
Title: Re: [MOD] Contact Form
Post by: trez 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
Title: Re: [MOD] Contact Form
Post by: TheOracle 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.
Title: Re: [MOD] Contact Form
Post by: glitzer on February 17, 2006, 07:25:03 PM
Hi Oracle, that would be nice, to have a contact form with the security code. :)
Title: Re: [MOD] Contact Form
Post by: TheOracle 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). ;)
Title: Re: [MOD] Contact Form
Post by: TheOracle on February 18, 2006, 04:30:33 AM
Update:

I have completed my new contact MOD as I have successfully imported the Anti-Spam MOD within. In the mean time, webmasters will be notified if the code has been approved or not inside the e-mail itself (in case of automated bot systems).

Well, if people are interested, please advise. ;)
Title: Re: [MOD] Contact Form
Post by: BartAfterDark on March 05, 2006, 01:45:20 PM
We are ;D
Does it work with 1.7.2 cause I can't get this to work anymore :S

Update:

I have completed my new contact MOD as I have successfully imported the Anti-Spam MOD within. In the mean time, webmasters will be notified if the code has been approved or not inside the e-mail itself (in case of automated bot systems).

Well, if people are interested, please advise. ;)
Title: Re: [MOD] Contact Form
Post by: live@ct on March 06, 2006, 04:50:18 AM
how about a posibility to change recipient?!?!?!? but only with a name of predefinied recipient!?!?
Title: Re: [MOD] Contact Form
Post by: Fastian on March 13, 2006, 07:22:21 PM
Update:

I have completed my new contact MOD as I have successfully imported the Anti-Spam MOD within. In the mean time, webmasters will be notified if the code has been approved or not inside the e-mail itself (in case of automated bot systems).

Well, if people are interested, please advise. ;)


I m more than interested.  :D 
When are U going to post ?
Let me know if i can ever be helpfull (testing or something )
Title: Re: [MOD] Contact Form
Post by: Fastian on March 19, 2006, 09:24:33 AM
Is this possible to add few more fields in the form and make them as "Required” fileds???

Can I use it two three times??  Like contact1.php & contact2.php?
Title: Re: [MOD] Contact Form
Post by: mentally on March 24, 2006, 05:20:58 AM
does this work for 1.7.2 ?

i get this error:

arse error: parse error in \www\includes\template.php(101) : eval()'d code on line 243

 8O
Title: Re: [MOD] Contact Form
Post by: Fastian on March 26, 2006, 05:29:16 PM
Someone Please help me here to change this Mod a bit and take it to the Next Level.

I am trying to use it to submit "Link Exchange" form.

What changes should I do to use it with new name like (Linkexchange.php)???
That’s because I m already using it fro normal contact form as contact.php. 

Secondly, how can I add few more fields in the form and make them "Required"

Help Please.
Title: Re: [MOD] Contact Form
Post by: cappuccino on March 29, 2006, 01:10:54 AM
Hallo,
Dachte mit diesen Script ist es auch möglich als GUEST zu senden?
Also wenn man nicht eingeloggt ist?
Habe dazu noch das SecurityScriot eingebaut und es funtioniert alles so weit ausser das nach erfolgtem Logout immer dieser Fehler auftritt:

Email Error: MAIL FROM invalid mail server response: 550 5.7.0 {mp033} Sender address does not belong to logged in user

in den Einstellungen verwende ich den SMTP. Ecards versenden und User benachrichtigen per Email geht auch.
Auch ist es egal was ich für einen Username oder Emailadresse als Absender in das Kontaktformular eingebe, solang ich nebenbei noch als Admin eingeloggt bin.
Sobald ich mich auslogge, kommt oben genannter Fehler.

Weiss jemand eine Abhilfe?

Danke im Voraus

Gruß
Title: Re: [MOD] Contact Form
Post by: cappuccino on March 29, 2006, 01:16:36 AM
NACHTRAG:
Funktioniert dann doch nur mit der User Emailadresse.

Gruß
Title: Re: [MOD] Contact Form
Post by: teedoubleyou on April 18, 2006, 10:49:11 PM
Weil es sehr verwirrend war, hab ich eine umbenannte des Kontaktformulars für euch zum download hochgeladen.
http://teedoubleyou.te.funpic.de/download/contact_deutsch.zip

Ich hoffe ich konnte helfen. 8)

Because it was not easy to manage installation ive uploadet a translated and renamed version of the contact_mod for you.
http://teedoubleyou.te.funpic.de/download/contact_english.zip

Hope I could help you out. 8)



Title: Re: [MOD] Contact Form
Post by: TIMT on May 13, 2006, 06:53:10 PM
Hi,

I implemented the following Code:

http://www.4homepages.de/forum/index.php?topic=8987.msg59688#msg59688

But there is no picture with numbers shown...

What could be the problem?

Title: Re: [MOD] Contact Form
Post by: live@ct on May 18, 2006, 08:38:40 AM
the add on that Im requesting it something to send the mail to a diferent recipients for example

If the user that like to send a mail to the Webmaster choose with a dropdown: "Webmaster"
the user that like to contact the Administrator choose with the dropdown: "Administrator
and Staff, Moderator, and whaterver I like to add

in the security form

there is a code for the contact form, that has a image with the security code
img src="sicherheit.php?z={comment_sicherheit}" alt="{comment_secure_scode}" title="{comment_secure_pleasecopy}" />

what are thar php file?!?!

thanks!!
Title: Re: [MOD] Contact Form
Post by: TIMT on May 20, 2006, 11:13:31 PM
Can anybody help me?

Hi,

I implemented the following Code:

http://www.4homepages.de/forum/index.php?topic=8987.msg59688#msg59688

But there is no picture with numbers shown...

What could be the problem?


Title: Re: [MOD] Contact Form
Post by: callme on May 22, 2006, 11:09:09 AM
Hello

i have this erreur
Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 45, 54, 47, 38, 1, 42, 41, 46, 53, 36, 44, 37, 52, 35, 40, 51, 34, 39, 48, 50, 33, 49, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 3) AND i.image_date >= 1148116045 ORDER BY RAND() LIMIT 4
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homepages/23/d161190330/htdocs/4images/includes/db_mysql.php on line 116


you can see the erreur at this url
http://www.tunisiaplus.com/4images/contact.php

thanks for your help

Title: Re: [MOD] Contact Form
Post by: kief24 on May 28, 2006, 09:46:09 AM

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}" />

Hello,

i did all these steps, and it all seems fine on the contact.php page, but if i send a message, i always get the message the security code i entered was wrong..... :?

Title: Re: [MOD] Contact Form
Post by: Amosnet on June 01, 2006, 07:05:42 PM
I want to add more fields including a radiobutton, is that possible, and how?

Ich möchte gerne noch einige Felder und Radiobuttons hinzufügen, ist das möglich, und wie?

Vielen Dank
Gruss Amos
Title: Re: [MOD] Contact Form
Post by: True4 on June 06, 2006, 10:57:50 PM
hallo,

wenn jemand über mein kontakformular eine nachricht schreibt bekomme ich die nachricht komplett als html, also so (und dazwischen irgendwo die eigentliche nachricht):

<table width="100%" class="box">
<thead>
<tr>
<th class="head2">Kont@kt hoer-bar.de</th>
</tr>

</thead>
<tr>
<td><div style="position:relative;">
<table width="100%" cellpadding="6" cellspacing="2" border="0">
<FORM name="contactForm" action="{url_contact}" METHOD="POST">
<tr>
<td align="right" valign="middle"><b>Your Name:</b></td>
<td align="left"><input name="sender_name" type="text" id="sender_name"
tabindex="1" value="{sender_name}" size="40" maxlength="50">
</td>
</tr>
<tr>
<td align="right" valign="middle"><b>Your Email:</b></td>
<td align="left"><input name="sender_email" type="text" id="sender_email"
tabindex="2" value="{sender_email}" size="40" maxlength="50">
</td>
</tr>
<tr>
<td align="right" valign="middle"><b>{lang_subject}</b></td>
<td align="left"><input name="subject" type="text" id="subject" tabindex="3"
value="{subject}" size="40" maxlength="50"></td>
</tr>
<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">afasf</textarea>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="left"><input type="hidden" name="action" value="emailSiteOwner"
/>
<input type="hidden" name="user_id" value="{user_id}" /> <input tabindex="5"
type="submit" name="submit" value="{lang_submit}" class="button"
style="margin-right:10px; ">
<input tabindex="6" type="reset" name="reset" value="{lang_reset}"
class="button">
</td>
</tr>
<script type="text/javascript">
// set focus to form field
cForm = document.getElementById("contactForm");
cForm.sender_name.focus();
</script>
</form>
</table>

</div>
</td>
</tr>
</table>


Was ist falsch, was mache ich falsch?
Die Dateien habe ich schon mal auf CHMOD 755 gesetzt, die eMail Adresse ist auch drin im contact.php, was ist falsch  :roll:
DANKE
True4
Title: Re: [MOD] Contact Form
Post by: TIMT on June 08, 2006, 11:25:55 PM
Hi everybody

How can I implement additional fields in the contact form (e.g. company name)?

Thanks for helping me.
Title: Re: [MOD] Contact Form
Post by: beach-baer on July 09, 2006, 08:42:17 PM
Moin Moin,

Ich habe den Mod "contact" integriert, mit dem man auf meiner www.minibild.de (http://www.minibild.de) Homepage eine Kontaktanfrage zu einem Bild an mich richten kann. Das ganze funktioniert soweit auch ganz gut. Ich hätte aber gerne, dass der Bildtitel gleich als Betrefftext in das Kontaktformular übergeben wird. Leider werden aber nur zufällige Bildtitel übergeben, die mit dem eigentlichen Foto aber nix zu tun haben.

Da ich nicht so der php-Crack bin, hoffe ich nun, dass jemand hier im Forum eine Lösung hierzu hat und mir etwas unter den Quellcode greifen kann. :D

Viele Grüsse aus Hamburg

Kay

EDIT am 23.07.2006

Moin Moin, nun habe ich es rausgefunden, mit ein wenig STRG-C und STRG-V hat sich das Problem gelöst... :mrgreen:
Title: Re: [MOD] Contact Form
Post by: __G__ on August 17, 2006, 08:33:02 PM
Hi i installed this i am just wondering it says this on top of the contact form Überschrift für Kontaktformular << how can i change this to english
Title: Re: [MOD] Contact Form
Post by: tansamalaja on August 28, 2006, 01:18:47 PM
I've got the same problem as beach-baer, can anybody help me.
Perhaps beach-bear? Can you tell me/us how you did it?

Kann beach-bear vielleicht den Lösungsweg posten, damit auch andere davon profitieren können... Büdde büdde...
Title: Re: [MOD] Contact Form
Post by: __G__ on August 29, 2006, 02:36:19 AM
Hi i installed this i am just wondering it says this on top of the contact form Überschrift für Kontaktformular << how can i change this to english

Can someone please tell me this
Title: Re: [MOD] Contact Form
Post by: tansamalaja on August 29, 2006, 08:53:00 AM
Look in contact.php line 38:

[qcode]$txt_clickstream = "Your text in here";[/qcode]
Title: Re: [MOD] Contact Form
Post by: paburmester on September 20, 2006, 09:03:04 AM
Hello

i have this erreur
Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 45, 54, 47, 38, 1, 42, 41, 46, 53, 36, 44, 37, 52, 35, 40, 51, 34, 39, 48, 50, 33, 49, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 3) AND i.image_date >= 1148116045 ORDER BY RAND() LIMIT 4
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homepages/23/d161190330/htdocs/4images/includes/db_mysql.php on line 116


you can see the erreur at this url
http://www.tunisiaplus.com/4images/contact.php

thanks for your help



Hi, my contact form has the same problem. How can I solve that?
Regards
Title: Re: [MOD] Contact Form
Post by: honda2000 on September 20, 2006, 09:07:15 AM
hi @ paburmester

Error: Template Error: Couldn't open Template ./templates/default/contact_mailform.html


in youre file: templates/default are not the file: contact_mailform.html

as atachement the file
Title: Re: [MOD] Contact Form
Post by: paburmester on September 20, 2006, 09:42:40 AM
thanks honda2000, but it stills not working  :(
Title: Re: [MOD] Contact Form
Post by: honda2000 on September 20, 2006, 11:33:06 AM
can i see your website?? URL??
Title: Re: [MOD] Contact Form
Post by: paburmester on September 20, 2006, 04:37:42 PM
thanks men, i think i solve it. im using php5 so i made some changes.

if someone has the same problem you can look this post: http://www.4homepages.de/forum/index.php?topic=14704.msg79121#msg79121
Title: Re: [MOD] Contact Form
Post by: havanna28 on September 22, 2006, 11:24:26 AM
Hy

Es wäre wirklich super, wenn für dieses Kontaktformular ein Captcha angeboten werden würde, da
viele Leute mit Spam zu kämpfen haben über dieses Formular.
Hat jemand eine Idee?

Title: Re: [MOD] Contact Form
Post by: ivan on September 22, 2006, 11:27:05 AM
Hy

Es wäre wirklich super, wenn für dieses Kontaktformular ein Captcha angeboten werden würde, da
viele Leute mit Spam zu kämpfen haben über dieses Formular.
Hat jemand eine Idee?




schau mir hier
http://www.4homepages.de/forum/index.php?topic=8987.75

ist hier in diesem tread zu finden!!!!

gruss ivan
Title: Re: [MOD] Contact Form
Post by: havanna28 on September 22, 2006, 01:03:02 PM
Hy Ivan

Danke für deine Info, jedoch ist dieser Beitrag für die Kommentare gedacht und nicht für die Kontakt Funktion.
Cappucino hatte diese Frage auch schon mal gestellt.Wir haben Probleme das Script so anzupassen, das es auch für das Kontaktformular zu nutzen ist.

Dirk
Title: Re: [MOD] Contact Form
Post by: ivan on September 22, 2006, 04:22:11 PM
hallo zusammen,
ich weiss nicht ob ich mich so schlecht ausdrücke aber es steht ja alles was man braucht

1. diesen mod installieren http://www.4homepages.de/forum/index.php?topic=11405.0
2. diesen angaben beim mod contact form anpassen http://www.4homepages.de/forum/index.php?topic=8987.75
3. fertig

ist doch nicht so schwierig

ihr dies bei http://klick.kl.funpic.de unter Kontakt / Nachricht selber anschauen

gruss ivan
Title: Re: [MOD] Contact Form
Post by: paburmester on September 22, 2006, 07:52:45 PM
Hi, can somebody tell me how can I integrate "captcha" to this form? I use 1.7.3
thanks!
Title: Re: [MOD] Contact Form
Post by: paburmester on September 25, 2006, 09:46:58 PM
anybody?  :roll:
Title: Re: [MOD] Contact Form
Post by: ivan on September 25, 2006, 09:59:16 PM
see here http://www.4homepages.de/forum/index.php?topic=8987.75
install the mod antispam and modify the contact form
Title: Re: [MOD] Contact Form
Post by: T on October 02, 2006, 03:43:59 PM
Hi, can somebody tell me how can I integrate "captcha" to this form? I use 1.7.3
thanks!

There is now a modifikation to add captcha to this form, but it is not the same captcha as in 1.7.3

http://www.4homepages.de/forum/index.php?topic=11405.msg79628#msg79628
Title: Integrate NEW Captcha System 1.7.3/1.7.4 in Contact Mod
Post by: ivan on October 04, 2006, 07:53:04 PM
hello,
this is a code for integrate captcha in the contact mod
attention: admins can without code send mails

hallo,
hier wird erklärt wie du das captcha system in den contact mod integrieren kannst
achtung: administratoren können ohne bestätigung des sicherheitscode mailen


MOD IS TESTET ON 1.7.3 / 1.7.4
:!:

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

after / anschliessend
Code: [Select]
    if ($captcha_enable_contact && !captcha_validate($captcha)) {
      $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
      $error = 1;
    }

find / finde
Code: [Select]
  $subject = stripslashes(trim($HTTP_POST_VARS['subject']));
  $message = stripslashes(trim($HTTP_POST_VARS['message']));

replace / ersetze
Code: [Select]
  $subject = stripslashes(trim($HTTP_POST_VARS['subject']));
  $message = stripslashes(trim($HTTP_POST_VARS['message']));
 
  $captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";

find / finde
Code: [Select]
      "message" => htmlspecialchars($message),
replace / ersetze
Code: [Select]
      "message" => htmlspecialchars($message),
      "captcha_contact" => (bool)$captcha_enable_contact,
      "lang_captcha" => $lang['captcha'],
      "lang_captcha_desc" => $lang['captcha_desc'],

global.php
find / finde
Code: [Select]
$captcha_enable_postcards    = 1;
replace / ersetze
Code: [Select]
$captcha_enable_postcards    = 1;
$captcha_enable_contact      = 1;

contact_mailform.html
find / finde
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>

after / anschliessend
Code: [Select]
            {if captcha_contact}
            <tr>
              <td width="90" valign="top"><b>{lang_captcha}</b></td>
              <td><a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
                <input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
                <br />
                {lang_captcha_desc} </td>
            </tr>
            {endif captcha_contact}

greets ivan
Title: Re: [MOD] Contact Form
Post by: Girasol on January 24, 2007, 10:27:23 PM
Hallo,

ich bilde mir zumindest ein, ich habe das Kontaktformular richtig installiert, ich erhalte Mails. Was mich stört ist die Fehlermeldung über dem Kontakformular, die ich nicht verstehe:

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name
        FROM gal_images i,  gal_categories c
        LEFT JOIN gal_users u ON (u.user_id = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1, 2, 3)
        AND i.image_date &gt;= 1168807247 ORDER BY RAND()
        LIMIT 3<br /><b>Unknown column 'i.user_id' in 'on clause'

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

Erkennt jemand einen Fehler?

Wenn die Mail abgeschickt ist blendet sich nach einiger Zeit automatisch die Startseite ein, ist das richtig so?

Danke erst einmal für die Hilfe.

Title: Re: [MOD] Contact Form
Post by: cappuccino on January 24, 2007, 11:51:58 PM
hast du die original email.php verwendet?
Wenn nicht, dann nimm diese.

Gruß
Title: Re: [MOD] Contact Form
Post by: Girasol on January 25, 2007, 07:43:46 AM
Hallo Cappucino,

das mit der original email.php habe ich probiert. Klappt leider auch nicht. Ich habe festgestellt, daß ich eine Meldung erhalte, wenn ich das Mailformular betrete:

An unexpected error occured. Please try again later.
Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/...>>>...../www/galerie/includes/db_mysql.php on line 116

So geht der Spaß los. Zur Zeit empfange ich nicht mal mehr die Mails, die vom Formular gesendet werden, ich habe jetzt wohl alles zerschrubbt, ich denke ich werde einfach noch mal neu installieren und in aller Ruhe noch mal die Eistellungen vornehmen.

Ist es eigentlich möglich, ein Kontaktformular zu jedem Bild hinzuzufügen, z.B. ein Button neben E-Card oder so? Welche Seiten müssen angepaßt werden?

Danke für die Hilfe
Title: Re: [MOD] Contact Form
Post by: cappuccino on January 25, 2007, 09:52:13 AM
was verwendest du für eine PHP mysql version?
Title: Re: [MOD] Contact Form
Post by: Girasol on January 25, 2007, 06:28:12 PM
Hallo,

PHP Version 4.4.4

MySql Version: 5.0.20-max 

Hast Du schon mal jedem Bild ein Kontaktforumlar zugefügt?

Danke!
Title: Re: [MOD] Contact Form
Post by: cappuccino on January 25, 2007, 06:42:01 PM
Hast du die Möglichkeit eine 4.X Version von MySQL zu verwenden? Wenn ja... da teste dieses mal.
Hatte auch mal MySQL 5.X und hierbei nur Probleme mit Datenbank abfragen.

Nein... für jedes Bild habe ich das nicht hinzugefügt. Wüsste auch nicht für was ;-)
Hierbei gibt es den Picture Owner Mail Benachrichtigungs Mod für neue Comments.

Gruß
Alex
Title: Re: [MOD] Contact Form
Post by: Girasol on January 25, 2007, 10:13:57 PM
Hallo,

so auf die schnellle, habe ich keine MySql Datenbank zur Verfügung. Zu dem Kontaktformular, ich will dem Besucher die Möglichkeit bieten, weitere Infos anzfordern, dafür benötige ich das Kontaktformular. Es soll via PHP die Bild Nr. / ID übergeben werden.

Leider kenne ich mich in PHP noch nicht so gut aus, deswegen bereitet mir das einige Probleme. Hast Du eine Idee?

Danke für die Hilfe.
Title: Re: [MOD] Contact Form
Post by: insanos on February 16, 2007, 09:02:45 PM
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 19, 15, 26, 4, 22, 20, 16, 18, 25, 23, 13, 21, 24, 7, 11, 17, 8, 14, 6, 10, 9, 12) AND i.image_date >= 1170792062 ORDER BY RAND() LIMIT 3
Unknown column 'i.user_id' in 'on clause'

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

problem is still existing.
i have done everthing as told but error still appears.

anyone able to help ?

greetings
Title: Re: [MOD] Contact Form
Post by: insanos on February 19, 2007, 06:14:52 PM
come on , noone here ?

pleeeease!
Title: Re: [MOD] Contact Form
Post by: ivan on February 19, 2007, 06:53:59 PM
hi
delete this

Code: [Select]
//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------
$imgtable_width = ceil(intval($config['image_table_width']) / $config['image_cells']);
if ((substr($config['image_table_width'], -1)) == "%") {
  $imgtable_width .= "%";
}

$additional_sql = "";
if (!empty($additional_image_fields)) {
  foreach ($additional_image_fields as $key => $val) {
    $additional_sql .= ", i.".$key;
  }
}

$num_new_images = $config['image_cells'];
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
        FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        AND i.image_date >= ".(time() - 60 * 60 * 24 * $config['new_cutoff'])." ORDER BY RAND()
        LIMIT $num_new_images";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
//  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr><td>";
  $new_images .= $lang['no_new_images'];
  $new_images .= "</td></tr></table>";
}
else  {
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  $count = 0;
  $bgcounter = 0;
  while ($image_row = $site_db->fetch_array($result)){
    if ($count == 0) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
      $new_images .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    //  orig  $new_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";
    $new_images .= "<td width=\"".$imgtable_width."\" valign=\"bottom\">\n"; //  Mod

    show_image($image_row);
    $new_images .= $site_template->parse_template("thumbnail_bit");
    $new_images .= "\n</td>\n";
    $count++;
    if ($count == $config['image_cells']) {
      $new_images .= "</tr>\n";
      $count = 0;
    }
  } // end while

  if ($count > 0)  {
    $leftover = ($config['image_cells'] - $count);
    if ($leftover >= 1) {
      for ($f = 0; $f < $leftover; $f++) {
        $new_images .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      $new_images .= "</tr>\n";
    }
  }
  $new_images .= "</table>\n";
} // end else

$site_template->register_vars("new_images", $new_images);
unset($new_images);
 

this code is not for contact form :!:
Title: Re: [MOD] Contact Form
Post by: fixic on February 22, 2007, 06:08:23 AM
Ivan, thank u veru much!!
it finaly works.. but i wanna ask u about this:
Quote

$site_email->set_to("your@email.com");


for :

Code: [Select]

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


since global.php is included on the top as this will save you a lot of trouble. ;)
is it necessary? coz it doesn't work when i folow this instruction..
Title: Re: [MOD] Contact Form
Post by: skytex on March 06, 2007, 08:38:54 PM
I got a an email with blank page as message. Anyone can tell me what cuold be happened?

Thanks  :D
Title: Re: [MOD] Contact Form
Post by: manyaq on April 19, 2007, 05:26:28 PM
hello boddies i add contact mod and dont get an error or something like that an i can email it but when i go to my email adress there is not an email inbox junk mail not at anuwhere. why is it so must i install smtp server for it
and
this code
$site_email->set_to($config['site_email']);
is it working with 1.7.4 or not
Title: Re: [MOD] Contact Form
Post by: honda2000 on April 19, 2007, 05:43:36 PM
this is working, but look at your database in your admin-profile > e_mail_adress looking for: 4images_user
Title: Re: [MOD] Contact Form
Post by: manyaq on April 19, 2007, 06:54:43 PM
this is working, but look at your database in your admin-profile > e_mail_adress looking for: 4images_user
I think u mean that the code is looking in for the admin email.
Am i right.
and i can not get the email, whats the reason. i build my gallery on my iss on localhost win xp pro sql 5 php 5. but i didnt install smtp server.
Title: Re: [MOD] Contact Form
Post by: honda2000 on April 19, 2007, 07:10:39 PM
no, no, no no in Contrlpane, locking in your local-databse, open your localhost, lock at database in tabel: 4images_user
profile: <your-profile-as-admin> and in: e_mail: is it: admin@yourdomain.ldt?? ist it! remove it with your e-mail-adress
Title: Re: [MOD] Contact Form
Post by: musicsurfer on May 27, 2007, 04:41:02 PM
Ich habe folgendes Problem

Das Kontaktformular läuft, nur wenn ich es absende und den Hinweis 'E-Mail wurde verschickt' bekomme, dann springt das Formular nach einigens Sekunden auf die Startseite zurück und dass möchte ich vermeiden.
Es soll die Meldung  'E-Mail wurde verschickt' ruhig stehen bleiben und nur duch klicken auf eine andere Seite gehen.
Was muss ich in welchem Code ändern damit das klappt ?

Gruss
Title: Re: [MOD] Contact Form
Post by: gborislav on June 19, 2007, 05:45:45 PM
Hi,

I need help.

I receive this error massage , Can Someone resolve this?

Email Error: Couldn't open Template ./lang/russian/email/contactform_message.html
No recipient addresses found in header
Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/b/p/mbpartydesign/html/galery/includes/email.php:336) in /home/content/m/b/p/mbpartydesign/html/galery/contact.php on line 85

Thanks.
Title: Re: [MOD] Contact Form
Post by: AntiNSA2 on July 01, 2007, 04:23:53 AM
Another tip before installing this MOD. Make sure that you have the ' mailchek ' module added from your includes/functions.php file. Otherwise, it will not work. ;)

-------------------------------------------------

Du müssen überprüfen, zuerst, wenn ' mailchek ' Modul ist beteiligt in includes/functions.php. Andernfalls, es wille ausfallen. ;)

Any one want to explain how to do this clearly? I have forgotten these things.
Title: Re: [MOD] Contact Form
Post by: mato72 on July 25, 2007, 04:05:42 AM
Aaaalso...
Das mit dem kontakt-Formular wäre ja echt eine feine Sache! Ich habe hier ein etwas...kleineres File, welches auch nur aus einer Datei besteht. Ob und wie das mit 4Images funktioniert weiss ich nicht, kann ja mal jemand testen und hier berichten !!!???

Das Script läuft auf jeden Fall einwandfrei auf meinen Homepages (Noch ohne 4Images...leider)
Ausserdem ist ein rechen-Captcha integriert, mit dem man eine dynamisch erzuegte Rechenaufgabe lösen muss (9 ist die höchste Zahl)
Denn die Bots sind heute schon so schlau dass sie die zahlen/Buchstaben auf den Bildern erkennen können.
Dynamisch erstelle rechenaufgaben ( z.B. 6+4=?) beherrschen sie nicht
Das Mailformular beinhaltet noch eine Betreff-Option, die man vorher angelichen sollte.

Leider habe ich keinen Plan wie ich dieses Script in 4Images implementieren/Includen kann.
Wenn mir da jemand weiterhelfen kann, wäre ich echt dankbar!



Code: [Select]
<?

$bestätigung="Ihre mail wurde weitergeleitet";
$fehler="Es ist ein Fehler beim Mailversandaufgetreten";

if(!@$sentt)
{
$zahl1 = rand(1,9); #Zahl 1 per Zufall von 1-9 aussuchen
$zahl2 = rand(1,9); #Zahl 2 per Zufall von 1-9 aussuchen
formschreiben($PHP_SELF,$zahl1,$zahl2,$ergebnis,$Name,$Email,$Betreff,$Nachricht);
}
else
{
$ok=true;
if(!$zahl1 or !$zahl2)
{
$zahl1 = rand(1,9); #Zahl 1 per Zufall von 1-9 aussuchen
$zahl2 = rand(1,9); #Zahl 2 per Zufall von 1-9 aussuchen
}

if(intval($zahl1)+intval($zahl2)!=intval($ergebnis))
{
echo "Ergebnis falsch oder leer<br><br>";
formschreiben($PHP_SELF,$zahl1,$zahl2,$ergebnis,$Name,$Email,$Betreff,$Nachricht);
}
else
{

$to="Deine@Adresse.de"; # hier deine email angeben

$header.="From:\"DEINE HOMEPAGE\"<Deine@Adresse.de>\n"; #hier deine email mit angeben
$subject=$Betreff;



$message="Kontaktformular\n\n";
$message.="Von: \n".stripslashes($Name)."\n\n";
$message.="Email: \n".stripslashes($Email)."\n\n";
$message.="Betreff: ".stripslashes($Betreff)."\n\n\n";
$message.="Nachricht: \n".stripslashes($Nachricht)."\n";

if(mail($to,$subject,$message,$header))
echo $bestätigung;
else
echo $fehler;
}
}

?>



<?
function formschreiben($PHP_SELF,$zahl1,$zahl2,$ergebnis,$Name,$Email,$Betreff,$Nachricht)
{
?>
<form action="<? echo $PHP_SELF ?>" method="POST">
<input type="hidden" name="sentt" value="ok"></input>
<input type="hidden" name="zahl1" value="<?echo $zahl1 ?>"></input>
<input type="hidden" name="zahl2" value="<?echo $zahl2 ?>"></input>

<p> Bitte f&uuml;lle alle Felder im Formular auf, wenn Du mir
eine Nachricht schicken m&ouml;chtest
</p>
<table width="314" border="0" align="center">
<tr>
<td width="86">
<div align="left"><font size="2">
<strong>Name</strong></font></div></td>
<td width="218">
<div align="left">
<input type='text' name='Name' value="<? echo stripslashes(@$Name) ?>">
</div>
</td>
</tr>
<tr>
<td width="86">
<div align="left"><font size="2"><strong>Email</strong></font></div></td>
<td width="218">
<div align="left">
<input type='text' name='Email' value="<?echo stripslashes(@$Email) ?>">
</div>
</td>
</tr>
<tr>
<td width="86">
<div align="left"><small><font size="2"><strong>Betreff:</strong></font></small></div></td>
<td width="218">
<div align="left">
<select name="Betreff">
<?

echo "<option value=\"Software\"";
echo ($Betreff=="Software")?" selected>": ">";
echo "Software</option>";
echo "<option value=\"Tutorial\"";
echo ($Betreff=="Tutorial")? " selected>": ">";
echo "Tutorial</option>";
echo "<option value=\Anderes\"";
echo ($Betreff=="Anderes")?" selected>": ">";
echo "Anderes</option>";
?>
</select>
</div>
</td>
</tr>
<tr>
<td width="86" align="right" valign="top">
<div align="left"><font size="2"><strong>Message:</strong></font></div></td>
<td width="218">
<div align="left">
<textarea cols="25" rows="10" name="Nachricht" class=bgform><? echo stripslashes(@$Nachricht) ?></textarea>
</div>
</td>
</tr>
<tr>
<td>
<div align="left"><strong>Spam-Schutzfrage</strong>
</div></td>
<td><? echo "<span class='normal'>Addiere: $zahl1 + $zahl2 = </span><input class='felder' size='2'

id='summe' value='".@$ergebnis."' name='ergebnis' type='text' /><br />"; #hier wird das Ergebnis eingetragen ?></td>
</tr>
<tr>
<td width="86">&nbsp;</td>
<td width="218"><input type='submit' value='Submit' name="submit">
<input type="reset" name="submit2" value="Delete"></td>
</tr>
</table>
</form>
<?
}
?>
 

Probiert es aus und berichtet wie man es einbindet...
Title: Re: [MOD] Contact Form
Post by: orb42 on July 29, 2007, 03:57:23 PM
I got this error when opening contact.php


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /mnt/107/xx/x/x/xxx/includes/db_mysql.php on line 116

Anyone has an idea please?
Title: Re: [MOD] Contact Form
Post by: orb42 on July 29, 2007, 07:49:22 PM
OK fixed this  :)
I think this version of contact.php is taken from the old "contact mod" and is not compliant with actual PHP/SQL.

to fix it,
open: CONTACT.PHP

find  line 132:       

Code: [Select]
FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
replace with:

Code: [Select]
FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

 

Title: Re: [MOD] Contact Form
Post by: thunderstrike on August 01, 2007, 03:49:58 PM
I see image table in contact ... why is there ? ...  :|
Title: Re: [MOD] Contact Form
Post by: orb42 on August 01, 2007, 07:10:09 PM
 
Could Vincent (or anyone else) tell us why is there this code in contact.php??  what does it serves plz?


Code: [Select]
//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------
$imgtable_width = ceil(intval($config['image_table_width']) / $config['image_cells']);
if ((substr($config['image_table_width'], -1)) == "%") {
  $imgtable_width .= "%";
}

$additional_sql = "";
if (!empty($additional_image_fields)) {
  foreach ($additional_image_fields as $key => $val) {
    $additional_sql .= ", i.".$key;
  }
}

$num_new_images = $config['image_cells'];
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
        FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        AND i.image_date >= ".(time() - 60 * 60 * 24 * $config['new_cutoff'])." ORDER BY RAND()
        LIMIT $num_new_images";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
//  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr><td>";
  $new_images .= $lang['no_new_images'];
  $new_images .= "</td></tr></table>";
}
else  {
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  $count = 0;
  $bgcounter = 0;
  while ($image_row = $site_db->fetch_array($result)){
    if ($count == 0) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
      $new_images .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    //  orig  $new_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";
    $new_images .= "<td width=\"".$imgtable_width."\" valign=\"bottom\">\n"; //  Mod

    show_image($image_row);
    $new_images .= $site_template->parse_template("thumbnail_bit");
    $new_images .= "\n</td>\n";
    $count++;
    if ($count == $config['image_cells']) {
      $new_images .= "</tr>\n";
      $count = 0;
    }
  } // end while

  if ($count > 0)  {
    $leftover = ($config['image_cells'] - $count);
    if ($leftover >= 1) {
      for ($f = 0; $f < $leftover; $f++) {
        $new_images .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      $new_images .= "</tr>\n";
    }
  }
  $new_images .= "</table>\n";
} // end else

$site_template->register_vars("new_images", $new_images);
unset($new_images);
Title: Re: [MOD] Contact Form
Post by: mawenzi on August 01, 2007, 07:51:35 PM
... the part "Show New Images" has nothing to do with the "Contact Form" ...  :?
... only if you want to show "New Images" above/below your "Contact Form" ...
... if this part is in Vincents contact.zip /contact.php ... you can delete it ...
Title: Re: [MOD] Contact Form
Post by: thunderstrike on August 01, 2007, 11:25:04 PM
Quote
... if this part is in Vincents contact.zip /contact.php ... you can delete it ...

Thanks for confirm.
Title: Re: [MOD] Contact Form
Post by: mato72 on August 03, 2007, 04:33:15 AM
Hi...
i have installed the mod, work´s fine...
But HOW to integrade in this Mod an Second Mail-Adress, an "CC"...?
We are 2 Site-Admins and we are nedd to implement a second Mail-Adress....

I have tried to like this:
$site_email->set_to("firstAdmin@home.com","secondAdmin@home.com");
But it dos not work...





Hallo..
Ich habe den Mod installiert, läuft super!
Aber wie baut man dort eineen 2ten Mail-Empfänger ein, einen "CC"...?
Wir sind 2 Admins, und müssen nun irgwnedwie eine 2te mai-adresse einbauen.

Ich hab´s mal so probiert.
$site_email->set_to("firstAdmin@home.com","secondAdmin@home.com");
geht aber nicht..
Title: Re: [MOD] Contact Form
Post by: orb42 on August 03, 2007, 07:31:56 AM
did you try:
Code: [Select]
$site_email->set_to("firstAdmin@home.com, secondAdmin@home.com");
Title: Re: [MOD] Contact Form
Post by: thunderstrike 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. ;)
Title: Re: [MOD] Contact Form
Post by: mato72 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...
Title: Re: [MOD] Contact Form
Post by: thunderstrike 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.
Title: Re: [MOD] Contact Form
Post by: mato72 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....
Title: Re: [MOD] Contact Form
Post by: thunderstrike 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
Title: Re: [MOD] Contact Form
Post by: mato72 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...
Title: Re: [MOD] Contact Form
Post by: thunderstrike on August 03, 2007, 02:00:25 PM
Quote
suppose means remove???

Suppose - this time - replace.
Title: Re: [MOD] Contact Form
Post by: mato72 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:
Title: Re: [MOD] Contact Form
Post by: thunderstrike 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);
Title: Re: [MOD] Contact Form
Post by: mato72 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....
Title: Re: [MOD] Contact Form
Post by: thunderstrike 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).
Title: Re: [MOD] Contact Form
Post by: mato72 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: :? :(
Title: Re: [MOD] Contact Form
Post by: thunderstrike 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 ...
Title: Re: [MOD] Contact Form
Post by: mato72 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
Title: Re: [MOD] Contact Form
Post by: thunderstrike on August 03, 2007, 08:47:44 PM
Me nervus ? No. :)

Simple apply step before and should work ...
Title: Re: [MOD] Contact Form
Post by: arthur on August 06, 2007, 02:51:05 AM
Hallo
Ich habe diesen Mod instaliert und es funktioniert alles.
Aber wen man es öffnet wird nur die Tabelle angezeigt
kann mir villeicht jemand helfen das problem zu lösen.
Title: Re: [MOD] Contact Form
Post by: thunderstrike on August 06, 2007, 03:14:44 AM
Possible in english ?
Title: Re: [MOD] Contact Form
Post by: arthur on August 06, 2007, 04:08:37 AM
I instaliert this Mod and it function everything. But whom one it opens only the table is indicated
thus only a white site
someone can help me the problem to solve

Sorry for my english  :oops:
Title: Re: [MOD] Contact Form
Post by: thunderstrike on August 06, 2007, 05:52:15 AM
Ah ! so blank page when submit form ? Got "url_contact" tag from includes/page_header.php file ?
Title: Re: [MOD] Contact Form
Post by: thunderstrike on August 06, 2007, 06:04:35 AM
In add, which 4images version ? Which PHP version ?
Title: Re: [MOD] Contact Form
Post by: arthur on August 06, 2007, 07:59:30 AM
4images version 1.7.1
PHP version 4.4.7
Title: Re: [MOD] Contact Form
Post by: thunderstrike on August 06, 2007, 08:01:12 AM
Explain lot. Both are very different. Suggest to upgrade last 4images version (bugfix / patche include).
Title: Re: Integrate NEW Captcha System 1.7.3/1.7.4 in Contact Mod
Post by: Patrick81 on August 31, 2007, 07:55:02 AM
Code: [Select]
[quote author=ivan link=topic=8987.msg80124#msg80124 date=1159984384]
hello,
this is a ....            {endif captcha_contact}

greets ivan
[/quote]

Hi,

this mod is realy great and works with 174,but, if a person entered a wrong captcha code, all filled fields (email, name, note,..) will be erased.
I have also the Guestbook Mod installed and if a captcha is wrong entered in guestbook, all filled fields will not lost their content.

Could you pls. help me to fix this problem?

Thanks
pat
Title: Re: [MOD] Contact Form
Post by: barabangel on September 24, 2007, 03:50:13 PM
Problem! In http://site/contact.php

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/angel/public_html/includes/db_mysql.php on line 116
Title: Re: [MOD] Contact Form
Post by: thunderstrike on September 24, 2007, 09:08:48 PM
mysql_num_rows with contact ? Please post code ...
Title: Re: [MOD] Contact Form
Post by: rinaldos on November 08, 2007, 12:25:57 PM
Hello @all

Is it possible to create a preview function before the user send the mail? I mean the same function like preview_postcard :-)

---

Ist es möglich für diesen Mod eine Vorschau Funktion zu basteln, ähnlich wie die bei der Vorschau Postkarte?


Gruß
Ingo
Title: Re: [MOD] Contact Form
Post by: thunderstrike on November 08, 2007, 03:20:11 PM
I no see PHP script use preview for contact ...  :|
If more user ask - I create ...
Title: Re: [MOD] Contact Form
Post by: om6acw on November 08, 2007, 05:29:47 PM
I no see PHP script use preview for contact ...  :|
If more user ask - I create ...

I think this can be really nice feature for this mod, thunderstrike if you can do that for as, thanks so much!!!
Title: Re: [MOD] Contact Form
Post by: thunderstrike on November 08, 2007, 06:13:08 PM
But ... what is happen if user cancel preview ... what is page for redirect I set ?  :|
Title: Re: [MOD] Contact Form
Post by: om6acw on November 08, 2007, 07:57:10 PM
But ... what is happen if user cancel preview ... what is page for redirect I set ?  :|

if he cancel preview should be redirected to index page...
Title: Re: [MOD] Contact Form
Post by: thunderstrike on November 08, 2007, 08:48:29 PM
And ... for use this MOD or new MOD for contact ?
Title: Re: [MOD] Contact Form
Post by: om6acw on November 08, 2007, 09:09:31 PM
And ... for use this MOD or new MOD for contact ?

I am not sure what is better for you, sometime is easier made new think like fix old one but I am not PHP programmer and I don't know if this is that case.
Maybe you can try do that in this original mod, because this mod work great and I think is without bugs, so you have some base when you can start. Finally is up to you, you know better what you need to do in it.....
Title: Re: [MOD] Contact Form
Post by: thunderstrike on November 08, 2007, 09:11:07 PM
Quote
Maybe you can try do that in this original mod

Please read last line of my signature for this ...

If need new MOD, I can code in request for paid with preview - is no problem.
Title: Re: [MOD] Contact Form
Post by: om6acw on November 08, 2007, 09:23:30 PM
Quote
Maybe you can try do that in this original mod

Please read last line of my signature for this ...

If need new MOD, I can code in request for paid with preview - is no problem.


oooops I miss that line some hove, thats OK I understand you after this http://www.4homepages.de/forum/index.php?topic=19317.0 (http://www.4homepages.de/forum/index.php?topic=19317.0)
Title: Re: [MOD] Contact Form
Post by: thunderstrike on November 08, 2007, 09:24:01 PM
Thank for share. ;)
Title: Re: [MOD] Contact Form
Post by: live@ct on March 20, 2008, 08:43:47 AM
I like to add a attachment funtion, to send 2 or 3 files in the contact form

thanks for your help!
Title: Re: [MOD] Contact Form
Post by: honda2000 on March 20, 2008, 10:43:49 AM
this is a extension for upload

Quote
<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>


php-code for uploader.php

Quote
<?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']; 


PHP Code:
$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 "There was an error uploading the file, please try again!";
}

?>

Title: Re: [MOD] Contact Form
Post by: bluepissi on April 10, 2008, 03:03:31 AM
MAHLZEIT,

den fehler hatte ich auch, ha in er contact.php einfach die "Show New Images" -  zeilen gelöscht und schon gings.

also alles zwischen
Quote
//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------
und
Quote
//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
löschen.

mfg
Title: Re: [MOD] Contact Form
Post by: musicsurfer on April 14, 2008, 06:10:23 PM
Merkwürdig
das löschen der Zeilen hat bei mir auch den Fehler behoben, aber woran liegt das ?

Gruss Musicsurfer
Title: Re: [MOD] Contact Form
Post by: Sumale.my on June 27, 2008, 01:36:48 AM
Läuft das unter 1.7.6? ich kanns nicht testen da meine Gallery momentan noch Local läuft! Wäre super wenn mir das jemand sagen könnte!

Was cool wäre wenn jemand den Code auffrischen würde, so das auch dort Captcha enthalten ist und das man via lang/..../mein.php die Felder selber umbenennen kann!
Title: Re: [MOD] Contact Form
Post by: Rembrandt on July 19, 2008, 08:15:52 AM
Hi!
irgend wie versteh ich das ganze nicht.
hat dieser mod die gleiche funktion wie mein kontakt formular?

mfg Andi

EDIT: sorry, ich eier, den mod habe ich mir schon vor längerer zeit eingebaut und hatte das vergessen.  :mrgreen:

pfff ich werde alt.....
Title: Re: [MOD] Contact Form
Post by: Sumale.my on July 19, 2008, 09:32:00 PM
Darf ich mal fragen welches du für die 1.7.6 nutzt?
Läuft dieser hier bei dir?
Title: Re: [MOD] Contact Form
Post by: Rembrandt on July 19, 2008, 11:29:04 PM
Hi!
Darf ich mal fragen welches du für die 1.7.6 nutzt?
Läuft dieser hier bei dir?
ja das ist dieser mod, funktioniert einwandfrei auch die chaptcha.

mfg Andi
Title: Re: [MOD] Contact Form
Post by: Sumale.my on July 19, 2008, 11:43:41 PM
Alles klar, danke dir!
Werde das mal ausprobieren!
Title: Re: [MOD] Contact Form
Post by: shami74 on August 20, 2008, 07:08:08 AM
this might be a silly question .. though i put all the files where they should be and have a help link on the front of the 4images but am not sure which one to link it too.

any help would be great ..

Title: Re: [MOD] Contact Form
Post by: V@no on August 20, 2008, 07:20:57 AM
probably to contact.php
Title: Re: [MOD] Contact Form
Post by: shami74 on September 16, 2008, 10:02:42 AM
I have put all of the files in the right place and also changed the chomd to 777 for the php template and it's still not sending from the site ..

can some one help please


http://3moonsbuilders.com/nextdimensions/4images/index.php

the link is on the left side labeled help
Title: Re: [MOD] Contact Form
Post by: V@no on September 16, 2008, 12:29:41 PM
Your "help" link doesn't open conctact.php from this mod.

and your contact.php returns
Quote
Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in /home/<path>/4images/contact.php on line 81
Which indicates you either changed more then you were supposed to or simply made a mistake. Restore backups and try again.
Title: Re: [MOD] Contact Form
Post by: duanes-photos on January 25, 2009, 01:46:30 AM
Quote
so, die beiden html dateien legst du in den ordner: template/default/dein_template
und auch in alle anderen aktiven templates, solltest du den useren templates zur auswahl geben!

die datei: email.php legst du in den ordner includes

und die datei contakt.php legst du in den ordner root der galerie bzw. deiner webseite, dort wo die index liegt.  passe vorher die zeilen 74 bis 76(75) an deine seite und deine e-mail-addi an!

danach gibst du die datei home.html mit chmod 777 frei um im acp das template bearbeiten zu können..
ACP >>> Template bearbeiten  >>> Template home.html bearbeiten

suche: <td align="right" width="50%">
        <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
        <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;
</td>

und ersetze es mit:

<td align="right" width="50%">
        <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
        <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;<br><br>
<a href="contact.php"><b>Kontakt</b></a>&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<br>

       </td>

(wäre der link zur kontaktseite in der home.html) zu kannst den link aber auch an anderer stelle z.b. header/footer oder wo auch immer einbauen.

die datei mailform_message.html kommt in den ordner: lang/deutsch/email/

solltest du die datei in englisch haben wollen, so ändere die lang und leg die datei zusätlich in den ordner: lang/english/email/
(den inhalt der datei kannst du frei anpassen!

das war´s! viel spaß mit dem kontaktformular!

bedankt euch bei: vincent kocher (www.foto-kocher.com)

solltet ihr fragen haben zu diesem mod haben: info@thomas-heydel.de oder www.thomas-heydel.de/galerie/


 

This is the ReadMe.txt included in the download.  Could someone please translate this for me?  I assume it states how to add a link to this and some permission related settings, but I can't really say for sure.  Thanks for the help.
Title: Re: [MOD] Contact Form
Post by: alexjones on January 27, 2009, 12:44:08 PM
I used google language tools to translate the readme.txt, is simple to implement.
Title: Re: [MOD] Contact Form
Post by: duanes-photos on January 28, 2009, 01:44:25 AM
Thanks Alex,  that's what I did as well.
Title: Re: [MOD] Contact Form
Post by: Sun on March 23, 2009, 03:04:03 PM
I use plugin for Mozilla Firefox for fing errors on the pages. After installing this mod it show me 8 errors on the page contact(after click on the Contact). It is first error:

"Line 175, Column 58: document type does not allow element "FORM" here.

          <FORM name="contactForm" action="" METHOD="POST">

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error)."


How can I fix it?
Title: Re: [MOD] Contact Form
Post by: Rembrandt on March 23, 2009, 03:21:19 PM
^Hi!

<FORM name="contactForm" action="{url_contact}" METHOD="POST">

mfg Andi
Title: Re: [MOD] Contact Form
Post by: Sun on March 23, 2009, 04:49:25 PM
Hi!

I can't change like you say.
When I open contact_mailform.html I see this:
<FORM name="contactForm" action="{url_contact}" METHOD="POST">

but in the Mozilla Firefox i see this html-code:
<FORM name="contactForm" action="" METHOD="POST">

==================

I write new contact_mailform.html and problems are solved.
Thank you.
Title: Re: [MOD] Contact Form
Post by: hotvips on March 25, 2009, 11:46:54 AM
http://www.new-angelina-jolie.info/contact.php

Can someone please help me with the errors on the contact page?
Title: Re: [MOD] Contact Form
Post by: V@no on March 25, 2009, 03:04:42 PM
Hello and welcome to 4images forum.

1) Please review our forum rules (http://www.4homepages.de/forum/index.php?topic=3914.0).
2) what errors? (in the future do not only show link to your site where we supposed to see the errors, but quote the errors in your post)
3) Error messages -> An unexpected error occurred. Please try again later (http://www.4homepages.de/forum/index.php?topic=24177.0)
Title: Re: [MOD] Contact Form
Post by: Anarchology on April 23, 2009, 11:20:00 AM
Hey everyone!

Maybe this was already asked on the other 15 pages, but I'm wondering if anyone has added a drop down option within the Contact Form. I'm looking to add fields to further help the administrators of my site to narrow down the questions and comments provided by users or guests.

For example, a drop down menu like:
- General Comment
- User Support
- Report an Image
- Report Error

How can I incorporate such a drop down menu within this MOD? :?

Thanks in advance!
Title: Re: [MOD] Contact Form
Post by: nobby on June 12, 2009, 10:59:48 PM
Hallo,

ich habe mir das Kontaktformular in meine HP Eingebaut.

Daten können auch Eingegeben werden und werden auch Versand.

Aber es kommen die Daten die Versand wurden an die Angegebene Mailadresse nicht an  :?

Läuft das Kontakformular auch unter 1.7.7  :?:

nobby
Title: Re: [MOD] Contact Form
Post by: Rembrandt on June 13, 2009, 06:36:55 AM
Hi!
...
Läuft das Kontakformular auch unter 1.7.7  :?:
...
ja, läuft einwandfrei..wennst meine dateien willst, gib bescheid.

noch was, hast du schon mal im spamordner nachgeschaut, viele spamfilter deklarieren eine email als spam wenn die eingetragene absenderadresse nicht gleich ist mit der tatsächlichen.

mfg Andi
Title: Re: [MOD] Contact Form
Post by: nobby on June 13, 2009, 08:45:21 AM
hast du schon mal im spamordner nachgeschaut,

Ja, habe ich. Aber auch dort sind die nicht angekommen, also im Nirwana gelandet.

Ich habe Dir eine PN geschickt.

nobby
Title: Re: [MOD] Contact Form
Post by: Sayler on June 16, 2009, 07:28:38 PM
Eigentlich schade, auch nach 4 Jahren muss man alle 15 Seiten durchlesen um den Mod bei 1.7.7 zu verwenden, da die ZIP-Datei noch immer unverändert  angeboten wird. Dabei sind nur zwei Korrekturen in der "contact.php" nötig: die beiden Klammern einfügen und 'contactform_message' in 'mailform_message' umbenennen.

PS: aber  auch von mir ein grosses Dankeschön an alle, die 4images aktuell und sicher halten! Bin sonst sehr zufrieden!
Title: Re: [MOD] Contact Form
Post by: Sumale.my on June 16, 2009, 07:31:32 PM
Darum bin ich ja dafür, dass es eine MOD-Area geben soll. Dort sollen auch User Fehler melden können und die Administratoren können die Mods somit immer auf den aktuellen Stand halten!
Title: Re: [MOD] Contact Form
Post by: Sebas Bonito on June 24, 2009, 11:23:35 PM
Eigentlich schade, auch nach 4 Jahren muss man alle 15 Seiten durchlesen um den Mod bei 1.7.7 zu verwenden, da die ZIP-Datei noch immer unverändert  angeboten wird. Dabei sind nur zwei Korrekturen in der "contact.php" nötig: die beiden Klammern einfügen und 'contactform_message' in 'mailform_message' umbenennen.

PS: aber  auch von mir ein grosses Dankeschön an alle, die 4images aktuell und sicher halten! Bin sonst sehr zufrieden!
Von welchen Klammern sprichst Du? Die Umbenennung von 'contactform_message' in 'mailform_message' ist ja kein Problem. Danke für die Hilfe!
Title: Re: [MOD] Contact Form
Post by: Sayler on June 26, 2009, 08:09:20 PM
@ Schnick und Schnack
>Von welchen Klammern sprichst Du?


Bei mir kam es zu Fehlermeldungen oben links auf der Kontakt-Seite (DB-Error und Fehler MySQL). Der Tip von orb42 auf Seite 10 in diesem Thread hat geholfen:


in der contact.php suchen:

  FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c

ersetzen mit:

   FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

Title: Re: [MOD] Contact Form
Post by: Sebas Bonito on July 11, 2009, 07:44:04 PM
@ Schnick und Schnack
>Von welchen Klammern sprichst Du?


Bei mir kam es zu Fehlermeldungen oben links auf der Kontakt-Seite (DB-Error und Fehler MySQL). Der Tip von orb42 auf Seite 10 in diesem Thread hat geholfen:


in der contact.php suchen:

  FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c

ersetzen mit:

   FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)



Danke!  8)
Title: Re: [MOD] Contact Form
Post by: Sebas Bonito on July 20, 2009, 03:17:13 AM
Kann man das Captcha eigentlich einbauen? Und vielleicht noch ne IP-Sperre für 5 Minuten oder mehr?
Title: Re: [MOD] Contact Form
Post by: Kurman on August 20, 2009, 03:00:29 PM
Hi folk!

If someone has an errors with this mod, try install it to running webserver, not localserver!

When I tested this mod, I had errors too (I use for testing local vertrigo webserver) and had had almost every errors mentioned in here.
But after I installed mod to on-line 4images project, it works perfectly, without any error.

So, I am sure many of us has these errors only because of using local webserver (it has to be fully featured maybe).
Title: Re: [MOD] Contact Form
Post by: Markus/TSC on August 30, 2009, 02:09:00 PM
Hallo!

Nutze Version 1.7.7. Ich habe den Code für das Kontaktformular eingebaut und Captcha mit integriert. Mails kommen auch korrekt an, aber leider kommt immer wieder eine Fehlermeldung über dem Header (siehe Anhang).

Hier nochmal:

Quote
An unexpected error occured. Please try again later.

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /users/blauvideo/www/4images/includes/db_mysql.php on line 116

Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, i.image_betreiber, i.image_hersteller, i.image_aufbau, i.image_status, i.image_urheber, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 4, 45, 50, 55, 60, 65, 70, 75, 79, 83, 87, 91, 96, 100, 104, 108, 113, 117, 121, 126, 131, 135, 139, 143, 149, 175, 180, 193, 198, 200, 202, 204, 207, 208, 17, 21, 49, 52, 56, 61, 66, 71, 77, 80, 84, 88, 92, 97, 101, 105, 109, 114, 118, 122, 127, 132, 136, 140, 144, 176, 181, 189, 190, 201, 13, 16, 20, 46, 51, 57, 62, 67, 72, 76, 81, 85, 89, 93, 98, 102, 106, 110, 115, 119, 123, 128, 133, 137, 141, 145, 150, 177, 182, 188, 199, 197, 205, 9, 19, 48, 53, 58, 63, 68, 73, 94, 99, 111, 124, 129, 146, 157, 158, 159, 160, 163, 164, 166, 167, 170, 171, 172, 183, 187, 195, 206, 7, 8, 59, 138, 151, 152, 154, 155, 156, 161, 165, 168, 169, 173, 178, 184, 191, 10, 18, 54, 78, 82, 86, 90, 103, 107, 116, 120, 125, 130, 134, 142, 153, 162, 179, 196, 47, 64, 69, 74, 95, 112, 147, 185, 192, 203, 209, 23, 22, 28, 25, 29, 31, 26, 27, 24, 30, 33, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 43, 148, 174) AND i.image_date >= 1251291121 ORDER BY RAND() LIMIT 4
Unknown column 'i.user_id' in 'on clause'

Gruß

Markus
Title: Re: [MOD] Contact Form
Post by: Rembrandt on August 30, 2009, 03:59:51 PM
Hi!
Hallo!....

kommentiere einmal in der contact.php alles zwischen
//--- Show New Images ---------------------------------
und
//--- Clickstream -------------------------------------

aus.

mfg Andi
Title: Re: [MOD] Contact Form
Post by: Tino23 on December 25, 2009, 11:17:45 AM
Bekomme seit neustem die Fehlermeldung nach dem Absenden

Warning: mail() has been disabled for security reasons in /var/www/0815/includes/email.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /var/www/0815/includes/email.php:171) in /var/www/0815/contact.php on line 93

Kann der Fehler am Hoster liegen?
Title: Re: [MOD] Contact Form
Post by: Rembrandt on December 25, 2009, 11:30:07 AM
...
Kann der Fehler am Hoster liegen?
wenn du nichts an den script  geändert hast .. theoretisch ja, wenn dein provider die mail() funktion deaktiviert hat..


mfg Andi
Title: Re: [MOD] Contact Form
Post by: Tino23 on January 04, 2010, 07:32:43 PM
Danke, lag am Hoster, der hatte die Mailfunktion abgeschaltet. Blöderweise auf meinem Testwebspace auch  :evil:.. Wieder mal einen Fehler gesucht der nicht da ist.

Hab da mal eine Frage zwecks Modifizierung. Also ich hätte das Kontaktformular gerne so, das man im einer Auswahlliste sich den Empfänger aussuchen kann (z.B. wenn es mehrere Webmaster gibt). Die Mailadressen können dabei ruhig fest in der php Datei stehen und müssen nicht aus der Datenbank ausgelesen werden. Hab leider nicht ganz so viel Ahnung von php…
Title: Re: [MOD] Contact Form
Post by: Rembrandt on January 04, 2010, 08:19:56 PM
Hi!

ja lässt sich sicher machen, nur im moment bin ich etwas stressig.
wir ein bischen dauern.

mfg Andi
Title: Re: [MOD] Contact Form
Post by: Tino23 on January 05, 2010, 08:32:29 PM
OK, dann danke schön mal für deine Bemühungen. Eillt nicht ganz so, von daher mach es wenn dir danach mal ist und du Zeit hast.

cu Tino
Title: Re: [MOD] Contact Form
Post by: p59reg on January 08, 2010, 01:43:14 PM
Подскажите пожалуйста как можно сделать тело {message} не из одной формы textarea , а из нескольких форм select (ну например из  5) которые в итоге бы обьединялись в одну месагу ?
Title: Re: [MOD] Contact Form
Post by: Rembrandt on January 11, 2010, 09:17:06 AM
Da diesen Mod keiner mehr supportet, hab ich ihn überarbeitet.

incl. mail format check and captcha.
Optional: send email to images owner...
Optional: captcha can mathematic...

 when a user is logged on, he can choose the admin he wants to write an email, (idea from  here (http://www.4homepages.de/forum/index.php?topic=8987.msg144317#msg144317)

Demo: demo.vienna-pictures.com (http://demo.vienna-pictures.com/contact.php)

1.) create a new file called "contact.php" and store in you root:

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: contact.php                                          *
 *        Copyright: (C) 2002  - 2010 Jan Sorgalla                        *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.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";
}

$txt_clickstream = $lang['contact'];

$content = "";

$sendprocess = 0;

if ($action == "emailSiteOwner") {
 
  $error = 0;
  
  $mail_to = (isset($_POST['emails'])) ? $_POST['emails'] : $config['site_email'];
  $sender_name = stripslashes(trim($_POST['sender_name']));
  $sender_email = stripslashes(trim($_POST['sender_email']));

  $subject = stripslashes(trim($_POST['subject']));
  $message = stripslashes(trim($_POST['message']));
  
  $captcha = (isset($_POST['captcha'])) ? un_htmlspecialchars(trim($_POST['captcha'])) : "";
 
if ($sender_name == "" || $sender_email == "" || $subject == "" || $message == "") {
    $msg = $lang['lostfield_error'];
    $sendprocess = 1;
    $error = 1;
  }
  
 $check = "/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,4})$/";

if(!isset($sender_email) OR $sender_email == "" OR !preg_match($check,$sender_email))
   {
   $msg .= (($msg != "") ? "<br />" : "").$lang['invalid_email_format'];
    $sendprocess = 1;
    $error = 1;
   }
  
if ($captcha_enable_contact && !captcha_validate($captcha)) {
      $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
      $error = 1;
    }

 if (!$error) {
    $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($mail_to);
    $site_email->set_subject($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("mailform_message", $config['language_dir']);
    $site_email->send_email();
    $msg = $lang['emailuser_success'];

  }
  else {
    $action = "mailform";
  }
}

if ($action == "mailform") {
 
  if (!$sendprocess) {
    $subject = "";
    $message = "";
  }
  
  if ($user_info['user_level'] != GUEST)  {
    
    $select  = "<tr>";
    $select  .= "<td align=\"right\" valign=\"middle\"><b>".$lang['mail_to']."</b></td>";
    
      $sql = "SELECT user_id,user_level,user_name,user_email,user_allowemails
          FROM ".USERS_TABLE."
          WHERE user_level = 9 AND user_allowemails = 1
          ORDER BY user_name ASC ";
      $result = $site_db->query($sql);

    $select .= "<td align=\"left\"><select class=\"input\" name=\"emails\" >\n";
    
    $select .= "<option value=\"".$config['site_email']."\" class=\"dropdownmarker\">".$lang['userlevel_admin']."</option>\n";

    while ($row = $site_db->fetch_array($result)) {
  
     $select .= "<option value=\"".$row['user_email']."\">&raquo; ".format_text($row['user_name'], 2)." (".$row['user_email'].")</option>\n";
      
    }
  
    $select .= "</select>\n";
    $select .= " </td>";
    $select .= "</tr>";
     $site_template->register_vars("select",$select);
  }
  
  $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),
      "captcha_contact" => (bool)$captcha_enable_contact,
      "lang_captcha" => $lang['captcha'],
      "lang_captcha_desc" => $lang['captcha_desc'],
      "lang_mail_custom_text" => $lang['mail_custom_text'],
      "lang_contact" => $lang['contact'],
      "lang_mail_to" => $lang['mail_to'],
      "lang_your_name" => $lang['your_name'],
      "lang_your_mail" => $lang['your_mail'],
      "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');
?>


2.) search in includes/page_header.php

$site_template->register_vars(array(
  "home_url"  => ROOT_PATH,

insert below:

"lang_contact" => $lang['contact'],


3.) insert in lang/deutsch/main.php

$lang['contact'] =  "Kontakt";
$lang['mail_custom_text'] = " Sollten sie fragen zu eines der Bilder haben,<br>können Sie hier mit mir in Kontakt treten.<br><br>Rembrandt";
$lang['mail_to'] =  "An:";
$lang['your_name'] = "Ihr Name:";
$lang['your_mail'] = "Ihre Email:";

lang/english/main.php
 
$lang['contact'] = "Contact";
$lang['mail_custom_text'] = " Have you any questions to the images, contact me.<br><br>Rembrandt";
$lang['mail_to'] =  "To:";
$lang['your_name'] = "Your Name:";
$lang['your_mail'] = "Your Email:";


4.) search in templates/yourTemplates'/user_logininfo.html:
Code: [Select]
» <a href="{url_logout}">{lang_logout}</a><br>
insert below:
Code: [Select]
» <a href="contact.php">{lang_contact}</a><br>&nbsp;

5.) search in templates/yourTemplates'/user_loginform.html:
Code: [Select]
» <a href="{url_register}">{lang_register}</a><br>
insert below:
Code: [Select]
» <a href="contact.php">{lang_contact}</a><br>&nbsp;

6.) create a new file called "contact.html" and store in you templates folder:
Code: [Select]
{header}
<table  width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehead">
        <tr>
          <td width="100%" colspan="4"><table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td width="6"><img src="{template_url}/images/header_top_left.gif" width="6" height="6" alt="header_top_left" ></td>
        <td width="100%"><img src="{template_url}/images/header_top.gif" width="100%" height="6" alt="header_top" ></td>
<td width="6"><img src="{template_url}/images/header_top_right.gif" width="6" height="6" alt="header_top_right" ></td>
    </tr>
</table>
</td>
        </tr>
        <tr>
          <td width="6"><img src="{template_url}/images/header_left.gif" width="6" height="60" alt="header_left" ></td>
          <td width="100%"><img src="{template_url}/images/header_logo.gif" width="405" height="60" alt="header_logo.gif" ></td>
          <td width="225" align="right">
            <form method="post" action="{url_search}">
              <table border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td>
                    <input type="text" name="search_keywords" size="15" class="searchinput" >
                  </td>
                  <td>
                    <input type="submit" value="{lang_search}" class="button" name="submit" >
                  </td>
                </tr>
                <tr valign="top">
                  <td colspan="2"><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
                </tr>
              </table>
            </form>
          </td>
          <td align="right" width="6"><img src="{template_url}/images/header_right.gif" width="6" height="60" alt="header_right" ></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bordercolor">
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td class="tablebgcolor">
            <table width="100%" border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td class="navbar" height="23">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" >{clickstream}</td>
                      <td align="right">
<a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
<a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;
 </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" valign="top" class="row2">
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" >{lang_registered_user}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" ></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">{user_box} </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" ></td>
                    </tr>
                  </table>
                  {if random_image}
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" >{lang_random_image}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" ></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">
                      <br>
                        {random_image}
                      <br>
                        <br>
                      </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" ></td>
                    </tr>
                  </table>
                  {endif random_image}
                </td>
                <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" width="1" height="1" alt="" ></td>
                <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" width="18" height="18" alt="" ></td>
                <td width="100%" valign="top"><br >
                  <b class="title">{lang_contact}</b>
                  <hr size="1" >
                  {if msg}<b>{msg}</b><br><br>{endif msg}
 {content}
 <p>&nbsp;</p>
                
                 <!--  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>{category_dropdown_form}</td>
                      <td align="right">{setperpage_dropdown_form}</td>
                    </tr>
                  </table>
                  <p>&nbsp;</p> -->
                </td>
                <td width="20" valign="top"><img src="{template_url}/images/spacer.gif" width="19" height="19" alt="" ></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablebottom">
        <tr>
          <td width="6" nowrap><img src="{template_url}/images/footer_left.gif" width="6" height="19" alt="" ></td>
          <td width="100%"></td>
          <td width="6" nowrap><img src="{template_url}/images/footer_right.gif" width="6" height="19" alt="" ></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
{footer}

7.) create a new file called "contact_mailform.html" and store in you templates folder:
Code: [Select]
<table width="100%" class="row2" border="0" cellpadding="4" cellspacing="0">
  <form name="contact_mailform" action="{url_contact}" method="POST" >
     <tr>
      <td align="right">&nbsp;</td>
      <td align="left" valign="top" >
       <br>
        <b>{lang_mail_custom_text}
         <p>&nbsp;</p>
        </b>
      </td>
    </tr>
    {select}
    <tr>
      <td align="right" valign="middle"><b>{lang_your_name}</b></td>
      <td align="left"><input class="input" name="sender_name" type="text"  tabindex="1" value="{sender_name}" >
      </td>
    </tr>
    <tr>
      <td align="right" valign="middle"><b>{lang_your_mail}</b></td>
      <td align="left"><input  class="input" name="sender_email" type="text"  tabindex="2" value="{sender_email}" >
      </td>
    </tr>
    <tr>
      <td align="right" valign="middle"><b>{lang_subject}</b></td>
      <td align="left"><input  class="input" name="subject" type="text"  tabindex="3" value="{subject}" ></td>
    </tr>
    <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"  tabindex="4">{message}</textarea> </td>
    </tr>
    
    {if captcha_contact}
    <tr>
      <td align="right" valign="top"><b>{lang_captcha}</b></td>
      <td align="left" valign="top">
        <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" ></a><br>
      </td>
    </tr>
    <tr>
      <td align="right" valign="middle">&nbsp;</td>
      <td align="left" valign="top" size="20">{lang_captcha_desc}</td>
    </tr>
    <tr>
      <td align="right" valign="middle">&nbsp;</td>
      <td align="left" valign="top"><input class="input" type="text" name="captcha" id="captcha_input"  tabindex="5"  ></td>
    </tr>
    {endif captcha_contact}
  
    <tr>
      <td align="right" valign="middle">&nbsp;</td>
      <td align="left"><input type="hidden" name="action" value="emailSiteOwner">
        <input type="hidden" name="user_id" value="{user_id}">
        <input tabindex="5" type="submit" name="postbutton" value="{lang_submit}" class="button" style="margin-right:13px; ">
        <input tabindex="6" type="reset" name="reset" value="{lang_reset}" class="button">
        <br>
        <br>
        <br>
      </td>
    </tr>
    
<script type="text/javascript">
// set focus to form field
Form = document.getElementById("contact_mailform");
Form.sender_name.focus();
</script>
</form>
</table>

8.) search in global.php:

$captcha_enable_comments     = 1;

insert above:

$captcha_enable_contact    = 1;

search:

if (!$captcha_enable) {

insert below:

$captcha_enable_contact    = 0;


9.) Optional: send e-mail to images owner

search in details.php:
if (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id) || !$image_row) {
  redirect($url);
}
insert below:

if(($image_row['user_showemail'] == 1) && ($user_info['user_level'] != GUEST)){
$send_detail = "<a href=\"contact.php?user_id=".$image_row['user_id']."\"><img src=\"".get_gallery_image("email.gif")."\" border=\"0\" alt=\"\" /></a>";
$site_template->register_vars("send_detail",$send_detail);
}

search:
get_user_table_field(", u.", "user_email")."
and replace:
get_user_table_field(", u.", "user_email").get_user_table_field(", u.", "user_showemail")."

9.1) search in the code "contact.php":

  if ($user_info['user_level'] != GUEST)  {
    
    $select  = "<tr>";
    $select  .= "<td align=\"right\" valign=\"middle\"><b>".$lang['mail_to']."</b></td>";
    
      $sql = "SELECT user_id,user_level,user_name,user_email,user_allowemails
          FROM ".USERS_TABLE."
          WHERE user_level = 9 AND user_allowemails = 1
          ORDER BY user_name ASC ";
      $result = $site_db->query($sql);

    $select .= "<td align=\"left\"><select class=\"input\" name=\"emails\" >\n";
    
    $select .= "<option value=\"".$config['site_email']."\" class=\"dropdownmarker\">".$lang['userlevel_admin']."</option>\n";

and replace:

 if ($user_info['user_level'] != GUEST)  {
    
    $user_id = ($HTTP_GET_VARS['user_id'] > 0) ? intval($HTTP_GET_VARS['user_id']) : 0;  
    $user_id_sql =($user_id > 0)? "user_id = $user_id" : "user_level = 9";

    $select  = "<tr>";
    $select  .= "<td align=\"right\" valign=\"middle\"><b>".$lang['mail_to']."</b></td>";
    
      $sql = "SELECT user_id,user_level,user_name,user_email,user_allowemails
          FROM ".USERS_TABLE."
          WHERE $user_id_sql AND user_allowemails = 1
          ORDER BY user_name ASC ";
      $result = $site_db->query($sql);

    $select .= "<td align=\"left\"><select class=\"input\" name=\"emails\" >\n";
    
    if($user_id == 0 ){
    $select .= "<option value=\"".$config['site_email']."\" class=\"dropdownmarker\">".$lang['userlevel_admin']."</option>\n";
    }


9.2) in your template/details.html search:
Code: [Select]
{lightbox_button}insert before:
Code: [Select]
{send_detail}&nbsp;&nbsp;

10.) Optional: Chaptcha can mathematics

search in includes/captcha_utils.php:
function captcha_get_code() {
  global $captcha_path, $captcha_chars, $captcha_wordfile, $captcha_length;

replace:

//###################### chaptcha mathematics start #######################
function calculation(){
  global $site_sess;
  $math = range(0,9);
  shuffle($math);
  
  $code = "$math[0]+$math[1]+$math[2]";
  $sum = $math[0]+$math[1]+$math[2];
  $site_sess->set_session_var('result', $sum);
    
  return $code;
}

function captcha_validate_sum($result) {
  global $site_sess, $captcha_enable, $user_info;
  
  if (!$captcha_enable || $user_info['user_level'] == ADMIN) {
    return true;
  }

  $sess_sum =  trim($site_sess->get_session_var('result'));

  $valid_result = $sess_sum != '' && $sess_sum == $result;

  $site_sess->drop_session_var('result');

  return $valid_result;
}
//###################### chaptcha mathematics end #########################
function captcha_get_code() {
  global $captcha_path, $captcha_chars, $captcha_wordfile, $captcha_length,$captcha_calculation;
//###################### chaptcha mathematics start #######################
  if($captcha_calculation){
    return calculation();
  }
//###################### chaptcha mathematics end #########################


10.1) search in root/global.php:
$captcha_ttf                 = 1;
insert below:
$captcha_calculation         = 1;

10.2 search in contact.php:
 
     $captcha = (isset($_POST['captcha'])) ? un_htmlspecialchars(trim($_POST['captcha'])) : "";
insert below:

     $result = (isset($_POST['result'])) ? intval(trim($_POST['result'])):"";

search:

if ($captcha_enable_contact && !captcha_validate($captcha)) {
      $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
      $error = 1;
    }

insert below:

  if ($captcha_enable_contact && $captcha_calculation && !captcha_validate_sum($result)) {
      $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_result'];
      $error = 1;
    }

search:

      "lang_captcha_desc" => $lang['captcha_desc'],
and replace:

//###################### chaptcha mathematics start #######################  
      "captcha_calculation" => (bool)$captcha_calculation,
      "lang_captcha_desc" => ($captcha_calculation) ? $lang['captcha_desc_result'] : $lang['captcha_desc'],
//###################### chaptcha mathematics end #########################      


10.3 search in your Template/style.css:
Code: [Select]
.input{
  font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
  color: #0f5475;
  font-size: 11px;
  width: 230px;
}
insert below:
Code: [Select]
.input_res{
  font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
  color: #0f5475;
  font-size: 11px;
  width: 30px;
}

10.4 search in lang/deutsch/main.php:

$lang['captcha_required'] = 'Das Feld mit dem Bestätigungs-Code muss ausgefüllt werden.';

insert below:

$lang['captcha_result'] = "Ihr Ergebnis stimmt nicht, bitte versuchen Sie es noch einmal !";
$lang['captcha_desc_result'] = "Bitte tragen Sie die Rechnung aus dem Bild in das Textfeld darunter ein, und schreiben das Ergebnis rechts davon hinein.<br>Wenn Sie Probleme haben den Code zu erkennen, klicken Sie auf das Bild um ein neues zu erhalten.";
      
10.4.1 search in lang/english/main.php:
$lang['captcha_required'] = 'Please enter the verification code.';
insert below:

$lang['captcha_result'] = "Your result is wrong, please try again !";
$lang['captcha_desc_result'] = "Please enter the code from the image into the text field below, and write the result right inside of it.<br>If you have problems identifying the image, click on it to get a new one..";


10.5 search in your templatet/contact_mailform.html:
Code: [Select]
<td align="left" valign="top"><input class="input" type="text" name="captcha" id="captcha_input" tabindex="5"></td>
and replace:
Code: [Select]
<td align="left" valign="top"><input class="input" id="captcha_input" type="text" name="captcha" tabindex="5">{if captcha_calculation} = <input class="input_res" name="result" type="text" >{endif captcha_calculation}</td>
 

mfg Andi
Title: Re: [MOD] Contact Form
Post by: Abraxxas on January 11, 2010, 08:28:17 PM
 :D
Vielen Dank an Andi, das Du Dir die Mühe gemacht hast. Erste Sahne !

Gruß Hans
Title: Re: [MOD] Contact Form
Post by: Rembrandt on January 11, 2010, 08:35:30 PM
Hi!
^....

danke für dein feedback  :D  ich dachte schon das ist wieder etwas was niemanden interessiert.


mfg Andi

EDIT: sry hatte vegessen punkt 8.) zu posten: captcha
Title: Re: [MOD] Contact Form
Post by: Tino23 on January 12, 2010, 06:12:07 PM
HI, danke für die schnelle Hilfe und Antwort.  :!: :!: :!: Werde es die nächsten Tage mal Testen.
Title: Re: [MOD] Contact Form
Post by: Rembrandt on January 12, 2010, 06:36:53 PM
... Werde es die nächsten Tage mal Testen....
brauchst nicht testen, das funktioniert  :mrgreen:
Title: Re: [MOD] Contact Form
Post by: Jan-Lukas on January 12, 2010, 11:53:52 PM
brauchst nicht testen, das funktioniert  :mrgreen:

Stimmt  :D

Danke
Harald

Edit:
doch noch was, das captcha wird nicht angezeigt, muss das wo eingeschaltet werden ?

LG


mein Fehler, sollte auch die global editieren *gg*
Title: Re: [MOD] Contact Form
Post by: Jan-Lukas on January 18, 2010, 05:38:10 PM
mir ist gerade aufgefallen, das sich die Captcha Zahlen nur 1x erneuern lassen, beim 2ten mal erscheint im Browser unten (Fehler auf der Seite)
alle anderen Captcha eingaben auf meiner Seite klappen aber, nur hier nicht.
Kann das einer bestätigen, sonst muss ich den Code noch mal prüfen

LG Harald
Title: Re: [MOD] Contact Form
Post by: Rembrandt on January 18, 2010, 06:20:59 PM
Hi!
da habe ich wohl in meinen vorigen post die klappe zu weit aufgerissen  :oops:


EDIT:  step 7.) contact_mailform.html :
search:
Code: [Select]
<td align="left" valign="top"><input class="input" type="text" name="captcha"   tabindex="5"  value=""></td>replace:
Code: [Select]
<td align="left" valign="top"><input class="input" type="text" name="captcha"  id="captcha_input"  tabindex="5" ></td>
mfg Andi
Title: Re: [MOD] Contact Form
Post by: Jan-Lukas on January 18, 2010, 08:16:47 PM
1 A Supporter  :D

besten Dank, jetzt klappt wirklich alles

Harald
Title: Re: [MOD] Contact Form
Post by: Peaces on March 30, 2010, 08:02:30 PM
I realize this probably has an obvious answer but where do I set "my email" address for the contact form to send me the submission? Thanks.
Title: Re: [MOD] Contact Form
Post by: Sumale.my on March 30, 2010, 08:15:11 PM
1 A Supporter  :D

besten Dank, jetzt klappt wirklich alles

Harald

Rembrandt halt ^^
Title: Re: [MOD] Contact Form
Post by: Rembrandt on March 30, 2010, 08:27:32 PM
...but where do I set "my email" address for the contact form to send me the submission? Thanks.

ACP general/settings Admin email
Title: Re: [MOD] Contact Form
Post by: Peaces on March 31, 2010, 02:14:31 PM
My email address is there in the ACP. However, I must have another issue. I just realized that I am not receiving any emails for registrations either.
Maybe I have some other issue going on. Any suggestions as to where to start looking?
Vielen Dank im Voraus!
Title: Re: [MOD] Contact Form
Post by: mawenzi on March 31, 2010, 02:21:32 PM
... na dann schau mal bei deinem Hoster vorbei, ob er diese Funktion (mailing) via php unterstützt ...
Title: Re: [MOD] Contact Form
Post by: Peaces on March 31, 2010, 02:37:18 PM
The emails have worked just fine for a year now until I upgraded from 1.6 to 1.7 and started adding this mod.
Title: Re: [MOD] Contact Form
Post by: mawenzi on March 31, 2010, 03:34:17 PM
... if so ( the reason can't be 4images upgrading and contact form mod installation ) ...
... reinstall your backups and try it again with a new installation ...
Title: Re: [MOD] Contact Form
Post by: Peaces on March 31, 2010, 04:21:52 PM
Thank you for your suggestion.
Are there any specific docs/files I should try to replace before I scrap and reinstall?
Title: Re: [MOD] Contact Form
Post by: Peaces on April 07, 2010, 01:16:32 PM
Thanks for all the help. the issue was in my server settings.

All works great.

Here's a Thank You to you!
Title: Re: [MOD] Contact Form
Post by: MrAndrew on October 31, 2010, 07:02:34 AM
Rembrandt thanks. Work fine if i write "contact.php?user_id=33". But in details.php not show link or image to contact page. And else, i haven`t this path in my details.php:

if (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id) || !$image_row) {
  redirect($url);
}

 :cry:
Title: Re: [MOD] Contact Form
Post by: Rembrandt on October 31, 2010, 07:15:21 AM
... i haven`t this path in my details.php:

above:

$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" : get_random_image($cat_id);

has a user in Control Panel "show email" to "off" do you not see the button on the detail page.

set "user" with "user_id=33"  in Control Panel  "Show Email" to "on"

Title: Re: [MOD] Contact Form
Post by: MrAndrew on October 31, 2010, 08:52:52 AM
Now it work`s fine. How to set radio by default "Show E-mail" as "YES"??? Now it set "NO" during new user registration.

Many Thanks!
Title: Re: [MOD] Contact Form
Post by: Rembrandt on October 31, 2010, 09:20:24 AM
search in admin/user.php:

show_radio_row($lang['field_showemail'], "user_showemail_".$i, 0);

and replace:

show_radio_row($lang['field_showemail'], "user_showemail_".$i, 1);

Title: Re: [MOD] Contact Form
Post by: MrAndrew on October 31, 2010, 09:32:23 AM
No this doesn`t work. After registration radio button set on "Show Email  - NO"  :cry:
Title: Re: [MOD] Contact Form
Post by: Rembrandt on October 31, 2010, 01:00:46 PM
test ,.. search in register.php:
$user_showemail = (isset($HTTP_POST_VARS['user_showemail'])) ? intval($HTTP_POST_VARS['user_showemail']) : 0;
replace:
$user_showemail = (isset($HTTP_POST_VARS['user_showemail'])) ? intval($HTTP_POST_VARS['user_showemail']) : 1;
Title: Re: [MOD] Contact Form
Post by: MrAndrew on October 31, 2010, 01:11:31 PM
Works! Thanks!
Title: Re: [MOD] Contact Form Zusatzfeld
Post by: kubiczek on December 12, 2010, 05:49:58 AM
Mit der folgenden änderung lässt sich ein zusatzfeld einbauen in der Kontakt Seite.

habe es für meine Sterbefall meldung genutzt sehe
http://www.grosspeterwitz.org/friedhof/4images/contact.php (http://www.grosspeterwitz.org/friedhof/4images/contact.php)

1.) suche in der contact.php
 $message = stripslashes(trim($_POST['message']));

danach einfügen
 $message1 = stripslashes(trim($_POST['message1']));

suchen
 "message" => $message,

danach einfügen
 "message1" => $message1,

suchen
if (!$sendprocess) {
    $subject = "";
    $message = "";

danach einfügen
$message1 = "";

suchen
"sender_email" => $sender_email,
      "subject" => htmlspecialchars($subject),
      "message" => htmlspecialchars($message),

danach einfügen
"message1" => htmlspecialchars($message1),

suchen
"lang_message" => $lang['message'],

danach einfügen
"lang_message1" => $lang['message1'],

2.) in der contact_mailform.html

suche
<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"  tabindex="4">{message}</textarea> </td>
    </tr>

davor einfügen
<tr>
      <td align="right" valign="middle"><b>{lang_message1}</b></td>
      <td align="left"><input  class="input" name="message1" type="text"  tabindex="3" value="{message1}" ></td>
    </tr>

3.) in der lang/deutsch/main.php

suchen
$lang['your_mail'] = "Ihre Email:";

danach einfügen
$lang['message1'] = "Ihr Text:";


Viel Spass

Title: Re: [MOD] Contact Form
Post by: haider512 on December 18, 2010, 10:27:20 AM
i dont understand german language..i tried to figure out from posts but most of them were in german language i guess..

please tell me what is wrong..and what settings i have to do to make this mod working for me.?

Code: [Select]
un unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/haider/public_html/directory/includes/db_mysql.php on line 116
Title: Re: [MOD] Contact Form
Post by: Rembrandt on December 18, 2010, 03:16:07 PM
i dont understand german language....
this mod is writen in english  http://www.4homepages.de/forum/index.php?topic=8987.msg144481#msg144481
Title: Re: [MOD] Contact Form
Post by: haider512 on December 28, 2010, 03:47:06 AM
REMOVED


Awesome ....working great....Many Many Many Many Many Many Many THanks....

Long Live 4images...

Superb mate..

[EDIT by V@no]
Please stop leaving quote of the entire post!!!!
[/EDIT]
Title: Re: [MOD] Contact Form
Post by: milanNN on December 30, 2010, 07:15:02 PM
Could you tell me how can i hide e-mail?
See attach.
Title: Re: [MOD] Contact Form
Post by: Rembrandt on December 30, 2010, 07:42:15 PM
Could you tell me how can i hide e-mail?
....
only the admin mail:
search:
$select .= "<option value=\"".$row['user_email']."\">&raquo; ".format_text($row['user_name'], 2)." (".$row['user_email'].")</option>\n";

and replace:
$select .= "<option value=\"".$row['user_email']."\">&raquo; ".format_text($row['user_name'], 2)." </option>\n";
Title: Re: [MOD] Contact Form
Post by: milanNN on December 30, 2010, 08:31:32 PM
Could you tell me how can i hide e-mail?
....
only the admin mail:
search:
$select .= "<option value=\"".$row['user_email']."\">&raquo; ".format_text($row['user_name'], 2)." (".$row['user_email'].")</option>\n";

and replace:
$select .= "<option value=\"".$row['user_email']."\">&raquo; ".format_text($row['user_name'], 2)." </option>\n";

Thank you!
Title: Re: [MOD] Contact Form
Post by: batu544 on January 30, 2011, 05:17:56 PM
Hi,
    I have installed this mod recently.. but unable to make it work as expected.. Whenever I am trying to send an email, it's always showing me "Please enter the verification code." error message..

Could anyone please let me know what mistake I have done ?   here is my contact page ==> www.bhwallpapers.com/contact.htm


FYI.. I have installed recaptcha mod of V@no and it works well in my other pages..like www.bhwallpapers.com/top_friends.htm  and register page.

Here is my contact.php code..
Code: [Select]
<?php 
/************************************************************************** 
 *                                                                        * 
 *    4images - A Web Based Image Gallery Management System               * 
 *    ----------------------------------------------------------------    * 
 *                                                                        * 
 *             File: contact.php                                          * 
 *        Copyright: (C) 2002  - 2010 Jan Sorgalla                        * 
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.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('MAIN_SCRIPT'__FILE__);
include(
ROOT_PATH.'global.php'); 
require(
ROOT_PATH.'includes/sessions.php'); 
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php'); 
$txt_clickstream "Contact"


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



$content ""

$sendprocess 0

if (
$action == "emailSiteOwner") { 
 
  
$error 0
  
  
$mail_to = (isset($_POST['emails'])) ? $_POST['emails'] : $config['site_email'];
  
$sender_name stripslashes(trim($_POST['sender_name'])); 
  
$sender_email stripslashes(trim($_POST['sender_email'])); 

  
$subject un_htmlspecialchars(trim($HTTP_POST_VARS['subject'])); 
  
$message un_htmlspecialchars(trim($HTTP_POST_VARS['message'])); 
  
  
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";


if (
$sender_name == "" || $sender_email == "" || $subject == "" || $message == "") { 
    
$msg $lang['lostfield_error']; 
    
$sendprocess 1
    
$error 1
  } 
  
 
$check "/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,4})$/";

if(!isset(
$sender_email) OR $sender_email == "" OR !preg_match($check,$sender_email))
   {
   
$msg .= (($msg != "") ? "<br />" "").$lang['invalid_email_format']; 
    
$sendprocess 1
    
$error 1
   }
  
if (
$captcha_enable_contact && !captcha_validate($captcha)) {
      
$msg .= (($msg != "") ? "<br />" "").$lang['captcha_required'];
      
$error 1;
    }

if (!
$error) { 
    
$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($mail_to); 
    
$site_email->set_subject($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("mailform_message"$config['language_dir']); 
    
$site_email->send_email(); 
    
$msg 'Email has been sent. I will contact you as soon as possible. Thank you !!' 

  } 
  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,
      
"url_form" => $site_sess->url(ROOT_PATH."contact.htm"),
      
"subject" => htmlspecialchars($subject), 
      
"message" => htmlspecialchars($message), 
      
"captcha_contact" => (bool)$captcha_enable_contact,
      
"lang_captcha" => $lang['captcha'],
      
"lang_captcha_desc" => $lang['captcha_desc'],
      
"lang_mail_to" => $lang['mail_to'],
      
"lang_your_name" => 'Name:'
      
"lang_your_mail" => 'Email:'
      
"lang_subject" => 'Subject:'
      
"lang_message" => '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
)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>



Here is my contactmailform.html
Code: [Select]
<table width="100%" class="row2" border="0" cellpadding="4" cellspacing="0">
  <form name="contactform" action="{url_form}" method="post" onsubmit="postbutton.disabled=true;">
<input type="hidden" name="action" value="emailSiteOwner">
<input type="hidden" name="user_id" value="{user_id}">
    <tr>
      <td align="right" valign="middle"><b>{lang_your_name}</b></td>
      <td align="left"><input class="input" name="sender_name" type="text"  tabindex="1" value="{sender_name}" size="40" maxlength="50">
      </td>
    </tr>
    <tr>
      <td align="right" valign="middle"><b>{lang_your_mail}</b></td>
      <td align="left"><input  class="input" name="sender_email" type="text"  tabindex="2" value="{sender_email}" size="40" maxlength="50">
      </td>
    </tr>
    <tr>
      <td align="right" valign="middle"><b>{lang_subject}</b></td>
      <td align="left"><input  class="input" name="subject" type="text"  tabindex="3" value="{subject}" size="40" maxlength="50"></td>
    </tr>
    <tr>
      <td align="right" valign="top"><b>{lang_message}</b></td>
      <td align="left" valign="top"><textarea name="message" cols="50" rows="10" wrap="VIRTUAL"  tabindex="4">{message}</textarea> </td>
    </tr>
    {if captcha_contact}
<tr>
        <td width="80" valign="top"><b>{lang_captcha}</b></td>
         <td>{recaptcha}</td>
    </tr>
   {endif captcha_contact}
    <tr>
      <td align="right" valign="middle">&nbsp;</td>
      <td align="left">
        <input type="submit" name="postbutton" value="{lang_submit}" class="button" style="margin-right:13px; " />
        <input tabindex="6" type="reset" name="reset" value="{lang_reset}" class="button" />
      </td>
    </tr>
</form>
</table>



Any clue or help will be greatly appreciated.. :)

Thank you
batu544
Title: Re: [MOD] Contact Form
Post by: Rembrandt on January 30, 2011, 05:42:10 PM
... I have installed this mod recently.. but unable to make it work as expected.. Whenever I am trying to send an email, it's always showing me "Please enter the verification code." error message..

....

have you the mod from here?
http://www.4homepages.de/forum/index.php?topic=8987.msg144481#msg144481
maybe remove step 8. )
Title: Re: [MOD] Contact Form
Post by: wassimo on January 31, 2011, 09:17:10 PM
thanks alot < nice mood  :D
Title: Re: [MOD] Contact Form
Post by: Sumale.my on March 16, 2011, 09:29:25 PM
In dem Abschnitt "10.4.1" sind die tags [*php] und [/*php] in den Code gerutscht! ;)
Title: Re: [MOD] Contact Form
Post by: MrAndrew on February 11, 2012, 09:55:36 AM
How to get a dropdown list for GUESTs too?

If guest send message, it doesn`t work! Dropdown list with "send to" user name and e-mail not shown!

For login user, work`s fine!
Title: Re: [MOD] Contact Form
Post by: jimraynor on April 28, 2012, 05:45:53 PM
i installed but doesnt work.


DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 71, 13, 375, 233, 208, 121, 98, 405, 156, 255, 118, 173, 132, 367, 198, 238, 348, 170, 207, 135, 272, 137, 271, 381, 206, 12, 120, 406, 366, 117, 254, 7, 171, 196, 232, 133, 149, 99, 354, 136, 172, 380, 195, 365, 230, 42, 270, 417, 97, 146, 131, 205, 353, 407, 119, 253, 116, 379, 165, 115, 483, 408, 158, 204, 194, 349, 269, 252, 134, 364, 229, 378, 166, 251, 130, 409, 228, 334, 482, 203, 193, 151, 268, 114, 377, 481, 153, 410, 333, 250, 267, 21, 227, 11, 202, 192, 113, 455, 382, 191, 411, 352, 226, 201, 157, 112, 78, 249, 266, 77, 14, 383, 355, 111, 412, 248, 225, 190, 265, 479, 200, 62, 145, 413, 199, 189, 384, 76, 110, 264, 224, 50, 478, 357, 247, 160, 3, 223, 169, 414, 385, 159, 246, 188, 477, 263, 75, 44, 361, 109, 123, 222, 262, 155, 80, 73, 415, 386, 187, 245, 104, 476, 358, 140, 125, 221, 261, 72, 416, 387, 244, 347, 474, 186, 143, 105, 152, 185, 260, 388, 106, 142, 359, 472, 150, 220, 49, 243, 184, 92, 471, 389, 107, 351, 259, 138, 148, 242, 219, 469, 108, 350, 90, 258, 390, 183, 241, 167, 147, 218, 154, 217, 53, 257, 391, 139, 240, 84, 468, 182, 141, 35, 216, 102, 178, 335, 124, 467, 392, 239, 101, 33, 360, 126, 89, 393, 466, 179, 215, 180, 356, 100, 394, 168, 127, 214, 465, 464, 181, 128, 213, 395, 9, 93, 212, 5, 4, 463, 129, 396, 22, 177, 462, 211, 37, 122, 397, 2, 18, 210, 87, 68, 461, 398, 57, 16, 24, 209, 460, 79, 399, 164, 459, 81, 400, 457, 94, 401, 458, 402, 403, 456, 440, 441, 443, 442, 453, 452, 451, 450, 449, 448, 439, 362, 25, 30, 20, 447, 51, 404, 445, 444, 446, 438, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 376, 374, 373, 372, 371, 370, 369, 368, 363, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 332, 331, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312, 311, 310, 309, 308, 307, 306, 305, 304, 303, 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, 281, 256, 237, 236, 235, 103, 176, 175, 174, 1, 144, 163, 162, 161, 65, 17, 19, 96, 95, 91, 88, 86, 85, 83, 82, 74, 70, 69, 67, 66, 64, 63, 61, 60, 59, 58, 56, 55, 54, 52, 48, 47, 46, 45, 43, 41, 40, 39, 38, 36, 34, 32, 31, 29, 28, 27, 26, 23, 6, 8, 234, 10, 15, 454) AND i.image_date >= 1335282291 ORDER BY RAND() LIMIT 3
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/server/public_html/includes/db_mysql.php on line 116
Title: Re: [MOD] Contact Form
Post by: Rembrandt on April 28, 2012, 05:50:37 PM
...Unknown column 'i.user_id' in 'on clause'
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/server/public_html/includes/db_mysql.php on line 116

Please use the Search:
http://www.4homepages.de/forum/index.php?topic=22668.0
Title: Re: [MOD] Contact Form
Post by: Honse on May 08, 2012, 06:55:13 PM
Hallo,
ich habe lange probiert, gelesen und geschaut.
Das captcha in dem Kontaktformular funktioniert bei mir nicht.
Entweder er wird angezeigt und funktioniert nicht oder es wird nicht angezeigt.
Code: [Select]

    {if captcha_trouble_ticket}
          <tr>
            <td class="row2" valign="top"><b>{lang_captcha}</b></td>
            <td class="row2">
  <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
             <input class="input" id="captcha_input" type="text" name="captcha" tabindex="5">{if captcha_calculation} = <input class="input_res" name="result" type="text" >{endif captcha_calculation}

              <br />
              {lang_captcha_desc}
</td>
          </tr>
          {endif captcha_trouble_ticket}
dies ist der Ausschnitt vom contact_mailform.html - wo der captcha angezeigt wird, aber nicht funktioniert.
Code: [Select]
{if captcha_contact}
          <tr>
            <td class="row2" valign="top"><b>{lang_captcha}</b></td>
            <td class="row2">
  <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
             <input class="input" id="captcha_input" type="text" name="captcha" tabindex="5">{if captcha_calculation} = <input class="input_res" name="result" type="text" >{endif captcha_calculation}

              <br />
              {lang_captcha_desc}
</td>
          </tr>
          {endif captcha_contact}
und copiere ich diesen Code ein, wird das captcha - Bild nicht angezeigt. Dies ist aber der Abschnitt, der richtig sein müßte.

Wer kann mir helfen. Ich bekomme sehr viele Spameinträge im Momoment.

Liebe Grüße
Honse
Title: Re: [MOD] Contact Form
Post by: Rembrandt on May 08, 2012, 07:11:06 PM
Hi!

der zweite code den du gepostet hast funktioniert definitiv, habe ich soeben ausprobiert.
der fehler muß wo anders liegen.

mfg Andi
Title: Re: [MOD] Contact Form
Post by: nobby on May 08, 2012, 07:19:57 PM
@honse
ich habe nun 5 Minuten rumprobiert.
Es funktioniert doch  :wink:

nobby
Title: Re: [MOD] Contact Form
Post by: Honse on May 08, 2012, 07:27:04 PM
Hallo @nobby,

hast du auf meiner Seite ausprobiert? Ich habe auch ausgeloggt das Kontaktformular ausprobiert und ich konnte es auch ohne captchaeingabe abschicken.
Ich hatte mir ein Gästebuch installiert, das vollgespamt wurde. Jetzt habe ich es abgeschaltet und nun kommen die Spams bei mir im Postfach an.

Ich freue mich über Sie schnellen Antworten von Euch, danke.

Liebe Grüße
Honse

Title: Re: [MOD] Contact Form
Post by: nobby on May 08, 2012, 07:29:46 PM
hast du auf meiner Seite ausprobiert?

Ja, ich habe es auf Deiner Seite mehrfach ausprobiert. Siehe Screen.
Es wird auch jedesmal ein anderes Captcha-Bild gezeigt.

Und ein Test habe ich auch gesendet  :)
Title: Re: [MOD] Contact Form
Post by: Honse on May 08, 2012, 07:37:03 PM
@nobby
danke, dein Test ist angekommen. Jetzt muß ich sehen, wo die Spams herkommen.

Vielen Danke
Falls ihr eine Idee habt, lasst es mich bitte wissen.

Lieben Gruß
Honse
Title: Re: [MOD] Contact Form
Post by: nobby on May 08, 2012, 07:45:57 PM
Schau mal in Dein Impressum, dort steht die E-Mail-Adresse.
Brauch man nur nehmen !
Title: Re: [MOD] Contact Form
Post by: Honse on May 08, 2012, 07:52:20 PM
Quote
Dies ist eine Nachricht von nobby (xxxxxx) und wurde von
"Pe-Ch's Galerie" aus versendet.
Die Betreiber von Pe-Ch's Galerie können keine Verantwortung für den Inhalt
dieser Email übernehmen.

Die Spams kommen mit diesem Vorwort aber andere Namen an. die müssen von der Galerie kommen vom Kontaktfornular.
Ich werde es mal abschalten

Liebe Grüße Honse
Title: Re: [MOD] Contact Form
Post by: nobby on May 08, 2012, 08:41:46 PM
@honse

schau mal nach ich habe Dir noch mal ein Testmail gesendet.

Jetzt kommt der klu, gesendet ohne Captcha Eingabe.

Beim E-Mail versenden wird Captcha umgangen, funktioniert ohne  :?
Title: Re: [MOD] Contact Form
Post by: Honse on May 08, 2012, 08:51:17 PM
Hallo,
das ist ja mein Problem.
Lieben Gruß
Honse
Title: Re: [MOD] Contact Form
Post by: nobby on May 08, 2012, 08:54:45 PM
Hallo,
das ist ja mein Problem.
Lieben Gruß
Honse

Denn stimmt etwas nicht mit dem Code.
Ohne Eingabe dürfe keine Mail rausgehen.

Hier muss ich erst einmal passen  :(

lg nobby
Title: Re: [MOD] Contact Form
Post by: Honse on May 08, 2012, 08:57:50 PM
danke erstmal für deine Hilfe.

Ich hatte das Kontaktformular einen 1 Tag aus gehabt und es kamen keine Spams mehr rein.
Vorhin habe ich es wieder aktiviert und sofort kommen die Spams rein.
Ich würde sehr gern das Formular behalten und wer kann mir helfen das captcha in gang zu bekommen.
Im Moment finde ich nicht die captcha Installations Datei. Wer kann mir den Link oder die Datei geben bzw. hier rein schreiben.
Danke im voraus.
Liebe Grüße
Honse
Title: Re: [MOD] Contact Form
Post by: nobby on May 09, 2012, 08:02:23 PM
Meinst Du das Kontakformular ?

edit: Captcha  :arrow: http://www.4homepages.de/forum/index.php?topic=21028.0
                     :arrow: http://www.4homepages.de/forum/index.php?topic=28210.msg152417#msg152417

                    und hier von Rembrandt  :arrow: http://www.4homepages.de/forum/index.php?topic=25661.msg140412#msg140412

                    So. das dürfte Dich dann eine weile Beschäftigen  :D
Title: Re: [MOD] Contact Form
Post by: Honse on May 09, 2012, 08:06:41 PM
Danke. Ich suche auch die captcha code oder Mod oder TUT.
Am Anfang habe ich mir die Code, die ich eingearbeitet habe leider nicht abgespeichert.
Ein Riesenfehler, wie ich jetzt festgestellt habe.

Lieben Gruß
Honse
Title: Re: [MOD] Contact Form
Post by: Rembrandt on May 10, 2012, 04:57:27 AM
Hi!
...Ich würde sehr gern das Formular behalten und wer kann mir helfen das captcha in gang zu bekommen.
...
Wenn du möchtest kannst du mir die FTP und Admin zugang zur Galerie per PM schicken, und ich sehe mir das an.

mfg Andi
Title: Re: [MOD] Contact Form
Post by: Honse on May 10, 2012, 03:25:08 PM
Hallo Rembrandt,
super danke. ich mache Dir einen Zugang.

Liebe Grüße
Honse

PS PM ist an Dich raus, aber ich sehe nichts im Postausgang.
Title: Re: [MOD] Contact Form
Post by: Rembrandt on May 10, 2012, 05:59:23 PM
Hi!

...PS PM ist an Dich raus, aber ich sehe nichts im Postausgang.

Leider spinnt der Forums Server
@kai, macht endlich was !!!!!!´  :evil:

 ich komme Tageweise überhaupt nicht drauf, ob der folgende Kommentar von mir gepostet wird weis ich somit auch nicht.


in der contact_mailform.html hast du anstatt, so wie es im Mod angegeben ist:
Code: [Select]
{if captcha_contact}
...
{endif captcha_contact}

das hier drinnen stehen gehabt:
Code: [Select]
{if captcha_trouble_ticket}
....
 {endif captcha_trouble_ticket}
         

in der global anstatt (step 8.)):         
Code: [Select]
if (!$captcha_enable) {
  $captcha_enable_comments   = 0;
  ......

das hier:
Code: [Select]
       
 if (!$cache_enable) {
$captcha_enable_contact    = 0;
....

zum Schluss:
Du hast in der captcha.php die email prüfung auskommentiert gehabt.
warum machst du so etwas, vielleicht um es deinen Spamer noch leicher zu machen?

mfg Andi
Title: Re: [MOD] Contact Form
Post by: Honse on May 10, 2012, 07:54:10 PM
Hallo Rembrandt,

ich habe das unbewußt gemacht. Bitte vergib mir. Nach Anleitung kann ich etwas einfügen, aber Fehler entdecken, wird schwierig.
Danke für Deine Eure Hilfe. Die hier wirklich super ist.

Lieben Gruß
Honse

PS.: Danke ich habe wieder Ruhe. Wenn ich wüßte wie ich Euch danken könnte.
Title: Re: [MOD] Contact Form
Post by: nobby on May 10, 2012, 09:38:02 PM
Wenn ich wüßte wie ich Euch danken könnte.

Da lass dir mal keine grauen Haare wachsen  :)
Dafür ist ein Forum ja da, nicht.

Und jeder Hilft auf seine Art. Und Andi ist da schon spitze. Der hat von PHP eine menge Ahnung.

lg nobby
Title: Re: [MOD] Contact Form
Post by: jimraynor on May 17, 2012, 02:22:16 PM
...Unknown column 'i.user_id' in 'on clause'
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/server/public_html/includes/db_mysql.php on line 116

Please use the Search:
http://www.4homepages.de/forum/index.php?topic=22668.0

Hello REmbrandt this error occur when used 4images v1.7 / 1.7.1 (and/or some old mods) and MySQL v5.x

M version is 1.7.6
Title: Re: [MOD] Contact Form
Post by: bergblume on September 02, 2012, 11:26:00 AM
hallo zusammen,

eine kurze frage...

wie kann ich den kontakt mod mehrmals duplizieren und bei mir im template unter anderen namen contact1.html, contact2.html, etc mit verschiedenen templates und email-adressen verwenden.
wäre super, wenn mir jmd. kurz hier ein bsp. für diese vorgehensweise nennen könnte...
die dateien einfach zu duplizieren und unter contact.php eine andere email-adresse eintragen hat leider keinen erfolg gebracht..
anscheinend muss ich hier noch irgendwelche neuen zuordnungen zu den neuen contact1-seiten und mailforms machen, oder?
wo und wie?

Danke euch,

bergblume
Title: Re: [MOD] Contact Form
Post by: Rembrandt on September 02, 2012, 03:19:30 PM
Hi!

am einfachsten und um es aus zu probieren, dupliziere die contact.php und nenne sie zu contact2.php um.

in dieser contact2.php, suche:

$main_template = "contact";

ersetze:

$main_template = "contact2";

dupliziere die contact.htm und und nenne sie zu contact2.html um.

wenn du auch eine andere "contact_mailform.html" (duplizieren/umbennen) benötigst, suche in der "contact2.php":

$content = $site_template->parse_template("contact_mailform");

und ersetze es mit:

$content = $site_template->parse_template("contact_mailform2");


in der contact2.php kanns du jetzt alles ändern email adressen, - email template, e.t.c.

mfg Andi
Title: Re: [MOD] Contact Form
Post by: bergblume on September 02, 2012, 04:28:43 PM
Danke dir für die - wie immer blitzschnelle und blitzsaubere - unterstützung!

funzt wie eine eins!

DANKE!
Title: Re: [MOD] Contact Form
Post by: Rembrandt on September 02, 2012, 04:31:57 PM
.funzt wie eine eins!
..
hätte ich nicht gedacht .  :mrgreen:
Title: Re: [MOD] Contact Form
Post by: Allround on December 20, 2012, 09:24:08 PM
Kann man auch die Auswahl der Administratoren auch entfernen.Ich habe mehrere Admins aber Ich möchte das es nur eine Email Adresse gibt für diesen Kontakt Form
Title: Re: [MOD] Contact Form
Post by: Rembrandt on December 21, 2012, 05:06:53 AM
Hi!
Kann man auch die Auswahl der Administratoren auch entfernen.Ich habe mehrere Admins aber Ich möchte das es nur eine Email Adresse gibt für diesen Kontakt Form
in der "contact_mailform.html" suche "{select}" und entferne es.
Dann wird die Nachricht an die eMail Adresse gesendet die du im ACP hinterlegt hast.

mfg Andi