ZenphotoCMS Forum
Contact Plugin - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Contact Plugin (/thread-3765.html)

Pages: 1 2


Contact Plugin - code - 2008-09-15

So.... How do I use this plugin? I enabled it, what now? lol... Is it on the default theme anywhere? Do I have to edit some text somewhere? Since its a nightly build, i assume there isnt much information on it yet...




Contact Plugin - acrylian - 2008-09-15

This plugin is new and prints a mail form. As with all optional plugins you would have add it's function to your theme file yourself where you wish to display it. It's not in the documention yet, but it's all documented in the file itself (it's always..:-)). Also you need to set some options.
Best make a custom page called contact.php for example and call it there (more about custom pages on our theming tutorial).




Contact Plugin - code - 2008-09-15

thanks




Contact Plugin - flu - 2008-09-16

Well, I have'nt seen that ! Thank you Acrylian !
I'm actually running a [2222] version and I can't install the last nightly because of this problem :
http://www.zenphoto.org/trac/ticket/758
So I have several questions :

  1. Does this plugin depends on new functions added till the [2222] one ?
  2. Does it work with multilingual options ?
  3. Will your ZenPage plugin be able to display forms like that ?

Thank you for your time.




Contact Plugin - acrylian - 2008-09-16

  1. Sorry, you need a current nightly because the plugin uses a new function for radio boxes in the options that was added at the same time.
  2. Yes.
  3. Yes, basically. Zenpage will feature a "codeblock" section for each page/news article where you can enter php functions like this directly on the admin to be displayed for that specific page.

But you can use it right now with a normal custom theme page, too.




Contact Plugin - flu - 2008-09-16

Great ! Thank you for your answer : now I understand why it can't work for me right now.
I'll just wait the next nightly which fix the bug above to try it (thanks to sbillard).

If you need testers for your ZenPage plugin, no problem.




Contact Plugin - flu - 2008-09-17

Hi Acrylian.
I was finally able to upgrade my [2222] ZP to a [2469] version.
I made a custom page based on archive.php and paste into it :

I enabled the plugin but when I choose which field of the form to display (in the options) and save it, it seems that the script doesn't keep them : when I reload the plugin options in my browser the radio boxes are still virgin.
Do you have any idea about how to fix it ?
Should I have a look in a particular section of my database to check it ?

Thank you for your time.




Contact Plugin - acrylian - 2008-09-18

That should not happen. I will take a look.




Contact Plugin - olihar - 2008-09-19

the same is happening to a site I am working on at the moment. as Soon as I made a change to the radio boxes I never managed to save.

On the side note... as the plugin is there is a small spelling mistake.

"Thanks for your message. A copy has been sent to your provided e-mail adress for your own records."

there is a d missing in Address. just a very small side note.




Contact Plugin - acrylian - 2008-09-19

Please try the nightly. The option handling for radioboxes is new and had a bug that now should be corrected.

Thanks for the typo report. I will correct that (in German it's "Adresse", I sometimes confuse the spelling of similar words..:-)). Since that text is just a suggestion you can of course that in the options, too.




Contact Plugin - olihar - 2008-09-19

Perfect. I had the nightly from 2 days ago with that problem, tried with the newest nightly and it works like a charm.... or that's what I thought I go through the whole process of filling in info and sending, click Confirm to say I am sure I want to send the message. I get the message..

"Thanks for your message. A copy has been sent to your provided e-mail address for your own records."

However I never receive any email, I have an email set in the email address in the plugin settings.




Contact Plugin - acrylian - 2008-09-19

Hm, last time I tried that on my server it worked.. I will test it again....




Contact Plugin - acrylian - 2008-09-19

We think it may probably be related to your server setting. Some servers prohibit SMTP sends and requrire mail to come from an account. The contact forms sends it directly via php. It works on my server but maybe not on yours. Maybe you can check that?




Contact Plugin - olihar - 2008-09-19

ok thanks.. going to check that out tomorrow, I might have to do some changes on the server if I am allowed to do so.




Contact Plugin - olihar - 2008-09-20

I got in touch with my hosting company(SurpassHosting).

The put up a small test and it runs fine.

I will send code here from the test files to include everything. They uploaded 3 files.

Sendmailtest.php

`

Sendemail Script

Date:

Thank You : ( )

Attention:

Message:

Next Page

`
tesingcontact.php

`

`
testcont.php

`

Email Form




Contact Plugin - acrylian - 2008-09-20

I guess somehow the internal e-mail-function Zenphoto and this plugin use does not work for you. You find that in line 274 of zp-core/lib-utf8.php in case you want to take a look. I did not write that, so I currently don't have any idea. We will investigate that of course.




Contact Plugin - olihar - 2008-09-20

I tried one thing I forgot about... I tried to tick the box for sending email to the admin as soon as a comment had been written. That works like a charm. I get an email with the comment right away.

I should be the same send_mail code as the other one, right?

If so might there be a bug in the plugin?

There is nothing else I need to put into the custom page then.
``

thanks again for your time Malte




Contact Plugin - acrylian - 2008-09-20

No problem, of course I want the things that I make to work as expected!

Actually the comments use a little different mail code. There the request goes first through another function before sending through the function that the plugin uses. I will test it again on my server soon.




Contact Plugin - olihar - 2008-09-20

great thanks, if you or other find something I will be ready to test it.




Contact Plugin - flu - 2008-09-23

Hi.
I've just upgraded my gallery to the last nightly, now I can choose the fields that I want to appear but the captcha one still stay virgin even if I select it.

This is quite strange, I must have forgotten something.