Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Magenta Cuda

    (@magenta-cuda)

    Not in the current version. Again I never thought about that as being wanted. Thanks for the feedback. I can make it an option in the administrator’s interface in the next version. I have no immediate plan for another version. Basically, I have run out of ideas for new features. Is there anything else you can think of that would make the plugin better? I would like to introduce some significant new features with a new version to justify the upgrade process to most users. Anyway, I will add this option at sometime hopefully with some other new features.

    Plugin Author Magenta Cuda

    (@magenta-cuda)

    After some thought I have decided not to add this option because it would make an already complex interface more complicated with an option that I think most users will not find useful. The user already has a lot to consider to configure this widget and I don’t want add to this effort for something that most users will not use. Although configurability is a good thing it also adds complexity and I really like simplicity. I am personally frustrated when I see software with a long list of configuration options and one of my design goals is to minimize this kind of thing.

    I am sorry but I don’t think this option would be a good design decision.

    mc

    Thread Starter pepcru

    (@pepcru)

    Ok, Magenta, nothing happens. Now I try to do…

    thanks

    Plugin Author Magenta Cuda

    (@magenta-cuda)

    If you are comfortable with changing source code you can try:

    In file ‘search-types-custom-fields-widget.php’ change line 1041 from:
    $and_or = $_REQUEST['search_types_custom_fields_and_or'] == 'and' ? 'AND' : 'OR';
    to:

    #$and_or = $_REQUEST['search_types_custom_fields_and_or'] == 'and' ? 'AND' : 'OR';
    $and_or = 'OR';

    This forces the search condition to ANY.

    change lines 125-131 from:

    <div style="text-align:center;margin:10px;">
    Results should satisfy<br>
    <input type="radio" name="search_types_custom_fields_and_or" value="and" checked><strong>All</strong>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="radio" name="search_types_custom_fields_and_or" value="or"><strong>Any</strong></br>
    of the search conditions.
    </div>

    to:

    <!--
    <div style="text-align:center;margin:10px;">
    Results should satisfy<br>
    <input type="radio" name="search_types_custom_fields_and_or" value="and" checked><strong>All</strong>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="radio" name="search_types_custom_fields_and_or" value="or"><strong>Any</strong></br>
    of the search conditions.
    </div>
    -->

    That should keep the and or box from being generated.

    After looking at the code for this I saw some errors so I will be making a maintenance release soon and unfortunately you will need to again manually change these lines if you upgrade.

    Thread Starter pepcru

    (@pepcru)

    Thanks Magenta, it’s OK!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘invalidate Results should satisfy’ is closed to new replies.