1 (edited by drakan88 2015-02-06 19:39:37)

Topic: Problems with creating new form plugin

Hi, I am having problems with creating new form plugin.
I am a real novice at php, so I used already existing plugin "contact form" and I just changed options inside it to fit my needs.

Here what I've done:
- duplicated contact plugin by Awilum (which is also installed).
- I changed the name of folder, and files inside to fit me new for example: "signform". (And files inside /install/ ../signform.plugin.php

Everything work except:
- on my page, there is no message saying "message sent", the page refreshes itself and nothing, well still the message is sent to me, but user is not recieved with this nice message. Im not sure if this appears in original plugin, but all errors like "wrong captcha / fill required fields etc are working but not the "message sent".

Can anyone help?

2 2015-02-07 00:23:17

Re: Problems with creating new form plugin

@drakan88

Yes! Use target path to display thank you or try to include this php code on it, its simple but it works just fine:

<?php echo "Your mail has been sent successfuly! Thank you for your contact!"; // write your message here as you wish ?>

wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

Re: Problems with creating new form plugin

wormsunited in what file and which line I have to past it ?

Re: Problems with creating new form plugin

@drakan88

The file is on your plugin and it needs to be in the index.view.php of your created plugin wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website