Contact: add new menu button to display a contact form with spam prevention Contact: add new menu button to display a contact form with spam prevention
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Contact: add new menu button to display a contact form with spam prevention

Started by François Keller, October 22, 2006, 11:27:36 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

François Keller

Hi

Here is a plugin inspired from Gizmo add on for adding a contact form in your Coppermine gallery:
This plugin add un menu button to display a contact form to let your visitors sending a mail to the administrator Email Adress. A field verification is made before sending mail
Plugin also avaible in English and French.
Feel free to translate the lang/english.php language file to your own language.

Version 1.2
Adding a Spam prevention field: You must answer a simple math question before submitting the form. See the contact_1_2.zip file in attachement


Original pack update with this change:
- changing the way to display menu button (Sami's code)
- changing table width to 100% instead 800px acording Gysmo suggestion
- adding Italian language file (Thank's Lontano)
- adding Dutch language file (Thank's Hlabout)
- changing operator word "plus" into sign "+" in lang files
- Correct english.php file (Thank's Gysmo)



New version 1.3 (By Sami)

Original pack update with this change:
- CAPTCHA confirmation instead of mathematic question (Spam checking)
- Blank fields after error checking , bug fixed
- Display specific error message for invalid emal adress (code modif by Frantz)
- Persian & German lang. added
-Russian lang. added (Thank's to dheep)



Install:

* Unpack the archive and upload the "contact" directory structure to your Coppermine gallery's plugins folder.
* Login as an admin, go to config, then "Manage Plugins"
* Find the Contact entry in the available plugins and click install.
* A new menu button is now added for opening contact form.
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Sami

‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

Hey Frantz! Thanks for pluging this guy. :D There are a couple of items to look at.

  • 1. In contact.php, the table size should be set to 100% instead of 800px to allow for narrow themes like the ones I've been submitting. The 800px was a throw back from my early Coppermine days and learning what it was all about.
  • 2. In themes that have vertical list like the OrangeSky theme, the contact menu item won't match the others if they have an image assocated with them. This may also be an issue with themes that have buttons but didn't check it.
  • 3. I've gotten so much spam through my contacts forms lately that I've been trying out various methods such as Captcha and this new method that has been working well for me. It's easier to implement than Captcha so maybe you can incorporate it directly into the plugin. It's called Fee Contact Form at http://www.freecontactform.com/ but just read and make sure there isn't any legal issues but I don't there is. You have to answer a simple math question before the email is sent but you can also make up your own questions and answers. You can check it out here on my sports gallery - http://www.bullseyephotos.com/sports/contact.php.
Cheers!

Gizmo
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

François Keller

Hey Gizmo,
QuoteIn contact.php, the table size should be set to 100% instead of 800px to allow for narrow themes
Yes sure, i will do that
QuoteIn themes that have vertical list like the OrangeSky theme, the contact menu item won't match the others if they have an image assocated with them
Oh, I haven't test with OrangeSky theme. Will have a look to this problem
QuoteI've gotten so much spam through my contacts forms lately that I've been trying out various methods such as Captcha and this new method that has been working well for me. It's easier to implement than Captcha so maybe you can incorporate it directly into the plugin. It's called Fee Contact Form at http://www.freecontactform.com/ but just read and make sure there isn't any legal issues but I don't there is. You have to answer a simple math question before the email is sent but you can also make up your own questions and answers. You can check it out here on my sports gallery - http://www.bullseyephotos.com/sports/contact.php.
Yes I've seen it on your site and it's on my todo list for next version  ;)
Thank's for your support
Frantz
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Sami

BTW you have a problem with contact button positioaning
- on those themes that comes with javascript show/hide menu such as mac_ox_x , eyeball , igames
- or those themes that use picture for button or picture toframe button , such as fruity , hardwired , rainy_day ,...

maybe you could check contact_user_menu function and re-code it with better logic ;)
‍I don't answer to PM with support question
Please post your issue to related board

Sami

Check the new codebase.php and if you like the idea put it under orginal pack ;)
It will create a contact button right after Home button by using home button template

Regards,
‍I don't answer to PM with support question
Please post your issue to related board

François Keller

Oh yes Sami

Your way for displaying the menu button is more better  :D
Thank's.
I've update the original pack in first post

I've changed table width according Gysmo suggestion
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

François Keller

Hi,

version 1.2 is avaible with Spam prevention field. You must answer a simple math question before submitting the form (inspired by Fee Contact Form at http://www.freecontactform.com/)
See attachement in the first post
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Davide Renda

italian translation attached, unzip and upload in the lang directlory of the plugin.

François Keller

Thank's lontano for your contribution. Your file will be add to the pack.
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hein Traag

Hi there,

i would like to use this plugin but i do have a question. Is it possible to make a edition of this plugin which uses Captcha
for confirmation instead of using math questions ?

I already got the captcha plugin for comments from Sami and that works like a charm.

Cheers!
Hein

François Keller

QuoteIs it possible to make a edition of this plugin which uses Captcha
for confirmation instead of using math questions ?

feel free to modif the code  :D
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hein Traag

Quote from: Frantz on November 06, 2006, 11:47:21 AM
feel free to modif the code  :D

I so wish i could. But i discovered that my skillset does not include coding php  :(

hlabout

HI

I have one question.
I added this almost perfect pluginn to my coppermine gallery.
Just have one error: - no PLUS sign between the nubers of the math question.
Tried to solve it by myself, but faild.
Does someone know the answer to this problem.

Regards Harald

Nibbler

I'm not clear on what your question actually is. The place to change the word 'plus' is in the plugin's lang/english.php (or whatever language you use)

  'opertator'     => ' plus ',

Be sure to preserve the typo when you make your change.

François Keller

If your question is how to change the word 'plus' with the sign '+'
change in the plugin's lang/english.php (or in your language file)
'opertator'     => ' plus ',
to
'opertator'     => ' + ',
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

hlabout

After a few hours found the problem myself.
In the lang file code operator is spelled as "opertator".
Changed it, working fine now.
Thanks for your reaction.

Top plugin, was getting sick of all the spam in my comment fields.
This contact form is a great solution.

Harald

hlabout



hlabout