Hello Niels,
here's attached the modified getsimple_contact.php.
I added some comments beginning with // -- to see my changes.
The syntax is like I posted before, the double quotes are relevant to find the value to set.
There might be better regex to use, but it's not my world.
Hope it works for you.
I have slightly changed the assignment of variables to remove the FOR loop. Primary make my changes to the code easier to read (since it must be less "done") and faster / more effective, because the unnecessary loop is eliminated.
Hello Cavetroll,
you can use this Plugin on different pages.
If you want to send it to different recipients, you have to edit some lines in the getsimple_contact.php, only if you know how to do this.
(2015-04-08, 21:54:40)moped Wrote: Hello Cavetroll,
you can use this Plugin on different pages.
If you want to send it to different recipients, you have to edit some lines in the getsimple_contact.php, only if you know how to do this.
Hi moped
thanks for the response
my coding ability is limited so the getsimple_contact.php looks complicated, so not sure what i would need to add or change.
2015-04-28, 17:37:39 (This post was last modified: 2015-04-28, 17:39:37 by moped.)
Hello Cavetroll,
I added this function to the contact plugin, you can find it attached.
The syntax can be found here.
If you use all parameters, it will look like this:
[sc_form set_subject="your subject" set_template="special_template" set_recipient="admin@test.org"]
Only with different email:
[sc_form set_recipient="admin@test.org"]
If you don't use any parameters, it will work like before.
Please test it if it fits your needs and give a short feedback.
I added this function to the contact plugin, you can find it attached.
The syntax can be found here.
If you use all parameters, it will look like this:
[sc_form set_subject="your subject" set_template="special_template" set_recipient="admin@test.org"]
Only with different email:
[sc_form set_recipient="admin@test.org"]
If you don't use any parameters, it will work like before.
Please test it if it fits your needs and give a short feedback.
But, I have a kind of a stupid problem. It shows ') characters when I call the form :/
I also noticed this happens only on real hosted pages, but not exactly always. On the other hand, when the the same exact website is hosted locally on my computer this is never the case (at least so far). All tested sites are hosted at the same hosting company, and I have pages where this happens, and pages where it doesn't. All configurations are the same on the cPanel of those hosting packets. I guess this can be some kind of conflict with some other plugin maybe, but I'm not sure. On an other website this was happening, and then out of nowhere, the problem ceased to exist. :/
If needed, I can give you a list of used plugins on the website(s).
An example where it happens is http://agtis.org.mk/contact/ (I'll keep it on English version, and I'll try to insert it with php on the MK version)
Tested with Google Chrome and Firefox (different versions)
2015-07-20, 17:48:33 (This post was last modified: 2015-07-20, 17:48:54 by Oleg06.)
(2015-07-20, 16:46:42)moped Wrote: The upload limit is defined in your php.ini like
Code:
post_max_size=20M
upload_max_filesize=20M
What's your problem with the captcha? You get an error?
Whatever the size of the file you have not installed, the visitor will be able to upload even larger, and then the error appears again, and the text of the language file intended for display when an error none pops up.
Looking for greek language for the plugin. I did create a file el_GR.php and placed it in the lang folder. I also changed i18n_merge($thisfile_sc) || i18n_merge($thisfile_sc, 'en_US'); to i18n_merge($thisfile_sc) || i18n_merge($thisfile_sc, 'el_GR');
The language has changed but I need it to follow the UTF-8. Where can I set this for both the frondend and backend pages.
You don't have to change this i18n_merge line. It takes the language from the GetSimple settings.
If your el_GR.php fils is in the GetSimple Contact lang folder, it will be found and used.
What is your issue about UTF-8? I don't understand the problem, sorry.
Did you save your language file in UTF-8?