[answered] How to disable indexing?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
zdr
Registered User
Posts: 63
Joined: Wed May 29, 2002 5:37 pm

[answered] How to disable indexing?

Post by zdr »

I've searched and searched and I can't find what I need..

basically, I want to FULLY stop my phpbb from indexing (adding on to search_wordlist and search_wordmatch) - yes, I don't want any search capabilities on my site. Thanks in advance!
Last edited by zdr on Thu Dec 19, 2002 5:39 am, edited 1 time in total.
zdr
Registered User
Posts: 63
Joined: Wed May 29, 2002 5:37 pm

Post by zdr »

anyone? if possible, could someone at least let me know what to search under if there is already a solution out there? thanks
zdr
Registered User
Posts: 63
Joined: Wed May 29, 2002 5:37 pm

Post by zdr »

anyone? maybe a mod needs to be made for this... if no one answers, I guess i'll just set off in two weeks and make a mod.
zdr
Registered User
Posts: 63
Joined: Wed May 29, 2002 5:37 pm

Post by zdr »

Ok the answer is quite simple. For anyone wanting to disable indexing of every word from posts, simply find in the includes/functions_post.php the line:

add_search_words($post_id, stripslashes($post_message), stripslashes($post_subject));

and comment it out. That will prevent any word in anyone's post from being indexed and thus keeping your db from hogging all that space.
jazz
Registered User
Posts: 125
Joined: Sun Sep 01, 2002 11:08 pm

Post by jazz »

add_search_words($post_id, stripslashes($post_message), stripslashes($post_subject));


i couldn't find rthis line in my functions_post.php page.
im using 2.0.4 do u kno where i can find this?
zdr
Registered User
Posts: 63
Joined: Wed May 29, 2002 5:37 pm

Post by zdr »

it should be after:

Code: Select all

 	$sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message',  bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id";
 	if (!$db->sql_query($sql))
	{
		message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
	}
tOnk3r
Registered User
Posts: 427
Joined: Fri Aug 13, 2004 1:00 am
Location: London
Contact:

Post by tOnk3r »

sorry to dig up an old post but i think this will solve my problem...

i just want to know what is meant by "comment out"??
tOnk3r
Registered User
Posts: 427
Joined: Fri Aug 13, 2004 1:00 am
Location: London
Contact:

Post by tOnk3r »

and also upon looking i see i dont have includes/functions_post.php
but i do have incudes/functions_fetchposts.php are they the same?
Locked

Return to “2.0.x Support Forum”

cron