vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I've "broken" the vB search - and need help (https://vborg.vbsupport.ru/showthread.php?t=91381)

MacMorag 06-30-2005 12:16 PM

I've "broken" the vB search - and need help
 
I have a very hacked vB3.0.7 board. Somewhere along the way I have broken the search.

e.g. I create a new thread (or post). If I then subsequently search for a very specific word which is contained in the thread (or post), nothing is returned by the search. So either a/ the words aren't being written to the search index when the thread/post is created, or b/ the search function is not correctly querying the search index.

I have tried emptying/rebuilding the search index, then doing the same search. This time it will always work, so I'm sure the problem is that the words aren't being written to the search index when the thread/post is created.

I've had a look at newthread.php and newreply.php and can't see any hacks there.

Is there any other file which I may have hacked which can cause this problem?

Thanks for any pointers.

Princeton 06-30-2005 12:39 PM

compare your template with the original ... my guess is that you have improper code or you removed a few hidden input (filelds)

MacMorag 06-30-2005 12:59 PM

Hi Joe,

I've checked both newthread.php and newreply.php and both are fine. However, I have found a hacked file which both use: includes/functions_newpost.php

But I can't see any amendments near to where the words are added to the search index. I guess I have renamed a variable elsewhere, and functions_newpost.php hasn't been amended to reflect the new variable name.

Posting this here, in the hope that someone may recognise the symtoms and point me in the right direction to the solution.

Princeton 06-30-2005 01:14 PM

the first place you should check is the template (html) ... ie. make sure the form hasn't been modified

MacMorag 06-30-2005 02:12 PM

Thanks again Joe. This time I'm listening ;)

I just guessed that it was a php problem somewhere. But...

I do know that I DID make a change to the newthread template - so I'm now off to see exactly what I did wrong.

Thanks again.

Iain


All times are GMT. The time now is 04:58 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.01581 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
  • (5)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