vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Quick search pre-populated results: give your visitors quick thread suggestions (https://vborg.vbsupport.ru/showthread.php?t=222001)

TimberFloorAu 08-31-2009 10:28 PM

any suggestions as to where autocomplete.php file is ?, not in either of the 2 download packages we have d/l

ibautocommunity 08-31-2009 10:39 PM

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.

TimberFloorAu 08-31-2009 11:11 PM

Quote:

Originally Posted by ibautocommunity (Post 1877454)
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:

ibautocommunity 08-31-2009 11:21 PM

Quote:

Originally Posted by TimberFloorAu (Post 1877474)
Your instructions mate not mine ;)

You are right, I am wrong. AUTOSEARCH.PHP; not AUTOCOMPLETE.PHP in the forums root. Sorry about that.

ibautocommunity 09-01-2009 04:07 PM

Quote:

Originally Posted by TimberFloorAu (Post 1877474)
Your instructions mate not mine ;)

Hi Steve, did you ever try this out?

funkmeister 09-02-2009 12:29 AM

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.

l_amhed 09-19-2009 11:45 PM

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 ??

0ptima 09-30-2009 11:43 PM

Any feedback from members on this hack?

0ptima 10-03-2009 10:07 PM

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"


0ptima 10-04-2009 12:42 AM

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.


All times are GMT. The time now is 02:19 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.01129 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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