Thanks for everyone involved. I appreciate the info. Especially, eoc_Jason.
Those scripts saved me a lot of time.
I had to recreate much of the final sphinx.php file from the original file and the followup posts. So I thought I'd post my final edit so people can build on it.
I took the sphinx.php file from orban
https://vborg.vbsupport.ru/showpost....&postcount=387
Applied these changes:
sort_search_items changes from the bottom of the post by eoc_Jason
Fixed a
Problem with asserts in sphinxapi.php
Added only the 64-bit Unpack fix detailed here. If you aren't on the 64-bit system, you prob can remove this function. I didn't add/change the rest of ALanJay's changes as I wasn't sure what they were for.
One problem for was the Coventry variable that seems to be causing causing errors:
Quote:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/sphinx.php on line 125
|
that didn't seem to affect the search results.
NOTE: I added error_reporting(0)
as did mute at the beginning to simply surpress these errors as I didn't find another solution. If anyone has a solution for this, let me know. If you are testing this script out, you should remove that line to make sure it works before you surpress errors.
I didn't use
this code by mlx because I wasn't sure exactly what was added.
sphinxapi.php ignoring max matches limit set in sphinx.conf fix - again, wasn't sure if I needed to use it at the time.
config
my config is PHP 5.2.4 for php servers. Centos 5 64-bit for mysql. vbulletin 3.6.7.
arn