Home » Forum
  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.


No announcement yet.

changing default radio buttons

  • Filter
  • Time
  • Show
Clear All
new posts

  • changing default radio buttons

    Hi I wanted to be able to change the radio buttons default. I mean, the two radio buttons the user can check to search ALL words or ANY words. I want the ALL words button to be checked by default, not the ANY button. I thought I had found the script that controls this, and changed it, but it didnt seem to work.

    PHP Code:
    // 1 if we are searching for ALL terms
    // 0 if we are searching for ANY terms (default)
    if (isset($_GET['zoom_and']))
    $and intval($_GET['zoom_and']);
    elseif (isset(
    $DefaultToAnd) && $DefaultToAnd == 1)
    $and 1;
    $and 0
    I reversed the $DefaultToAnd == 0. then changed $and = 0 else $and = 1

    Can you guys point me to the tutorial that shows how to do this? or tell me how. Thanks!

  • #2
    You don't need to edit code.

    In the search page configuration window, check the box,
    "Default to match all search words"


    • #3
      ahhh ok didnt see it...I looked, guess I overlooked that option! Thanks!