getting rebuild search 2.2.2 to wrok with phpnuke

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   getting rebuild search 2.2.2 to wrok with phpnuke
steef
CZ Newbie
steef has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Feb 12, 2006
0.00 posts per day
Posts: 9
Points: 434
   
I need the rebuild search 2.2.2 mod, because my phpbb searchtables are empty.

MOD Name: Rebuild Search
Author: chatasos
MOD Description: This mod allows admins to index all posts in their forum by rebuilding the search tables. Rebuild progress can be stopped and resumed at a later time and some time/db statistics are displayed while rebuilding.

MOD Version: 2.2.2 (Updated 02/18/06)
Installation Level: Easy
Installation Time: ~ 5 Minutes

Download File: [ Register or login to view links on this board. ]
File Size: 35585 Bytes

But it doesn't work with PHPnuke. I tried modifying some code, but that was no succes. Can anyone help please?

Thanks,

Steef



Back to top Reply with quote
#2   re: getting rebuild search 2.2.2 to wrok with phpnuke
steef
CZ Newbie
steef has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Feb 12, 2006
0.00 posts per day
Posts: 9
Points: 434
   
OK, I figured it out after a few hours;

change in admin/admin_rebuild_search.php

//
// Let's set the root dir for phpBB
//
$no_page_header = true;
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
require($phpbb_root_path . 'includes/functions_search.'.$phpEx);
require($phpbb_root_path . 'includes/functions_admin_rebuild_search.'.$phpEx);


into

//
// Let's set the root dir for phpBB
//
$no_page_header = true;
$phpbb_root_path = "../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
require($phpbb_root_path . '../../includes/functions_search.'.$phpEx);
require($phpbb_root_path . '../../includes/functions_admin_rebuild_search.'.$phpEx);


And use this SQL instead of the original:

CREATE TABLE `search_rebuild` (
  `rebuild_session_id` mediumint(8) unsigned NOT NULL auto_increment,
  `start_post_id` mediumint(8) unsigned NOT NULL default '0',
  `end_post_id` mediumint(8) unsigned NOT NULL default '0',
  `start_time` int(11) NOT NULL default '0',
  `end_time` int(11) NOT NULL default '0',
  `last_cycle_time` int(11) NOT NULL default '0',
  `session_time` int(11) NOT NULL default '0',
  `session_posts` mediumint(8) unsigned NOT NULL default '0',
  `session_cycles` mediumint(8) unsigned NOT NULL default '0',
  `search_size` int(10) unsigned NOT NULL default '0',
  `rebuild_session_status` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`rebuild_session_id`),
  KEY `end_post_id` (`end_post_id`)
);



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum