Support » Plugins » [Plugin: TDO Mini Forms] Category checkboxes instead of dropdown?

  • Is it possible to show the categories as checkboxes rather than a dropdown? I dug into the widget code a little and saw that there are options for the widget, but I don’t see a place to set them in the admin screens, and I don’t know what the allowed values might be or I’d edit the widget itself. I also found the if($options['display'] == "dropdown" ) statement, but it appears that the else just repeats the dropdown list instead of showing something else.

    If this hasn’t been implemented yet, I’ll volunteer to work on it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • the_dead_one

    (@the_dead_one)

    Hi sillybean, no it hasn’t been implemented. It’s something on my TODO list for a while, but I end up working on the “big” features all the time.

    OK. If you don’t mind, I’ll work on it this weekend. I found the poorly-documented WP function that spits out the checkbox list, so the trick will be integrating that with the options.

    … oh, how I hate reference sites that use frames. The function is wp_category_checklist.

    I think I’ve got it. Download the altered copy of tdomf-categories-widget.php here. You should also add #categorychecklist li { list-style: none; } to the forms CSS in tdomf-your-submissions.php — otherwise the checkboxes will be bulleted.

    the_dead_one

    (@the_dead_one)

    Excellent. I will look at this over the week and try and integrate it into the next release! (currently updating all the widgets to support the form hacker…)

    the_dead_one

    (@the_dead_one)

    Hi sillybean, I’ve integrated your checkbox list however there seemed to be a few problems with it – it didn’t seem to do preview or update the post (I’ve fixed this). I’ve had to extend it also to support the “form hacker” stuff. But by extending it, it was trivial also to support radio buttons (for single select). Anyway, thanks for the work and it’ll be making an appearance in the next release. (Can I credit you by linking to http://www.sillybean.net?)

    Sure, thanks! Glad the fixes were easy.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: TDO Mini Forms] Category checkboxes instead of dropdown?’ is closed to new replies.