Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2 3 4 5 ... 7   Go Down

Author Topic: Contact: add new menu button to display a contact form with spam prevention  (Read 182757 times)

0 Members and 1 Guest are viewing this topic.

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie

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.
« Last Edit: February 27, 2009, 07:34:24 am by François Keller »
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Contact: add new menu button to display a contact form
« Reply #1 on: October 22, 2006, 01:48:44 pm »

Good work Frantz , thank you
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Contact: add new menu button to display a contact form
« Reply #2 on: October 23, 2006, 02:49:23 am »

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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Contact: add new menu button to display a contact form
« Reply #3 on: October 23, 2006, 07:28:24 am »

Hey Gizmo,
Quote
In contact.php, the table size should be set to 100% instead of 800px to allow for narrow themes
Yes sure, i will do that
Quote
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
Oh, I haven't test with OrangeSky theme. Will have a look to this problem
Quote
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.
Yes I've seen it on your site and it's on my todo list for next version  ;)
Thank's for your support
Frantz
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Contact: add new menu button to display a contact form
« Reply #4 on: October 23, 2006, 07:41:27 am »

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 ;)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Contact: add new menu button to display a contact form
« Reply #5 on: October 23, 2006, 08:26:19 am »

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,
Logged
‍I don't answer to PM with support question
Please post your issue to related board

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Contact: add new menu button to display a contact form
« Reply #6 on: October 23, 2006, 11:58:43 am »

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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Contact: add new menu button to display a contact form
« Reply #7 on: October 29, 2006, 07:07:23 pm »

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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu

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

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie

Thank's lontano for your contribution. Your file will be add to the pack.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #10 on: November 06, 2006, 10:58:19 am »

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
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #11 on: November 06, 2006, 11:47:21 am »

Quote
Is 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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #12 on: November 06, 2006, 01:39:41 pm »

feel free to modif the code  :D

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

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #13 on: November 07, 2006, 10:07:40 pm »

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
Logged

Nibbler

  • Guest
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #14 on: November 07, 2006, 10:12:57 pm »

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)

Code: [Select]
  'opertator'     => ' plus ',
Be sure to preserve the typo when you make your change.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #15 on: November 07, 2006, 10:33:48 pm »

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)
Code: [Select]
'opertator'     => ' plus ',to
Code: [Select]
'opertator'     => ' + ',
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #16 on: November 07, 2006, 10:36:39 pm »

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
Logged

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #17 on: November 07, 2006, 11:28:19 pm »

Made a Dutch language file, somebody interested?
Logged

Nibbler

  • Guest
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #18 on: November 07, 2006, 11:40:44 pm »

Attach it to the thread.
Logged

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Contact: add new menu button to display a contact form with spam prevention
« Reply #19 on: November 07, 2006, 11:51:42 pm »

ok

dutch lang.
Logged
Pages: [1] 2 3 4 5 ... 7   Go Up
 

Page created in 0.027 seconds with 20 queries.