Simple C(ontact) Plugin (fork of p01-contact) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: Simple C(ontact) Plugin (fork of p01-contact) (/showthread.php?tid=6004) |
Simple C(ontact) Plugin (fork of p01-contact) - entuland - 2014-03-25 Hello everybody, I am opening this thread to create a home for anybody who might like to use my (temporary) fork of the popular p01-contact plugin created by Nicolas Liautaud. I liked that plugin a lot, and being that I needed to improve it for my own needs, I decided to share my improvements with the community. You can download it from this page: http://get-simple.info/extend/plugin/simple-c/784/ The main improvements are about being able to set the form language on a per-form basis and the ability to translate the plugin using other standard plugins, since it has been converted to comply with the i18n guidelines of GetSimple. Thanks a lot Nicolas for sharing p01-contact and thanks also to Chris for sharing GetSimple! Update: the improvements I've made to p01-contact are going to be added directly to p01-contact or eventually to its successor, FormSimple. That means that this "Simple-C" plugin will not see any new version unless anybody needs a quick and dirty fix or small further improvement. 2014-05-16 BUG notice: you MUST use the per-form language tag form - that is, use (% simplec: formlang = en %) instead of (% simplec %) - as the setting in the plugin settings page seems to get ignored. Hopefully going to get fixed soon. Bests, Francesco RE: Simple C(ontact) Plugin (fork of p01-contact) - Pompeii - 2014-04-20 Having problems changing the {simple-c//name} to just name all of the other titles do the same thing. thank you RE: Simple C(ontact) Plugin (fork of p01-contact) - phpman - 2014-04-30 Hi, same problem if i use my own config like this: Code: select! "Anfrage" = "Kontaktanfrage" selected | "Terminanfrage", name!, phone!"Telefon", email!, message, captcha, askcopy, subject => Anfrage Any solution to fix this ? RE: Simple C(ontact) Plugin (fork of p01-contact) - entuland - 2014-05-16 Hello everybody, sorry for the very late reply. There is a bug in my code, the language setting in the plugin page seems to get ignored. The workaround is to specify the language on a per-form basis, using this tag form: (% simplec: formlang = en %), (% simplec: formlang = fr %) and so forth. As soon as I get a bit of spare time I'll fix this bug, and I'll continue working on this branch of FormSimple, which is the designated replacement both for the original "p01-contact" and for my "Simple C(ontact) " temporary version. Bests, Francesco RE: Simple C(ontact) Plugin (fork of p01-contact) - phpman - 2014-10-13 short question, currently i use p01-contact form but i like to switch now and i need some instructions what i have to do to change the display with css for this plugin. If i use old p01 css it does not work andy sample css code for this plugin existing RE: Simple C(ontact) Plugin (fork of p01-contact) - entuland - 2014-10-13 (2014-10-13, 04:33:56)phpman Wrote: short question, currently i use p01-contact form but i like to switch now and i need some Hello, the CSS classes and IDs of the markup generated by my plugin are different from those of p01-contact, and any CSS you may be using will not work for that reason. Since my plugin does not ship any CSS file, and p01-contact doesn't either, I think you must be using some other CSS customized for your current installation. In my markup all occurrences of the string "p01-contact" are replaced by "simple-c", to solve that you should try replacing that string in your CSS rules accordingly, and then you should get your styling back. For example, if you have a rule that adds a border around the form like this: Code: form.p01-contact { you should change it like this: Code: form.simple-c { Also, don't forget that there still is a bug in my code that doesn't let it use the default language of your GetSimple installation, for that reason you need to use, in your pages, a string like this: Code: (% simplec: formlang = en %) instead of this: Code: (% simplec %) Hope the above helps you fix the problems. If it doesn't, please feel free to post your further questions along with any additional detail. Bests, Francesco RE: Simple C(ontact) Plugin (fork of p01-contact) - m101 - 2014-12-06 I'm trying to use this in a site's sidebar. I have the following code in my page template: Code: <!-- component start --> The other sidebar contents are displayed but the form isn't. What am I missing? RE: Simple C(ontact) Plugin (fork of p01-contact) - m101 - 2014-12-09 I solved my problem by creating a page containing the shortcode and including it with getPageContent('myPage') as described in this post. RE: Simple C(ontact) Plugin (fork of p01-contact) - wakh - 2015-03-03 look at my fork http://get-simple.info/extend/plugin/simple-contact-fork/914/ if you planing to improve your plugin and implement all my features i can delete it sorry, my english not so good to read forums and having a long discussions may be you speak russian? RE: Simple C(ontact) Plugin (fork of p01-contact) - wakh - 2015-03-03 even more features you can add manually in file label.php, after PHP Code: $class = 'form-group has-feedback'; // class for label parent <div> PHP Code: switch ($this->type) { types can be: PHP Code: 'name' if you have some problem try to replace all strings like PHP Code: $class = 'btn btn-primary btn-lg'; PHP Code: $class = ''; RE: Simple C(ontact) Plugin (fork of p01-contact) - gessler - 2015-03-24 Hi, I got a problem, if the Name field has something like ê ç é or similar I get weird headers like Você on the from: field of my mail client. Is there any way to fix that? RE: Simple C(ontact) Plugin (fork of p01-contact) - gessler - 2015-03-31 After days trying finally found something: I deleted line 285 $tmp = htmlentities($tmp, ENT_QUOTES, 'UTF-8'); and line 806 $subject = '=?utf-8?B?' . base64_encode($subject) . '?='; now working perfect. RE: Simple C(ontact) Plugin (fork of p01-contact) - 0zz - 2015-08-17 I get error Quote: Error : no message was sent.What can be the reason? I tried "p01-contact" and it's fork "Simple C(ontact)" and even fork of this fork.. Well, looks like hoster disabled mail() function for some reason.. What other solution can be used for setting a message form on the GS website? RE: Simple C(ontact) Plugin (fork of p01-contact) - 0zz - 2015-08-18 After surfing a while I found several solutions to send messages via smtp function. However, due to poor PHP skills i cannot use this function in this plugin. Can someone help? Here I am attaching function for smtp: Code: <?php this code should be saved and called instead of mail() function.. But how? ( RE: Simple C(ontact) Plugin (fork of p01-contact) - wakh - 2015-08-18 Are you sure that the function mail() is blocked? I have some problem because of changed rules by my hosting provider. To solve it I was just add "admin email" in control panel. also my provider doesn't support any mail function like sendmail() or SMTP. But if you are sure you can change send_mail() in p01-contact.php you need fo find block: if(!$this->settings('debug')) { ... } else { and make some changes to string $status = mail($targets, $subject, $content.$footer, $headers); my PHP skills not so big and I need a lot of time to test it. so I will not sorry for my lang RE: Simple C(ontact) Plugin (fork of p01-contact) - 0zz - 2015-08-19 Thank you, wakh! Yes, I've talked to hoter and they are not going to change their policy, they asked to use smtp instead of mail() and my php skills are also not good enough, to use smtp function instead of mail(). Can someone edit this plugint to make it work? Thank you! |