You many also need to edit a few more lines in the related widgets since the above code is not executed by these widgets.
Edit I ran into this problem way back when I was originally developing this. The problem is that the above should work for most queries EXCEPT those that use the extended phrase match @user jlw @body beer @title help on your site with Extended phrase match selected will return all posts by that author with text of "beer" inside a thread with the word "help" in it. See here
Here is where the problem lies with respect to the auth error:
Delete this single line here. It was preventing non-admins access to any of the plugin's internal controller methods. You should now be able to see the results above the "Ask a Question"
To get rid of that error you have to delete a single line in the plugin.php file
Comments
just add that line?
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
you're great, I really appreciate the support for the plugin.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
yes, let me know if it solves your issue of some discussions not showing any related threads.
hmm... i made the change to class.widgets.php but im still not getting results
here is another thread with the same issue
http://homebrewforums.net/discussion/600/get-your-stickers#Item_53
it has an exclamation point in the name.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
ya that is odd, I can see the problem on my side as well.
i added echo "HELLO".$Query; just prior to the new line.. it doesn't seem to be getting to that point in the code.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
Ok, add this below that line highlighted in the github issue:
if($Match != 'Extended') $Query = $this->SphinxClient->EscapeString($Query);
You many also need to edit a few more lines in the related widgets since the above code is not executed by these widgets.
Edit I ran into this problem way back when I was originally developing this. The problem is that the above should work for most queries EXCEPT those that use the extended phrase match
@user jlw @body beer @title help
on your site withExtended
phrase match selected will return all posts by that author with text of "beer" inside a thread with the word "help" in it. See hereI had this problem of an error showing with ask a question. Turning sphinx on and off made them appear.
To get rid of that error you have to delete a single line in the plugin.php file
@hbf did this do anything?
>
seems to have fixed it. thanks!
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained