The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#161
|
|||
|
|||
Quote:
Quote:
|
#162
|
|||
|
|||
Well having tried that:
$cl->SetGroups2 ( array_walk($sphinx_groups2, "intvalArray") ); I end up with errors from sphinxapi.php Invalid argument supplied for foreach() in the code that look in the array for the values to be checked as integers. I'll have to do some more playing when I have some time. |
#163
|
|||
|
|||
Oh I'm sorry.
array_walk doesn't return the new array. Do array_walk($sphinx_groups2, "intvalArray"); $cl->SetGroups2 ( $sphinx_groups2 ); --- Also at the moment rewriting sphinx.php for 0.9.7-RC1. In sphinx.conf just minimal changes were necessary, sphinx.php quite some changes. Currently recreating indices so I can start playing --- Running 0.9.7-RC1. Minimal changes to sphinx.conf, a huge change to sphinx.php and it's running Will upload upgrade howto and full howto later! Going to the gym now, need to get strong! "Strong Mind, Strong Body"!? |
#164
|
|||
|
|||
Quote:
/// set timestamps to match function SetTimestampRange ( $min, $max ) { assert ( is_int($min) ); assert ( is_int($max) ); assert ( $min<=$max ); $this->_min_ts = $min; $this->_max_ts = $max; } Which is most odd. Looks like in 3.0.x everything is held as text. It appears adding: $datecut = intval($datecut); Just before datecut is first looked at seems to sort that out. As I assume intval doesn't do anything harmful so it can be used generically. Thanks oban for the guidence. |
#165
|
|||
|
|||
Yeah that's weird. Just call
SetTimestampRange with SetTimestampRange ( intval ( ... ), intval ( ... ) ); |
#166
|
|||
|
|||
Quote:
Thanks - I ended up just forcing datecut with intval (see above) and leaving it like that as the other elements in the various palces SetTimestampRange are set don't seem to be causing an issue. |
#167
|
|||
|
|||
Orban, lookin good. I have mine up and running just in time for our upgrade tonight
One thing i had to change though -- I limit my search results to 500, and on line 101 of sphinxapi.php there is a $this->_maxmatches = 1000; This will throw an error if you try to request 1000 results via php from a searchd that is limited to less than 1000. I changed my sphinxapi to match and its all good Just an FYI! |
#168
|
|||
|
|||
Cool, glad to hear it works I honestly didn't do much testing but the few things I tried seemed to work and it's just a few different function calls. And if something it wrong I sure get a notice here quickish
|
#169
|
|||
|
|||
Edit: Nm! I forgot that i had sphinx pointed at a vb 3.5.2 database, not a 3.6.2
|
#170
|
|||
|
|||
Well, dateline is supposed to be the sql_date_column? I thought that was the case, but I guess it's not. Looks like all groups even the date one have the sql field as their name.
Edit: OOooo! This means we can also implement sort by userid and forumid!? (And all other sorting options but they will have a quite big delay...like if you update only every 24 hours they will be 24 hours old). |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|