1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Forum search results

Discussion in 'General XenForo Discussion and Feedback' started by optrex, Jul 30, 2011.

  1. optrex

    optrex Active Member

    Looking at the results from searching the forums...the results return each post where the search term is met. So in some instances you get long lists returning the same topic. (see example image)

    Screen Shot 2011-07-30 at 10.44.39 PM.png

    Is it possible to get a setting where the topic will only display the once, no matter how many posts the search term matches?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Rigel Kentaurus likes this.
  3. optrex

    optrex Active Member

    Thanks. Can that be set as the default action by the administrator, rather than users going to advanced search eat time?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    There are no options related to that.
     
  5. optrex

    optrex Active Member

    OK, thanks. Is it something that could be done with a database edit?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Not the database no, you would need to edit the server file(s).
     
  7. optrex

    optrex Active Member

    Brogan, you're dangling a carrot for me now ;)
    So its possible with file edits. Would you be able to provide me with some edited code to insert in the relevant places please? Just purchased yesterday and still finding my way around.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Hmm, it's not something I've looked into so it will take some time to check what needs to be changed.

    In the meantime I suspect Jake or a.n.other may be along shortly with a solution.
     
    optrex likes this.
  9. optrex

    optrex Active Member

    I'd love to get this setup before I send out my membership invites. If anyone can help, it would be greatly appreciated.

    ps If someone could correct my title typo, that would be handy too please ;)
     
  10. optrex

    optrex Active Member

    I'm still really keen to look into this, if anyone can offer some help pls?
     
  11. CyclingTribe

    CyclingTribe Well-Known Member

    It won't help from the main search box (top right) but you can edit the search template so it is checked by default - so if someone clicks the search navigation link it'll be set:

    Edit template -> search_form_post

    Find:

    <dd><label for="ctrl_group_discussion"><input type="checkbox" name="group_discussion" id="ctrl_group_discussion" value="1"{xen:checked '{$search.group_discussion}'} /> {xen:phrase display_results_as_threads}</label></dd>

    ... and add the checked option:

    <dd><label for="ctrl_group_discussion"><input type="checkbox" name="group_discussion" checked="checked" id="ctrl_group_discussion" value="1"{xen:checked '{$search.group_discussion}'} /> {xen:phrase display_results_as_threads}</label></dd>

    Hope this helps a bit.

    Cheers,
    Shaun :D
     

Share This Page