bbPress Plugin Browser »

Super Search (0.0.3)

Download

Version: 0.0.3

Last Updated: 2010-10-8

Requires bbPress Version: 0.9 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(4)

Your Rating

Author: _ck_

Tags: , , ,

  1. Thank you phpbroker19 to allow us this bug fix :)
    in my files, it was on line 470 not 471.

    For _ck_ who is the real guy to thank, I continue my test report.

    the "exact words" option has a strange behaviour : when the word we search is the last word in the topic_title, then it is not given in the results. It as if the end of the title was a character attached to the word. I forgot to say that I tested with the "located : 'only in titles' " option.

    another strange bug : there are some empty posts given in results, or at least, the result show no post. And as there is only a link the the profile of the poster, this lead to a very strange result : we want to search a post, we click on a result, and we are on a profile page ...

    I solved my layout problem (which appeared only in firefox, not in IE) by removing 'clear:left' in super-search-init.php line 594.

    Posted: 3 years ago #
  2. I found the first "blocking" line for UTF8 characters :
    line 347, you wrote :
    $search=preg_replace('/[^a-zA-Z0-9-\s\*\+\-\'\"]/', '', $search); // strip punctuation - todo: check for regex option and leave alone, also: foreign languages?

    Your comment was right ... "foreign languages" does not like that.

    But eventhought, I don't understand the need.
    For example, I wanted to search for posted link, so I search for "juggletube.com", and this line force SuperSearch to search for "juggletubecom" and so, it finds no results.
    that's the same for cyrillic or french "accents", when we type "déjà vu", it searchs for "dj vu".

    As this does not seems to be needed for safety, I would suggest to make the "preg_replace" with a "positive" mask (something like "/,;\/:!%/" , a mask listing all ponctuation you would like to strip)

    Posted: 3 years ago #
  3. I honestly can't remember why I strip punctuation but there must have been some reason.

    You are right, it doesn't appear to be a security issue, it might be for regex searches but people using that feature should know better anyway.

    If it works with that line disabled/removed, go for it.
    I might disable it by default after some testing.

    Okay, we'll try it in 0.0.3 - thanks for your feedback.
    I also found a problem with htmlentities which apparently isn't utf8 safe so fixed that too.

    I tried a few utf8 searches and they seem to work in 0.0.3, let me know if it works for you.

    Posted: 3 years ago #
  4. Thank you for takin into account my feedback.

    I already tested without this "punctiuation striping", so this is good :)
    I had also the htmlentities problem, thank you for having it solved !

    Why didn't you correct the space in SQL query problem line 471 ? (even if I did not reproduced it)
    the bug report made by phpbroker19 was quite clear ....

    I still have the "no post shown" problem ...
    I also experience no "highlight" even if I see the word is in the shown post (and of course, the "highlight" checkbox is checked). This seems to happen specially with accents. I tried "énorme", "j'étais" I think "cliché" should also have this problem.

    But already, this "Super Search" worths its name !

    Posted: 3 years ago #
  5. I've fixed the css and mysql bug now, thanks for reminding me.

    The highlighting must be some kind of multi-byte bug with preg_quote or preg_replace or even the word boundry \b in the regex. I will have to research. The context routine is something I have to eventually replace anyway, it's not very good and just something temporary.

    I am finding notes that preg_quote is not utf8 safe, but that is from 2006, I will have to investigate.

    Okay after some testing I think the problem with words like "cliché" is the word boundaries. If you disable "exact match" it will work. I will have to research more.

    Posted: 3 years ago #
  6. Hi CK,

    Hope you are doing great!
    I want to put an option like search text box option, like how the bb press forums has that option.
    I installed this plugin and activated as by your instructions, but I am not able to see any kind of search text box button enabled and visible on my main page of Forums.

    I am intrested to see search option on my forum main page like as the bbpress forum page (http://bbpress.org/forums/).

    Please help me with this. I am using the right plugin or do I have to do any modifications or do I need to install any other plugin.

    Thanks,
    -Vikram.
    Have a good day too!!

    Posted: 2 years ago #
  7. Hi CK , please provide your support on the above request.

    Thanks,
    -Vikram.

    Posted: 2 years ago #
  8. Hi Ck,

    Hope you are doing great, Just help me with this search option.
    What has to be added and what needs to be installed to have a search forum button and text field option.

    Cheers,
    -Vikram.

    Posted: 2 years ago #
  9. Michael3185

    Member

    I just downloaded and installed Super Search on my 0.9.0.5 forum. I get the following error from the GZip plugin;

    Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /home/letsdoo/public_html/TalkSpirit/my-plugins/_bb-gzip.php on line 12

    but I can't find anything in Super Search using gzhandler. Any ideas folks..?

    Posted: 2 years ago #
  10. nford

    Member

    It would be GREAT if it were also possible to search forum/category titles!

    Posted: 2 years ago #
  11. Hi,

    Is there any way to use super search to pull up posts just by the author without having to search for a word in the posts?

    Just set the user to admin (under advanced) and it will show every post ever made by the admin.

    I tried this but you need to put a word to search for, and it is pretty hard to think of a word you use every time you post...is there a special wild card character you can put in the search box that will allow you to do this?

    I have members asking me about this and I have tried to find a solution without much luck.

    Thanks!

    Scott

    Posted: 2 years ago #
  12. To see all the posts by someone, look in their profile.
    I'll try to add the ability sometime down the road.

    Posted: 2 years ago #
  13. First: A big Thank You _ck_ for your numerous contributions to the 0.9 plugins universe - it really makes bbPress a product.

    As expected, when filling my-plugins with useful extensions for bbPress, I ran into "side effects" of one plugin with others:

    Conc. SuperSearch - it takes over control in the "Manage Topics" etc. area as well.

    How can I control that behaviour - and use only the provided "filter" instead?

    Posted: 2 years ago #
  14. Hi. We upgraded today to a new version of bbpress (1.0.2) and have been experencing several issues. One of which just got pointed out to me recently by the other moderators. I also checked this myself and I have the same problem. This is what the moderator who told me in his own words:

    "Also, I have a problem with this mroe advanced search. It's interfering with search in teh admin section. And thus I can't look up the deleted or closed topics. I can't see the deleted topics or spam posts of anything at all without having to search through EVERY thread name that has ever been made and is open. Since it won't let me look up deleted. If I select "deleted" and hit search, it takes me to the forum users' new advanced search which does not allow me to see deleted posts because it is no longer in the admin section."

    I searched for this through here and also on the support forum. Didn't find anything. Wondering if its an isolated issue and not a known issue.

    Posted: 1 year ago #
  15. Well it fixed the redirect problem. But now when I go to search for topics in a particular forum, it just refreshes the page. Posts works just fine, but its just topics that don't want to work right.

    Posted: 1 year ago #
  16. Then just wrap the whole thing in it - if this doesn't fix it, nothing will


    if (!BB_IS_ADMIN) {
    add_action( 'do_search', 'super_search_init',256);
    if (isset($_GET['search'] ) || isset($_GET['q'] ) || isset($_GET['SuperSearchUsers'])) {add_action('bb_init','super_search_init',256);}
    function super_search_init() {require('super-search-init.php');}	// only loads code if search requested
    }
    Posted: 1 year ago #

RSS feed for this topic

Add a Comment

You must log in to post.