vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   "Forum Title Search" Hack (https://vborg.vbsupport.ru/showthread.php?t=13988)

netspark 04-13-2001 03:11 PM

Hi All,
I was able to write a hack that performs a search of Forum Titles. This is useful for anyone with a large number of forums that need to be searched. It is demonstrated on my board at http://www.InvestorsRow.com -- just type MSFT into the search box on the left and it will take you to the forum with MSFT in the forum title.
If anyone needs this hack, just let me know.
Mike

chrispadfield 04-14-2001 08:34 PM

could be useful, if not to much trouble send it might way...

chris@freeontheweb.com

netspark 04-15-2001 12:56 AM

Chris,

In case you ever need the ability to search a forum title, here's what I did:

On my site to search for stock symbols in the forum titles, I made a copy of "forumdisplay.php" and named it "stockdisplay.php" and added this just below "require('./global.php');"

$iforums=$DB_site->query("SELECT forumid FROM forum WHERE title like '".$Symbol."'");
$iforum=$DB_site->fetch_array($iforums);
$forumid = $iforum["forumid"];
unset($iforum);
$DB_site->free_result($iforums);

Symbol is what is passed from the search form.

Hope it helps you if you ever need it!


All times are GMT. The time now is 05:27 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.01895 seconds
  • Memory Usage 1,709KB
  • 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
  • (3)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