vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Anyone got any search hacks? (https://vborg.vbsupport.ru/showthread.php?t=10762)

netspark 03-08-2001 02:31 AM

I am putting together an investment website, and I would like to have a simple search input box that will search only the titles of each thread. For example, I will have a thread for each stock and the title of each thread will be the stock ticker symbol (MSFT, YHOO, IBM, etc).. I would like to have a single input box that would allow a user to enter only the stock symbol and redirect the user to the search results, or directly to the thread itself. Does anyone know what the HTML code might look like? I've tried a few things and none seem to work..
Thanks for any help!!
Mike

03-08-2001 03:10 AM

You don't need a hack for that, just make a form and send to the search, not hard to do at all ;)

03-08-2001 03:26 AM

conan

If I send a form to search.php, what parameters would I need to pass to only search the "thread title"? Right now search.php performs a full-text search, if I'm not mistaken..

I would like an end result like this:

....../board/forumdisplay.php?thread=MSFT

but I believe Vbulletin uses threadid and forumid or something like that?

I guess I'm not really familiar with mySQL enough to know how to send a form with parameters that will filter only the "thread" titles.

I guess I'm looking to do something similar to http://www.RagingBull.com where there is an input box on the left, and you type a stock symbol and it will search only the Message Board titles (not a full-text search)..

If anyone has a little extra time and can give me a code example of how I can do this, I would be EXTREMELY grateful

Thanks!
Mike

the_sisko 11-06-2002 03:24 PM

I'm also looking for the parameters I need to sent to action=simplesearch to search e.g. for "house".
When I tried to do it like this I came up with no result:
search.php?action=simplesearch&query=house

any idea?

Steve Machol 11-06-2002 06:44 PM

This thread is over a year and a half old. It would have been better to start a new one. :)

the_sisko 11-06-2002 07:02 PM

Yeah, but I did what I always did: Search and if there is a post ask ;)
So does anyone got an idead which variables I need to pass over?

Erwin 11-07-2002 03:00 AM

To search titles, just choose "titles only". You can customize your search quite a lot now. With my Search This Thread hack, you can even restrict your search to 1 thread. I suspect this question was written with an old vB version.

Kianor 11-07-2002 02:59 PM

Create a module in html than use theese commands for the module properties:

1) Module settings:
action "simplesearch"
action1 "simplesearch"
booleanand "yes"
forumchoice "-1"
searchdate "-1"
searchin "subject"

2) Module fileds settings (submit button):
name: query
max char long: what do u wish
no restrictions

3) Action: search.php - Mode:POST

Byezz


All times are GMT. The time now is 05:52 PM.

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.02860 seconds
  • Memory Usage 1,724KB
  • 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)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