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

XF 1.4 Direct search link?

Discussion in 'XenForo Questions and Support' started by Floren, Sep 2, 2014.

  1. Floren

    Floren Well-Known Member

    In vBulletin I had an option to perform a full search with a link, without filling a search form.
    For example, I want to search for:
    without entering any information into search form. How can I do this in XenForo?

    Thank you for your help.
     
  2. Mike

    Mike XenForo Developer Staff Member

    Floren likes this.
  3. Floren

    Floren Well-Known Member

    @Mike, quick question about Resources only search. I'm trying to use this:
    Code:
    /search/search/?t=resource_update&keywords=importer&o=relevance&c[title_only]=1
    https://xenforo.com/community/searc...keywords=importer&o=relevance&c[title_only]=1

    This returns all Forum and Resources results. How can I return only the Resource results?
    Also, is there a better/more compact format of the above query (i.e. instead of keywords=, use k=)?

    Thanks for your help, everyone.
     
    Last edited: Sep 2, 2014
  4. Mike

    Mike XenForo Developer Staff Member

    In this case, I'm not sure where the t/o/c values are coming from. They're not submitted with the search; they're for the form itself.

    You can look at Chrome's network tab to see the values that are submitted:
    Code:
    keywords: test
    users:
    date:
    categories[]:
    child_categories: 1
    order: relevance
    type: resource_update
    
    (You can omit some of those, certainly the blank ones.)
     
    Floren likes this.
  5. Floren

    Floren Well-Known Member

    @Mike, I apologize for my lack of knowledge. Is this the proper way to see the options in Network?

    IMG_02092014_210902.png

    I can't seem to find anywhere your posted variables (i.e. type: resource_update).
     
  6. Mike

    Mike XenForo Developer Staff Member

    On the right track, but use the advanced search form.
     
    Floren likes this.

Share This Page