ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

HELP: How do I search articles posted by all authors?

August 30, 2007 5:21pm

Subscribe [1]
  • #1 / Aug 30, 2007 5:21pm

    eeuser

    10 posts

    Hi!
    I am using the \ sample search provided by the EE userguide.

    How do I search articles posted by all authors?

    Here si my sample code .. Thanks

    <fieldset class=“fieldset”>
    <legend>Search By Author Name</legend>
    <select name=“member_name” >
    <option value=“ALL” >All</option>
    <option value=“Win Thin” >Win Thin</option>
    <option value=“Meg Browne”>Meg Browne</option>
    <option value=“Marc Chandler” >Marc Chandler</option>

    </select>
    <div class=“default”><input type=“checkbox” class=“checkbox” name=“exact_match” value=“y”  /> {lang:exact_name_match}</div>

    </fieldset>

  • #2 / Aug 30, 2007 5:23pm

    Lisa Wess

    20502 posts

    Hi, eeuser - I’m not quite following your question. If you use the default search template,s then they search all entries regardless of username by default.

  • #3 / Aug 31, 2007 6:58pm

    eeuser

    10 posts

    the orignal search field for member name had this,

    <!————————-<fieldset class=“fieldset”>
    <legend>{lang:search_by_member_name}</legend>

    <input type=“text” class=“input” maxlength=“100” size=“40” name=“member_name” style=“width:100%;” />
    <div class=“default”><input type=“checkbox” class=“checkbox” name=“exact_match” value=“y”  /> {lang:exact_name_match}</div>

    </fieldset>————->

    I modified and replaced a drop down list where the user can select a member name from the list, whihc work fine. I wanted to add the option to search article posted by all the members and that doesnt seem to work.

    <fieldset class=“fieldset”>
    <legend>Search By Author Name</legend>
    <select name=“member_name” >
    <option value=“All”>  All Member</option>
    <option value=“Win Thin” >Win Thin</option>
    <option value=“Meg Browne”>Meg Browne</option>
    <option value=“Marc Chandler” >Marc Chandler</option>

    </select>
    <div class=“default”><input type=“checkbox” class=“checkbox” name=“exact_match” value=“y”  /> {lang:exact_name_match}</div>

    </fieldset>

    My search field is almost same as this example in user guide http://expressionengine.com/docs/modules/search/advanced.html

  • #4 / Aug 31, 2007 9:15pm

    Lisa Wess

    20502 posts

    You just need to leave that field blank, so an option to be blank in the setting will search all authors.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases