vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Search Thread (https://vborg.vbsupport.ru/showthread.php?t=45142)

Erwin 10-28-2002 10:00 PM

Search Thread
 
Search Thread - by Erwin Loh
-----------------------------

This hack will add a "Search This Thread" search box at the bottom of threads (similar to the "Search This Forum" search box at the bottom of Forum Display).

Should be useful for loooooooooooooong threads, especially for a forum like this one. ;)


Demo
-------

This hack is installed here at vB.org - just use the Search This Thread box at the bottom right hand corner of this page. :)


Features
-----------

1. Only posts from the thread will be searched.
2. Uses that standard searchindex table.
3. Uses the same vB search algorithms.
4. This will add NO extra queries to your forum.
5. Uses the standard search and forum permissions set by you.


Installation
------------

1. Running 1 database query
2. Making 2 changes to showthread.php
3. Making 6 changes to search.php
4. Making 1 change to template "showthread"
5. Adding a new template "showthread_searchthread"

Enjoy!

Please click install if you want updates to this hack!

Dr. Erwin Loh

I've updated the installation text file to make things clearer, and made the search box visible to guests as well. :)

Erwin 10-29-2002 12:32 AM

Demo
-------

This hack is installed here at vB.org - just use the Search This Thread box at the bottom right hand corner of this page. :)

Screenshot removed since it's not needed.

Vile 10-29-2002 12:32 AM

Nice hack, I'll be insatlling this.

Also, just noticed you're a Mod Erwin:)
Congrats. Keep up the good work:)

DrkFusion 10-29-2002 12:50 AM

Ah yes, very ueful for threads with huge number of pages.

Very good Job, erwin, and thank
-ARUNAN

N9ne 10-29-2002 12:56 AM

Brilliant hack, I'll install in a few hours, 'tis 3am and I'm likely to blow up my forums :-/

Anyway, I've wanted this at vb.org for a while now, for easier searching, I will definitely install this on my forum.

Question: Does it use the same searchindex as the one that comes standard with vB?

wolfe 10-29-2002 12:57 AM

great work d00d i have been waiting for this for ages :D

also d00d can u get vB to install it here :D and put it in vB3 :D

X-Fan 10-29-2002 01:12 AM

Cool hack Erwin! I was actually wondering if a hack like this existed after searching for something in a 100+ page thread on my site!

Cheers! :)

X-Fan 10-29-2002 01:22 AM

Oops, got a database error whilst doing a search on this thread at my site:

http://x-mencomics.com/xfan/forums/s...threadid=12350

Quote:

Database error in vBulletin 2.2.8:

Invalid SQL:
SELECT
post.postid, thread.visible
FROM
post
WHERE
post.visible=1 AND thread.visible=1 AND post.threadid=12350 AND post.postid IN (35257,47955,48991,51518,72677,102641,147732,14794 4, ... ,0) AND 1=1
ORDER BY
post.dateline DESC,post.dateline DESC
LIMIT 0,15

mysql error: Unknown table 'thread' in field list

mysql error number: 1109

Date: Tuesday 29th of October 2002 06:23:50 PM
Script: http://x-mencomics.com/xfan/forums/x...by=&sortorder=
Referer:

WoodiE 10-29-2002 01:25 AM

OMG, this needs to be installed here!

-WoodiE

Erwin 10-29-2002 01:34 AM

Quote:

Originally posted by N9ne
Question: Does it use the same searchindex as the one that comes standard with vB?
Yes.


All times are GMT. The time now is 04:57 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.01206 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete