View Full Version : Link to a specific search criteria
Powlo
04-09-2009, 09:41 PM
How would i be able to link to a specific search
Example, say i had a TV Progs forum and i had a new page with a list of the most popular tv programmes and i a user was to click one of the programme titles it would retrieve all entries of that prog from a specific website.
Something like search.php?do=TV_Prog+Forum
Thanks in advance
Powlo
04-11-2009, 08:15 AM
Any ideas for this?
I come up with this so far but i cant work out how to get it to search a specific forum.
forum/search.php?do=process&titleonly=1&forumchoice=148&query=lost
Lynne
04-11-2009, 02:54 PM
If you look at the Forums page here and click on a link to get all threads in that forum, you'll see this url:
https://vborg.vbsupport.ru/search.php?do=getdaily&forumid=1&childforums=1&saveprefs=false
You can figure out what to use by looking at the code in the search.php page. All the variables you may use are defined in the appropriate section for your search.
Powlo
04-11-2009, 04:54 PM
Thanks for your help Lynne, dont know why i didnt think of looking in search.php.
Anyway i still cant get it to search a specific forum for specific text.
I tried this in several different orders..
/search.php?do=process&titleonly=1&forumid=18&childforums=1&saveprefs=false&query =lost
The Text is 'Lost' to be searched in forum id 18
This results in a site wide search for 'Lost'.
Any further tips?
Lynne
04-11-2009, 05:14 PM
Looking at search.php leads me to believe you should use forumchoice[] instead of forumid like the example I had shown you. The example was for do=getdaily and it uses different variable names than do=process (for some unknown reason).
Powlo
04-11-2009, 06:52 PM
yeah i tried forumchoice aswell with above string but still no joy.
Lynne
04-11-2009, 08:03 PM
did you try forumchoice or forumchoice[] (like I wrote)? There is a difference.
Powlo
04-11-2009, 08:55 PM
Ahh missed that, i do appologise and thanks again. I'll try it out now... and it works. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.