Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetSimple Contact
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. Rolleyes
Hope it works for you.

So long,
moped


Attached Files
.php   getsimple_contact.php (Size: 53.96 KB / Downloads: 47)
Reply
(2014-09-12, 17:57:28)moped Wrote: Hope it works for you.

It sure did, it works like a charm Big Grin
Thank you very much.

Cheers, NielsK
Reply
Hello

i have changes for the Template-class ...

class.template.php
search for:
PHP Code:
$this->content[$key] = $value
replace with
PHP Code:
$this->content["[SC_$key]"] = $value
serach vor:
PHP Code:
foreach ($this->content as $key => $value) {
            
$tagToReplace "[SC_$key]";
            
$output str_replace("[SC_$key]"$value$output);
        } 
replace with
PHP Code:
$output str_replacearray_keys($this->content), array_values($this->content), $output ); 
have fun
Smile
Reply
Hello R.Muetterlein,
can you tell me what it is good for?
Before I study the code.
Reply
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.

mfg
Smile
Reply
Hi
like like the form so much I''d d like to use it twice-
is it possible to put the form on 2 different pages and send to different recipients?
Reply
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.
Reply
Hi
I'm pretty new with Get-simple
i just used this one in the latest version (3.3.5 ) and works like a charm !

Just wanted to say many many thanks for this wonderfull plugin

Mandy
Reply
(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.
Reply
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. Rolleyes
Please test it if it fits your needs and give a short feedback.

So long,
moped


Attached Files
.php   getsimple_contact.php (Size: 54.48 KB / Downloads: 14)
Reply
(2015-04-28, 17:37:39)moped Wrote: 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. Rolleyes
Please test it if it fits your needs and give a short feedback.

So long,
moped

Thanks again, works a treat
Reply
Hi,

This plugin is simply G R E A T!

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)
Reply
It looks like the jQuery line is broken in your site:

Code:
<script>window.jQuery || document.write('<script src="http://agtis.org.mk/plugins/getsimple_contact/js/jquery-1.10.2.min.js"></script>')

The line in getsimple_contact.php should look like this:

Code:
$frontend->set('FE_JQUERY', '<script>window.jQuery || document.write(\'<script src="' . $SITEURL . 'plugins/getsimple_contact/js/jquery-1.10.2.min.js"><\/script>\')</script>');


So there is missing the closing
Code:
</script>');
Is the line in the php file on your server as it should look like?
Reply
Translated to Polish language. OP, can you include it in your plugin?
Reply
for some reason do not work error messages for file attachments
Reply
when you try to upload a file larger errors appear
Code:
Warning: POST Content-Length of 154802548 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

Warning: Cannot modify header information - headers already sent in B:\home\01.aa\www\admin\inc\common.php on line 18
and written in the language file without messages
Reply
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?
Reply
both sites with captchas for some reason did not work yesterday, I was worried, it is now both sites work.
Reply
(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.
Reply
http://npostudy.php.xdomain.jp/drupal/in...ch4DK2r1_k

you can see ') at the top of the contact page. What's this?
Reply
Looks like the same broken jQuery line like here.
Reply
By chance, is there a way to make this submit, and not refresh the page? (Currently, when submitted, it reloads the page)

Not sure if I'm missing something that could do this, or is this something that I need to configure?
Reply
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.


Attached Files
.php   el_GR.php (Size: 10.29 KB / Downloads: 1)
Reply
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?
Reply
http://www.opencaptcha.com/
opencaptcha is dead
Reply




Users browsing this thread: 1 Guest(s)