Plugin to get a result based on form checkbox
Plugin to get a result based on form checkbox
Plugin to get a result based on form checkbox
If you want to use the wp_category_checklist on pages that also non-admin users access. You have to include the following php: <? require_once(ABSPATH.’wp-admin/includes/template.php’); ?> Credit to Majick!
I have now tracked this down to the polylang plugin. When the plugin is active and ‘&lang=en’ is added to the URL, the $_POST variables are lost. If I disable the plugin, all is well. Since I want translations, I may have to use a different plugin for that. Can anybody help?
Post the form instead back to the same admin page you are coming from instead (basically using form action=”), then detect the form posting on that page (eg. if (isset($_POST[‘createdir’])), and then include the file that will actually process the request (eg. include(EASYDM_PLUGIN_URL.’generate-dir.php’);)
The Worflow of a creation form plugin goes something like this: (A) Data is submitted -> Data is placed into the WP database -> Data is handled -> Sending a notification via email and/or placement in the SalesForce database. Whereas work flow need to go something like this: (B) Data is submitted -> Data is … Read more
So I finally found the solution to the problem. It was in the validate.js function. I corrected the error by calling the outside functions of validate.js and jquerry: script type=”text/javascript” src=”http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js” script type=”text/javascript” src=”http://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.min.js”
By default no action url will mean that the form will be sent to the URL the page was loaded from. Once it is done, the code evaluating the shortcode is checking in the form was submitted and process it. This is not not a great way to write a from processing code, as the … Read more
Unfortunately there is no hook for above the fields (perhaps you might want to submit a patch/feature request on trac?) You’ll have to get by with JavaScript: <p id=”klantnr-field”> <label for=”klantnr”>Klantnummer<br> <input type=”text” tabindex=”20″ size=”10″ value=”” class=”input” id=”klantnr” name=”klantnr”></label> </p> <script> (function ( form ) { form.insertBefore( document.getElementById( “klantnr-field” ), form.childNodes[0] ) })( document.getElementById( “loginform” … Read more
Accessing files within WP installation directly is a bad practice. While you can implement a custom core load routine, it is fragile and impossible to reliably ship in public plugins. There are different approaches to form submission in WP. On of the most appropriate ones (if slightly underknown) is sending form to wp-admin/admin-post.php and using … Read more
Sending Messages Back to the Template After Processing?