7

I assume that EE's native file upload functions use the Upload class, but what exactly does the Upload class do to validate and sanitize? Does it check MIME type using some sort of actual file analysis, or does it simply rely on what the browser reads it as? The Upload class uses the $_FILES array and it does use $_FILES[]['type'], but we do some ...


4

This is far from obvious how to achieve in EE, and it's not really documented at all. A long while ago I wrote up on Stack Overflow how we (used to) do this in Store, and this was in turn based on how SafeCracker (now Channel Form) did it. However, I've since figured out an even cleaner way to achieve it (Channel Form, FreeMember, and many other add-ons use ...


3

You don't need to run this through EE at all if you don't want to. Simply create your PHP script outside of EE's templates and have the form post its data there. I did something very similar to what you need recently to send data from a contact form to a CRM system. They supplied a ready made PHP script (which used CURL) to get the data to the CRM. I just ...


3

You're using the wrong hook. Try using entry_submission_start and/or publish_form_entry_data Update: Abort the channel entry publish process? Head-scratcher: manipulating new/updated entries after submission


3

You could do this by using the inline_error_return="" parameter: http://www.solspace.com/docs/freeform/form/#inline_error_return For example, you could craft a special URL when inline errors are encountered, eg: return="template_group/template/errors_found" Then, in your template, use a simple conditional to display your "has errors" message: {if ...


3

That's the native EE forum template. I suggest using the jQuery Validation plugin http://jqueryvalidation.org/. You can add the code to the forum header template. I don't know the header template name offhand but it should be in the same directory. <form id="registration" action=""> <input id="email" type="email" name="email" required> &...


2

As far as I can see you have not assigned an event to validateForm(). Nothing is executing this query, not so strange that it's not working. For example Ise jQuery to assign the function to you submit button. Something like this: $(“input[type=submit]”).click(function(){ ValidateForm(); });


2

I never used Solspace Freeform, but, looking at the docs, I had one idea. form:ATTRIBUTE_NAME= This parameter allows you to control any form attribute for the form in your template. Simply replace ATTRIBUTE_NAME with an attribute name such as id, name, class, onsubmit, etc, and specify a value for that attribute. You can specify this parameter multiple ...


2

The simple answer would be to go through the add-on code and replace any ampersands with html entities but I'm guessing you've already tried that? I don't think there will be a quick way to do it other than doing that. I would say that you really don't need to worry about it. Validation is a guide, not a requirement. Especially at this level. Are you ...


2

I have come across an old safecracker extension that seems like it may be able to be modified for use with channel forms to handle this, as well as also protecting any other fields from being tampered with that are not explicitly allowed by the extension: http://devot-ee.com/add-ons/safesharpener It may be possible to just try editing the hook name to the ...


2

From OP in comments above: Just wanted to follow up and take credit for a simple mistake that monopolized more time than I'll ever admit. Turns out in my zoo form I had "new_row_0" in one of my hidden fields where it should have been "row_new_0".


2

Ok I figured out what is the problem. This is the correct, pubDate format incase someone else encounters this problem in the future... <pubDate> {gmt_entry_date format="%r"} </pubDate> I spent 2 hours for simple thing like this... Might save someone else the time in the future.. You're Welcome


2

Take a look at the Code Ignitor Validation Helper. You can use this within PHP on an EE template, it really is as easy as this (example from the CI Docs), just replacing $this with a reference to EE : function gmail_only($value){ return ( stripos(strtolower($value), '@gmail.com') !== false ); } ee()->load->helper(array('form', '...


1

I'm curious which scripts you're specifically referring to? There's possibly a few different things that Freeform might insert, but it sounds to me like the one that would be most likely to interfere would be the "Disable Submit Button on Form Submit" feature. This can actually be disabled by going to EE CP -> Add-ons -> Freeform -> Settings -> General And ...


1

Looks like you're looking for the Forn Validation library that is inherited from CodeIgnitor. What you seem to be trying to do is set the validation rules at thes same time as setting up the form, whereas what you should do is set up the form as you do, but remove the $missing_field_validation setting as we don't need the validation rules yet! Instead we ...


1

The User Message templates are the native behavior of EE, but there are some addons that you can use to work around them. A 3rd party addon like Free Member https://github.com/expressodev/freemember can display errors like required fields inline to avoid EE's user message templates. Beyond that if there is a specific message you are trying to avoid from ...


1

Perhaps you can give the Forms JS Validation plugin a try http://devot-ee.com/add-ons/forms-js-validation. Example: {exp:forms_js_validation:init} {exp:forms_js_validation:add selector=".contact" input_element_wrapper=".input_container" require_class="require" } {exp:freeform:form form_name="contact_form" template="contact_email" form:class="...


1

From what i understand from your question you need Ansel: https://buzzingpixel.com/software/ansel-ee We had some issues getting this to work with Zurb Foundation though. We implemented a solution with the help of https://fengyuanchen.github.io/cropperjs/


Only top voted, non community-wiki answers of a minimum length are eligible