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

XF 1.1 Linking to searches

Discussion in 'XenForo Questions and Support' started by ashkir, Jul 15, 2012.

  1. ashkir

    ashkir Active Member

    How can we link others to our searches on our forum? It seems they're given a unique id but they seem to not work for others.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. ashkir

    ashkir Active Member

    Kind of like the caching. That is neat! So for author can I use &author= ? How would threads be? search by author and list as threads?

    For example let's say I wanted to search node #7 for posts by 'ashkir' listed as threads... Would it be like this?

    index.php?search/search/&author=ashkir&node=7&display=thread
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. ashkir

    ashkir Active Member

    Thank you!
     
  6. ashkir

    ashkir Active Member

  7. ragtek

    ragtek Guest

    you'll have to change this
    PHP:
    // delete old searches
    $db->delete('xf_search''search_date < ' . (XenForo_Application::$time 86400));
    in XenForo_CronEntry_CleanUp
     
  8. ashkir

    ashkir Active Member

    Will this change allow us to link to other searches? It's very annoying when trying to link a search result and it does not work for anyone but the person whom searched.
     
  9. Digital Doctor

    Digital Doctor Well-Known Member

    Code:
    http://rpg-directory.com/search/search/?type=post&users=The+Mad+Hattress&group_discussion=1&nodes[]=418&nodes[]=85&nodes[]=81&nodes[]=76&nodes[]=73&nodes[]=70
    This works.
    Super Long but it works.
     
    Jake Bunce likes this.
  10. Digital Doctor

    Digital Doctor Well-Known Member

    Give an example of the search you want to share (use Xenforo as an example).
     
  11. ashkir

    ashkir Active Member

    We like to award some trophies for posting let's say 150 times in a specific group of nodes? Like Debater's Award for posting 40 times in the debate forum, we'd like them to be able to link to their search when applying for it.

    Or MyB Guest with 200 posts in our MyB forum, we'd love if they can link to the search. A lot of our members aren't that savvy at it and needs things to be explained, and some of us do too, as it can be confusing constructing a get link each time so we can just link to the searches.

    Edit: The caching system is fine. We're a large forum! It's just we want a better way to SHARE search results to someone else.
     
  12. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Digital Doctor is correct. You need to specify the node_ids separately in the URL:

    &nodes[]=418&nodes[]=85&nodes[]=81&nodes[]=76&nodes[]=73&nodes[]=70
     
  13. Digital Doctor

    Digital Doctor Well-Known Member

    I guess it should be renamed to &node ? :)
     
  14. ashkir

    ashkir Active Member

    Thanks! Is there a way to get the URL to give our members that get url so they can link to other people their searches? Instead of having to go through the hassle of manually figuring out how to edit that url?
     
  15. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Requires addon.
     
    ashkir likes this.
  16. ashkir

    ashkir Active Member

    Do you know if any addon like that exists? Or are we gonna have to save up to request for it?

    Thanks.
     
  17. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Request.
     
  18. Itworx4me

    Itworx4me Well-Known Member

    Jake,

    Does this still hold true for xenforo 1.4.4 ???
     
  19. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes.
     
    Itworx4me likes this.

Share This Page