Posts tagged Development
WordPress Google Form plugin v0.16 released
0This morning I uploaded a new version of my WordPress Google Form plugin. This update addresses the three items I noted in this post. I also expanded the Test Bed Form I have been using to develop and test the plugin. If you’re curious, I have added the form to a page on this site. If you run into a combination that isn’t working and I haven’t accounted for it in the test bed, please let me know and I’ll update my form.
I think I finally have Check Boxes working correctly. They were a challenge because how PHP (which WordPress uses) pass arrays of information and Python (which Google Forms use for processing) are very different. Thanks to a tip on the WordPress Hackers Mailing List to a utility called http://httpbin.org I was able to get my plugin to pass the parameters as Google expects them and everything seems to be working correctly. The update should appear in your WordPress Dashboard fairly soon.
wpGForm Bugs in v0.15
1I have been alerted to a couple of bugs in the current (v0.15) version of wpGForm that I am working on fixing.
- Select boxes do not retain their value when going back on multi-page forms. I’ve already fixed this problem in my development build.
- Check boxes are not passing their values correctly.
- Sometimes Radio buttons do not retain their values when going back on multi-page forms.
This third item is proving difficult to track down. It is odd that some questions with radio buttons work fine going back and forth between pages but others do not. If I can fix the check boxes this morning I will likely release an update that addresses the first two bugs and keep working on the third problem.
WordPress Google Form v0.15 released
0This morning I fixed the problem with the default settings which caused any of the settings which are on by default, to be on no matter what. Even when the user would turn them off, the plugin would ignore the user setting which was being saved correctly, just ignored being ignored by the during the default check.
I also finished removing the jQuery-Validate plugin as it is no longer used as well as a bunch of debug code and functions which are no longer used. Updates should appear on your Dashboard soon and it is already available for download in the WordPress plugin repository.
WordPress Google Form Bug with default CSS
0There is a bug with the current (v0.14) version of WordPress Google Form in that it will always load the default CSS that is shipped with the plugin. Using the setting to disable loading the default CSS is not saved so it is never turned off. I am looking into this issue and will post an update as soon as it is fixed.
Quick bump to v0.14 for WordPress Google Form
0While looking at a CSS styling problem for someone I encountered a minor bug on the Options page. The plugin wasn’t picking up the default options correctly and in some cases a PHP array index warning would appear on the Options page. This bug has been fixed and I’ve released v0.14. You can download it from the WordPress plugin repository or update it from the Dashboard.
WordPress Google Form v0.13 fixes “back” bug
0I have just committed v0.13 to the WordPress plugin repository. An update should appear in your WordPress Dashboard fairly soon. This update fixes a problem when using multi-page Google Forms which have radio buttons and check boxes on them. When the “Back” button was selected to view the previous page of the form, the previously selected values were not retained. This bug has been fixed and the “Back” and “Continue” buttons now work as expected.
wpGForm v0.11 beta update
9This morning I posted an updated wpGForm v0.11 beta release. This updated beta introduces two new shortcode attributes:
- title=’on|off’ – Show (default) or remove the Google Form title. The title is often redundant with the WordPress post or page title, this attribute will allow you to remove the title from the HTML displayed within the WordPress context.
- maph1h2=’on|off’ – Map H1 elements (usually just the title) on the Google Form to H2 elements. This allows you to retain the form title from the Google Form but map it’s H1 tags to H2 tags which prevents multiple H1 tags from appearing on the WordPress page (which I understand is an SEO no-no).
This build also includes default CSS definitions for div.ss-q-help classes. Why the help text appears adjacent to the question as opposed to on top of it is a question comes up pretty frequently. This CSS makes the output more consistent with how Google presents the form so I’ve decided it should be the default.
label.ss-q-help {
display: block;
}
I’ve also started removing debug and obsolete code.
WordPress 3.3 and WordPress Google Form?
0The answer is: I don’t know yet. WordPress 3.3 came out last night and I am just playing with it now. One of the key features of WordPress 3.3 is the inclusion of the complete JQuery UI library. This definitely affects wpGForm because I am loading one of the UI libraries that wasn’t previously included from Microsoft’s CDN. That will no longer be necessary (yeah!). I guess the question now is what to do about backward compatibility with older versions of WordPress.
Historically I’ve just put a stake in the ground and moved on but wpGForm is the first WordPress theme or plugin that I’ve done that has quite a few users so I’ll probably implement some sort of version detection and conditionally load the UI library from the CDN if running an older version of WordPress. A little more work for me but probably the right answer.
WordPress Google Form bug fix
4In the process of trying to solve the multipage Google Form problem, I found a bug with the “Confirmation” page. When a custom confirmation page isn’t supplied, the plugin is supposed to use the default Google conformation page. It currently isn’t, instead the page the form is on is rendered again. This is incorrect behavior and I’ve fixed it in my development thread and it will appear in the next release.
TwentyEleven Child Theme Learnings
0For the past week or so I’ve been playing around with a TwentyEleven child theme for a soccer team project I am fiddling with. For the most part I’ve been able to accomplish what I want using a TwentyEleven child theme. Using TwentyEleven as a base for this project isn’t bad but it certainly is different than using a theme framework (e.g. Thematic).
Last week I had posted that I didn’t care much for how the header was constructed and after working with it for a week, I still feel that way. TwentyEleven has a number of filters and actions but customizing the header isn’t among them. I also find it very odd how the default behavior is to use featured images as the header if there is one available. I can’t imagine what application that turns out to be a good thing. Fortunately it is fairly easy to disable that and set your own header.
TwentyEleven has a showcase template that is sort of like a magazine style but not exactly. For it to work it requires that posts be tagged as “sticky” which also means they appear at the top of the list in a standard chronological post view. What I really wanted was functionality like the showcase for the latest articles and let that view become the default home page. I was able to accomplish this by copying the showcase.php file from TwentyEleven into my child theme directory and calling it latest-news.php. I now have a new template that shows the five latest posts using the featured content slider which TwentyEleven has built into the showcase template.
Now that I have it working, I am finding that images in the showcase template are wonky and adding a featured image really messes things up. I am sure I’ll figure it out but the decisions the theme designer(s) made in this area are odd. It’s like having an 80% solution but the other 20% will take a while to work out.
The one thing I am pretty happy with though is how well it seems to work on my iPad and I didn’t have to do anything special to make it work. It just works which is nice. Once I am done with this I will probably turn it into a generic soccer theme but for now it is really only useful for CASL teams.
Recent Comments