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

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 3 Guests are viewing this topic.


François Keller

Quote from: parti02 on December 09, 2006, 04:18:12 PM
Thx Frantz, it works.

Parti
Yes it work's with all uncommented links (just change the code with parameters from the link you will use for creating the new one). But it's possible that it doesn't work with all themes
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

parti02

Sry, what i have to do, to put it away from the sysmenu and get it into my submenu?
Here i want it.

Theme.php


   <td class="top_menu_right_bttn">
       <a href="plugins/contact/contact.php" title="Contact">Contact</a>
   </td>


For better understanding pls visit me http://parti.dyndns.org/gallery/index.php

Parti

François Keller

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

parti02

Now it runs.


     <td class="top_menu_right_bttn">
        <a href="index.php?file=contact/contact" title="Contact">Contact</a>
     </td>


It is possible, i get problems with later using the Contact form or is it a good way??

Parti

François Keller

I don't understand, do you use the plugin to create the link or do you create the link in your theme.php file ?
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

parti02

I want to create the link in the theme.php, but a link like

<a href="plugins/contact/contact.php" title="Contact">Contact</a>

shows only a message "not in coppermine".
But now i thing it runs.

parti02

Thank you very much Sami and Frantz.
I can imagine my questions are not easy to understant, bad english and no experince with php.
I am a newbie.  :'(
I hope this is the last question.   :-\

contact.php

require('include/init.inc.php');
require ('plugins/contact/include/init.inc.php');
pageheader($lang_plugin_contact['name']);
    starttable(-1, $lang_plugin_contact['name']);
    ?>


I want to write text direktly in the starttable.
But every table i create with <td><tr>text etc. starts always with a few empty lines under the starttable?

You have a idea??

Parti


François Keller

Quote from: parti02 on December 09, 2006, 07:05:52 PM
I want to create the link in the theme.php, but a link like

<a href="plugins/contact/contact.php" title="Contact">Contact</a>

shows only a message "not in coppermine".
But now i thing it runs.

The plugin create this link, your problem is to explain after what menu link you will put the contact link
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

We have one issue per thread policy , respact th rules please
BTW You have 4 <br/> tag under starttable function !, remove them and you'll be fine
‍I don't answer to PM with support question
Please post your issue to related board


jonesy

Hi there,

great plugin.
I noticed that the table is lower in the screen, than my other pages. Can I change that?
I would like to see it right under de submenu (like my other pages)

http://fotografie.jonesy.nl/index.php?file=contact/contact

Thnx

Jonesy

François Keller

Hi,
QuoteI noticed that the table is lower in the screen, than my other pages. Can I change that?
You're right, i haven't notice there before. I'm searchin why this happend, but i don't find of the moment.
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

jonesy

If you find it, i'd really like to hear from you.
I'm trying to find it too, but i also can't find it.

grtz

Muurvaren

Quote from: jonesy on February 03, 2007, 05:42:59 PM
If you find it, i'd really like to hear from you.
I'm trying to find it too, but i also can't find it.

Same here...

http://www.muurvaren.nl/index.php?file=contact/contact

Theme used is Reynolds/Chaoticsoul

Tried to rebuild the contact.php by using one of my own 'php-creations' (link.php) :-) But no go, so if someone has the time to look into this I would appreciate it!




Muurvaren

Quote from: Frantz on October 22, 2006, 11:27:36 AM
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

Nice one!

Just a small 'problem', as already mentioned by others and myself. The form is positioned to low. With the help of the Developer Toolbar I reviewed the generated source code.
As you can see in the attached image, there are four <br> under the line '<!-- Start standard table -->'. I'am not sure if this is the problem but could you find the time to look into this (no hurry!)? Of course I searched the code myself but with no luck, not surprisingly as a PHP-noob  ;D


Muurvaren

Quote from: wadh on April 02, 2007, 06:00:22 PM
Just a small 'problem', as already mentioned by others and myself. The form is positioned to low. With the help of the Developer Toolbar I reviewed the generated source code.
As you can see in the attached image, there are four <br> under the line '<!-- Start standard table -->'. I'am not sure if this is the problem but could you find the time to look into this (no hurry!)? Of course I searched the code myself but with no luck, not surprisingly as a PHP-noob  ;D

Never mind!
Still a noob but I found it myself  :)

remove <br/> on line 46 (contact.php)
remove <br><br> on line 49
remove <br> on line 63

As you can see for youre self at
http://www.muurvaren.nl/index.php?file=contact/contact


jonesy


François Keller

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

rubenix

Does somebody know how to show the browser time instead of the server time on the email??

Ie. It shows on '10/07/2007 at 07:08' and I would like to add the timezone difference depending on where the user who send me a comment is based.
My server is based in NY time and I'm in Europe...I thought that the plugin would catch the coppermine time, but catching the server time instead.

Something like grabbing the computer time of the sender, any ideas?? completely new in php
If somebody knows how to grab the coppermine time would be fine  ;)

Thanks in advance guys!