View Single Post
  (#1) Old
ClemsonJeeper
Forum Sprinter
 
Default Configuring Sphinx Search Integration with Forum Runner - 04-27-2010, 12:56 PM

Introducing Sphinx Search Integration for Forum Runner!

For those forum owners that run larger forums that rely on Sphinx searching, we now have support for this.

It will require a little manual intervention on your part, though.

First, you will need to install version 1.3.0 (or later) of the Forum Runner add-on. It will automatically detect the presence of a properly installed Sphinx add-on. It is assuming you used the installation instructions for Sphinx located at:

http://www.vbulletin.org/forum/showthread.php?t=127868

If this is indeed the Sphinx add-on you use, follow the instructions below to get it working with Forum Runner.

You will need to edit search_sphinx.php in your main forum directory and make a couple of modifications.

Search for:

Code:
               // error handling
                if ($res===false)
                {
                    eval(standard_error($cl->GetLastError()));
                }
and replace it with:

Code:
               // error handling
                if ($res===false)
                {
                    if (defined('IN_FRNR')) {
                        $errors[] = $cl->GetLastError();
                        return;
                    }
                    eval(standard_error($cl->GetLastError()));
                }
Next, search for:

Code:
                        ");
                        $searchid = $db->insert_id();

                        $vbulletin->url = 'search.php?' . $vbulletin->session->vars['sessionurl'] . "searchid=$searchid";
                        eval(print_standard_redirect('search'));
and replace it with:

Code:
                        ");
                        $searchid = $db->insert_id();

                        if (defined('IN_FRNR')) {
                            return;
                        }
                        $vbulletin->url = 'search.php?' . $vbulletin->session->vars['sessionurl'] . "searchid=$searchid";
                        eval(print_standard_redirect('search'));
Save the file and you should be good to go.

Fulltext searches through Forum Runner will use Sphinx instead.

If you have any issues, feel free to post them up in the "Bug Reports" section.


Rob J
Forum Runner Developer

http://www.forumrunner.net