Quote:
Originally Posted by orban
Why does intval() break any code?
|
That is a very good question. I suspect I am not using it 100% correctly but in the simplest example line 32
$sphinx_groups2 = $sphinx_userids;
to
$sphinx_groups2 = intval($sphinx_userids);
Seemed to cause odd behaviour.
I was also seeing if using it in:
if (!empty($userids)) $sphinx_userids = explode(',', $userids);
else $sphinx_userids = array();
if ($forumchoice != '') $sphinx_groups = explode(',', $forumchoice);
But wasn't sure I could use it in this context.
My problem is that not entirely understanding the logic of what is going on here (but learning as I go along). I'm not sure why I am seeing the "Warnings" yet they generate perfect results.
Depending on the results each of the elements "SetGroups" "SetGroups2" SetGroups3" generate these warning errors but because these are arrays I need to build the array with integers and I assume not numerics that are text(?)
Quote:
Originally Posted by orban
And maybe the $Coventry variable is something else in vB 3.0...
|
It is possible - from talking to my system admin it allows you to not allow users to do certain things. After thinking about this I don't think it is an issue as we don't use it. So for me removing it solves the problem that the second element of the if statement that checking if the user has been sent to Coventry isn't nescessarry.
Quote:
Originally Posted by orban
I'm really sorry I can't be of any further assistance here but I'm not running vB 3.0 
|
No problem without your code we wouldn't have been able to do this at all. So thanks so much.
I assume you don't see any of the assertion errors in vB 3.6 ?
Anyway as you can see (if you register on our site) the Sphinx search does work and very smoothly and quickly and great solution to off looading the search function out of the main database.
One final question. Everything runs very quickly and smoothly except one search "Find Threads Started by User" which is extremly slow. Do you have the same problem with 3.6?