Discussion in 'XenForo Pre-Sales Questions' started by AndreaDB, Aug 20, 2014.
Is possible to search all threads with a particular prefix?
Search Forums > Search Threads and Posts
I mean without having to enter the keyword.
All the threads in all the forums that have a particular prefix.
Well you didn't say that.
You can filter the threads in a particular forum by clicking on the prefix shown next to a thread title. This will then show only those threads in that forum with that prefix.
From what I can tell, it's not possible to search all forums for a threads with a prefix without using a keyword.
In vBulletin the link search.php?do=process&nocache=1&prefixchoice=PREFIXNAME search all forums for a threads with the prefix "PREFIXNAME" without using a keyword
Do you have any idea how I can implement something like this on xenForo?
Anyway, I think this is a basic function of research, it is strange that there is no on xenForo.
It is not possible to do this?
Not by default. A prefix isn't considered a significant enough limit so there are potential performance issues (particularly with the default search). That said, in some cases (likely only with Enhanced Search), if you enter "*" in the keyword you can bypass some limits.
Thanks Mike, I tried to use "*" with the advanced search of this forum ad it work.
The URL of my search is http://xenforo.com/community/search/5611196/?q=*&t=post&o=relevance&c[prefix]=35 but it does not work if I change the prefix's ID. Can you explain me how can I make a search URL with prefix's ID as variable? Thanks
Those are the search results. The actual search URL needs to be built using information from the initial search form.
If you have a license, you should associate your account with your license and post in the support forum for more detail.
I haven't a license. I just want to understand how search works on the direct search URL.
It is possible to build a search as a GET request. You can see some discussion here: https://xenforo.com/community/threads/linking-to-searches.33874/#post-385323 You would need to identify the fields you want to include in the search and see how they're represented in the form, then build up the parameters for the request based on that.
Thanks! I understand how it works.
For example this is a link for search all threads with prefix "XF 1.4": http://xenforo.com/community/search/search/?keywords=*&type=post&group_discussion=1&prefixes=35
Separate names with a comma.