Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quick search pre-populated results: give your visitors quick thread suggestions Details »»
Quick search pre-populated results: give your visitors quick thread suggestions
Version: 1.00, by ibautocommunity ibautocommunity is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.4 Rating:
Released: 08-27-2009 Last Update: Never Installs: 33
Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

Product video demo: http://www.youtube.com/watch?v=eOUq4Z6R7xI

This product integrates with the quicksearch drop down box in NAVBAR; and suggests popular threads while the visitor is typing in search keywords.

Read INSTRUCTIONS.txt for installation instructions.

NOTICE: To fine-tune and configure "relevancy threshold" you must edit /includes/cron/autocomplete-generate.php file. Default installation assumes you have a big discussion forums and suggests only threads which have more than 1000 replies or 1000 views. Edit this number, the query looks like this:

PHP Code:
// This query needs to be customized on a per site basis
$ac_sql "SELECT * FROM "TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' ORDER by views DESC"

Download Now

File Type: zip autocompsearch1.zip (52.6 KB, 327 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-31-2009, 10:28 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any suggestions as to where autocomplete.php file is ?, not in either of the 2 download packages we have d/l
Reply With Quote
  #23  
Old 08-31-2009, 10:39 PM
ibautocommunity's Avatar
ibautocommunity ibautocommunity is offline
 
Join Date: Jan 2009
Location: Los Angeles, CA
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no autocomplete.php; there is autosearch.php, that goes into your forum root folder; then the cron job .php file goes into the /forumroot/includes/cron folder; that's it in terms of file uploads.
Reply With Quote
  #24  
Old 08-31-2009, 11:11 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ibautocommunity View Post
There is no autocomplete.php; there is autosearch.php, that goes into your forum root folder; then the cron job .php file goes into the /forumroot/includes/cron folder; that's it in terms of file uploads.
Your instructions mate not mine

Quote:
STEP #2) Configure writeable directory path in PHP files. To do this, open AUTOCOMPLETE.PHP and /includes/cron/AUTOCOMPLETE-GENERATE.PHP files and FIND & REPLACE:
Reply With Quote
  #25  
Old 08-31-2009, 11:21 PM
ibautocommunity's Avatar
ibautocommunity ibautocommunity is offline
 
Join Date: Jan 2009
Location: Los Angeles, CA
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TimberFloorAu View Post
Your instructions mate not mine
You are right, I am wrong. AUTOSEARCH.PHP; not AUTOCOMPLETE.PHP in the forums root. Sorry about that.
Reply With Quote
  #26  
Old 09-01-2009, 04:07 PM
ibautocommunity's Avatar
ibautocommunity ibautocommunity is offline
 
Join Date: Jan 2009
Location: Los Angeles, CA
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TimberFloorAu View Post
Your instructions mate not mine
Hi Steve, did you ever try this out?
Reply With Quote
  #27  
Old 09-02-2009, 12:29 AM
funkmeister funkmeister is offline
 
Join Date: Oct 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, got this working after uninstall/reinstall...

Apostrophes (') are not working for me in Safari/Firefox (pc & mac). I'm seeing question marks (?) instead. Also, and maybe this is how it's written for now; but it doesn't work in individual forum's search boxes (or sub-forums) for me, but only in the main forum (home) search box (navbar area)...is this as it should be for now? If so, a request...please add it's functionality everywhere!

I assume we can change highlight colors etc via CSS (the grey and white color scheme, navy blue highlight etc)? If so, where?

Other than that, it's very cool and works for me now. Thank you.
Reply With Quote
  #28  
Old 09-19-2009, 11:45 PM
l_amhed l_amhed is offline
 
Join Date: Dec 2001
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi ! Surely a dumb question but, what is the difference between your hack and the live search hack : https://vborg.vbsupport.ru/showthrea...ghlight=search ??
Reply With Quote
  #29  
Old 09-30-2009, 11:43 PM
0ptima 0ptima is offline
 
Join Date: Feb 2002
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any feedback from members on this hack?
Reply With Quote
  #30  
Old 10-03-2009, 10:07 PM
0ptima 0ptima is offline
 
Join Date: Feb 2002
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added this hack to my forum and tweaked the SQL

Following will select only open threads.
PHP Code:
$ac_sql "SELECT * FROM "TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' AND open = '1' ORDER by views DESC"
Following will select threads that are not in forums 1,2,3,4,5.
PHP Code:
$ac_sql "SELECT * FROM "TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' AND forumid NOT IN ('1', '2', '3', '4', '5') ORDER by views DESC"
Following will select threads that are only in forums 1,2,3,4,5.
PHP Code:
$ac_sql "SELECT * FROM "TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' AND forumid IN ('1', '2', '3', '4', '5') ORDER by views DESC"
Following will select only open threads that are not in forums 1,2,3,4,5.
PHP Code:
$ac_sql "SELECT * FROM "TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' AND open = '1' AND forumid NOT IN ('1', '2', '3', '4', '5') ORDER by views DESC"
Reply With Quote
  #31  
Old 10-04-2009, 12:42 AM
0ptima 0ptima is offline
 
Join Date: Feb 2002
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this hack be changed so it populates the search box with popular thread titles and not take you directly to the thread?

For example, if someone searches for "Tickle me Elmo", I get a few suggestions. However, when they click on the suggestion, they are taken to very old threads. I would like the thread title to populate the search box and then a regular search is performed based on which auto suggested thread title that was selected.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07176 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete