vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Link to a specific search criteria (https://vborg.vbsupport.ru/showthread.php?t=210790)

Powlo 04-09-2009 09:41 PM

Link to a specific search criteria
 
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:
Code:

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&child forums=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. ;)


All times are GMT. The time now is 08:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01019 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete