Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorJazzman
    • CommentTimeJul 5th 2006 edited
     # 1
    Ok.. I was bored and created this small extension. It adds a LiveSearch box to the panel. Depending on which page you are (discussions, comments or users) it will search automatically for the right type. If you have any suggestions put them here :)

    Extension: LiveSearch 1.1
    • CommentAuthorLoOkHerE
    • CommentTimeJul 5th 2006
     # 2
    The man's a machine!!!

    Excellent! Installed and working well.
  1.  # 3
    Comfirmed to work flawlessly :). Good work man
    •  
      CommentAuthoroutbreak
    • CommentTimeJul 5th 2006
     # 4
    wow that is swwwwweeeeeeeeet!
  2.  # 5
    Heck yea, thats a sweet add-on. That's what I love about this platform of message board/forums software. You have the ability to add-on different abilities and options for the user. You almost feel special (as the administrator and user) when you install a brand-new add-on. Well, thats the experience I've been having all this weekend.

    Thanks again to Mark for the wonderful, easy-to-install and easy-to-use software! :-)
    •  
      CommentAuthorgiginger
    • CommentTimeJul 5th 2006
     # 6
    Works an absolute treat. Thank you.
    •  
      CommentAuthordroppyale
    • CommentTimeJul 5th 2006 edited
     # 7
    Sweet Add-on, works great.. my only concern is that some users might get confused... most people see a search box and type whatever they are looking for being in the Topics, Comments, or Users.

    It would be great if the user were able to choose what kind of search it is... so basically same as the vanilla search, but with the "live" feature, and on the left column.

    GOod work though!
    •  
      CommentAuthorJazzman
    • CommentTimeJul 5th 2006
     # 8
    That can be arranged :) I've made it to auto-select the type, but it's easy to implement the radio-button-thingies :)
    •  
      CommentAuthordroppyale
    • CommentTimeJul 5th 2006
     # 9
    That would rock!
    •  
      CommentAuthorerissiva
    • CommentTimeJul 5th 2006
     # 10
    Jazzman - What may be better to do is have the "change search type" options in a drop-down box. Perhaps when clicking the search icon (magnifying glass)?
    Having the radio boxes causes it to take up so much room on what is becoming a rather cluttered panel. And the hide feature doesn't work.
    • CommentAuthorRoguefoxx
    • CommentTimeJul 5th 2006
     # 11
    I think radio buttons, or maybe a dropdown menu would be great! Really it's the only reason I haven't installed it yet.
    •  
      CommentAuthorJazzman
    • CommentTimeJul 5th 2006
     # 12
    Yeah, I will think of a nice option on how to select the search type :)
  3.  # 13
    I personally like it the way its programmed to work.
  4.  # 14
    Why it doesn't work?
    http://www.andreapaiola.it/forum/

    I've just debug javascript but in doesn't work
    •  
      CommentAuthorbjrn
    • CommentTimeJul 6th 2006
     # 15
    Your forum search works for me (with Opera 9).
  5.  # 16
    Maybe it doesn't work only with Firefox?
    Yes with Opera 9 works well.
  6.  # 17
    If the Firefox extension Firebug is active the live search doesn't work because there are errors...
    now I try to correct them
    • CommentAuthorImmersion
    • CommentTimeJul 6th 2006
     # 18
    it cant be firefox can it as it works on my localhost in firefox however it doesnt work on that forum link above or on jazzmans site in firefox
    •  
      CommentAuthora_j
    • CommentTimeJul 6th 2006 edited
     # 19
    <deleted>
    •  
      CommentAuthorJazzman
    • CommentTimeJul 6th 2006
     # 20
    Ok, I found a bug... when I was developing, I was doing it on a windows machine.... so I made a case-sensitivity error:

    In the livesearch.js check the last line:
    window.onload = livesearchInit;
    should be:
    window.onload = liveSearchInit;
    •  
      CommentAuthora_j
    • CommentTimeJul 6th 2006
     # 21
    @Jazzman,

    Not sure if that was pointed at me, but I fixed the line nonetheless, and am still experiencing the same problem.

    thanks.
    •  
      CommentAuthorJazzman
    • CommentTimeJul 6th 2006
     # 22
    Hi a_j, the fix was more for general concern. About your problem... Do you have any extensions that add <body onload="..." stuff?
    • CommentAuthorImmersion
    • CommentTimeJul 6th 2006
     # 23
    jazzman it cant be extensions as it doesnt work on your forum for me either. However it does work on my localhost.
    •  
      CommentAuthorjesusphreak
    • CommentTimeJul 6th 2006 edited
     # 24
    Thanks Jazzman, this is very nice. Is there any way it could strip out the BBCode when displaying comments? (if the admin has it enabled)

    That's probably too much work, but I just wanted to bring it up as a suggestion.
    •  
      CommentAuthora_j
    • CommentTimeJul 6th 2006
     # 25
    @Jazzman, I probably do (I have many), but the problem persists even if I disable all of the other extensions besides LSearch. It is really strange how it is pulling down the header and tabs into the live preview. It's almost as if css classes are crossing or something. But why would it happen in the discussion and not on the discussions main page?
    •  
      CommentAuthorBergamot
    • CommentTimeJul 6th 2006
     # 26
    It would be cool if, instead of making you choose what kind of search you wanted, it would just do all three searches, and return the first five users, the first five topics, and the first five comments, spotlight-style.
  7.  # 27
    Bergamot, I like your thinking. That sounds ideal.
    •  
      CommentAuthorAssProphet
    • CommentTimeJul 6th 2006 edited
     # 28
    Yeah, Bergamot, smoothe! How about to the right of the results category heading putting a "more" link to expand the search beyond the top 5 in any category.
    •  
      CommentAuthorBergamot
    • CommentTimeJul 6th 2006 edited
     # 29
    Ok, I made the necessary modifications, which you can play with on my test board here.

  8.  # 30
    That really is perfect.I hope Jazzman implements something like that in the official release. Its just alot more intuitive. I don't think users would think "Oh, I'm on a comments page so it'll search comments", or "I'm on a user page, so it'll search users".
  9.  # 31
    Is that update part of the extension now or is that version of the Add-On not available for download right now? Looks awesome, can't wait to install it.
    •  
      CommentAuthorBergamot
    • CommentTimeJul 6th 2006
     # 32
    No it isn't, but I'd be glad to give Jazzman the code if he wants it (the changes were really minor; just put the ajax code in a big loop, and make some stylesheet changes)
    •  
      CommentAuthorerissiva
    • CommentTimeJul 6th 2006 edited
     # 33
    Perhaps it would be a bit more intuitive if instead of displaying the results inline, it would be in a dropdown box - like I have in the live search on my site? I mean, to have text and divs being pushed around by the results is a bit clumsy. Having a dropdown or hovering div would be a little more page-friendly.
    •  
      CommentAuthorBergamot
    • CommentTimeJul 6th 2006
     # 34
    That would be really easy to do, but I'm not sure I like it covering up other content.
    •  
      CommentAuthorerissiva
    • CommentTimeJul 6th 2006
     # 35
    True. I'm with you on that.
    But what if the damage was made minimal by combining both ideas? Have a hovering div that acted like a dropdown - but only over the sidebar. And making it act like a dropdown would mean people could hit (esc) or just exit the dropdown to reveal the normal page content.

    That way the main part of the page is left intact and you can limit the dropdown to the sidebar. Just a thought? Or is that the content you don't want covered up?
    •  
      CommentAuthorBergamot
    • CommentTimeJul 6th 2006
     # 36
    Well there's useful stuff on the sidebar too, and honestly I'd rather just bump it down than cover it up. Maybe push it away with a fancy animation or something if it's too jarring.

    It also annoys me when javascript popups don't disappear on click-out, but instead make you click a "close" link.
    •  
      CommentAuthorerissiva
    • CommentTimeJul 6th 2006
     # 37
    Well - by acting like a normal dropdown it would have to have the function of exiting with clickout - just like a real dropdown.

    You mean have the search slide down the panel text down slowly? See, the only problem I foresee is large search results causing people to have to scroll down to get to the same content you don't want to cover up. Or maybe have it slide out of the side over the discussion board so its not blocking the sidebar, and its only blocking a few comments.
    • CommentAuthorithcy
    • CommentTimeJul 6th 2006
     # 38
    this is a great extension.
    • CommentAuthorithcy
    • CommentTimeJul 6th 2006
     # 39
    hey bergamot, could you post your mods?
    •  
      CommentAuthorBergamot
    • CommentTimeJul 6th 2006 edited
     # 40
    Sure.

    ajax.php becomes:
    --source code removed--

    That's 99% of the hard work, and as you can see I only changed maybe 6 lines of code.

    For completeness' sake, open default.php and change the getLiveSearchType function to:
    --source code removed--

    and use this as style.css
    •  
      CommentAuthornathan
    • CommentTimeJul 7th 2006
     # 41
    Well. That didn't work.

    Any chance you could send me the bundled files? It totally screwed my forum. An error on every page and I could not view a thing.
    •  
      CommentAuthorBergamot
    • CommentTimeJul 7th 2006
     # 42
    •  
      CommentAuthorJazzman
    • CommentTimeJul 9th 2006 edited
     # 43
    Hello all! I've added Multisearch option to the LiveSearch extension. Thanks go out to Bergamot :) You can disable it in the settings.php if you prefer the old style.

    Changes

    Version 1.1 - 09.07.2006, Jazzman
    - Minor change to javascript due to case-sensitivity issue
    - Added Multisearch option (thanks to Bergamot)
    - Configuration settings are now in a separate file
    - Added readme.html to the package
  10.  # 44
    *thumbs up
    •  
      CommentAuthorlech
    • CommentTimeJul 9th 2006 edited
     # 45
    nice, no more "livesearchInit is not defined" errors :)

    also I'm a little puzzled by this line, Jazzman:
    $Context->Configuration['LIVESEARCH_USE_MULTISEARCH'] = '1';

    I think a small ammount of code commenting could clear up any questions about what each of the options do. While most are pretty self-explanatory, I'm not exactly following the multisearch option.
  11.  # 46
    great work, Jazzman! I love livesearch.

    PS - how is the dating website coming along?
    •  
      CommentAuthorJazzman
    • CommentTimeJul 9th 2006
     # 47
    Not that many progress this week :) but tnx for asking. I hope I have more time next week :)
  12.  # 48
    I have been looking in recent months at creating a free dating website myself here for my part of Ireland. I looked at phpfox, phpizabi and datemill. Those were the best ones that I could find (I researched many many more).

    Are you building your dating script opensource on the lossumo framework? Your work (based on the extensions that I have seen) is top class.
    •  
      CommentAuthorlament
    • CommentTimeJul 9th 2006
     # 49
    great extension!
  13.  # 50
    hmm........livesearch works beautifully for me in Firefox, but throws up an error in Internet Explorer.

    http://www.love2escape.com/chat/