A common problem with input forms is that users get impatient and click the submit button twice. This can lead to double (or triple, or quadruple!) form submissions, which can really mess things up (especially if you’ve added a billing step to your form!) Stopping it can be surprisingly complex, but here’s a simple piece of browser script that will prevent most users from making multiple submissions with Gravity Forms. Continue reading
Remove all meta boxes from WordPress post edit form
When you create a custom post type in WordPress, you can ask register_post_type to generate a default UI for managing your post type in the admin. When you edit your post type, WordPress generates the familiar post editor, just for your post type. You can change it through a variety of hooks, e.g. if you want to add some new meta boxes. But what if you don’t want any meta boxes, not even the standard ones? Continue reading
NextGEN Dowload Gallery now supports nggtags
NextGEN Gallery has a shortcode nggtags that lets you dynamically build galleries and albums from images that have tags; Photocrati talk about it briefly on their working with albums page. One thing the shortcode doesn’t do, however, is let you specify a different gallery template for displaying the tagged images. Never being one to shrink from a challenge, my latest release of NextGEN Download Gallery offers a solution. Continue reading
WordPress admin_init hook and the elusive typenow
In my quest to bring an object oriented separation of concerns to my WordPress plugins, I tend to separate the administration of each custom post type into its own class. I do this by looking at the global variable $typenow after the admin_init action is fired. But $typenow isn’t always set after admin_init, so I have to improvise a little. Continue reading
eWAY integrations for WooCommerce, Events Manager, Another WordPress Classifieds Plugin
The eWAY Payment Gateway plugin now has integrations for WooCommerce, Events Manager Pro, and Another WordPress Classifieds Plugin with support for Australian customers of eWAY. And it’s still free! Continue reading
Using jQuery’s ajaxSend event to change an AJAX request
Customisation of web software sometimes requires that you get it to pass around some additional information whenever it makes a page request. Often, putting that information into a cookie isn’t appropriate, so you try to squeeze it into the page query parameters, or form post data through hidden fields. But what if the software makes AJAX requests from jQuery? Luckily, jQuery can help you intercept AJAX requests so that you can customise them too. Continue reading
Custom post names for WordPress custom post types
When you edit a new post, page, or an object of a custom post type, WordPress generates a slug or post name that will be used in its permalink. It derives the post name from the title you gave it. Sometimes, however, you want the post name to have a little more information in it. Continue reading
I thought title text improved accessibility. I was wrong.
David Ball has written a follow-up to his excellent article “Things I learned by pretending to be blind for a week“, where he discusses why title text is not as useful as we’ve been led to believe, and what to do about it. Please, if you haven’t already, go and read his article: “I thought title text improved accessibility. I was wrong.“
WordPress is_ssl() doesn’t work behind some load balancers
WordPress has a function is_ssl() that it uses to check whether a page is loaded with the HTTPS protocol, so that it can use the same protocol to load scripts, stylesheets, and other assets. It relies on the web server giving it a couple of clues, but when your website is hosted behind a load balancer, those clues aren’t always available. In particular, websites hosted by Network Solutions get no clues at all when pages are loaded over HTTPS. Continue reading
Stored payments and Beagle anti-fraud protection for eWAY payment gateways
My eWAY payment gateways for WP e-Commerce and Gravity Forms now have some new features that should help some merchants building e-commerce solutions. Continue reading