MyBB Community Forums

Full Version: [Release] Fast Search - like in IPB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Name: Fast Search
Author: noc123 (Fifty) http://vip-site.pl
Version: 2.0
MyBB Version: All
DEMO: http://vip-site.pl

Description: When you click on "Search", small window pops up where you can enter a search word. A similar fast search function is in the IPB script. It has an opacity effect (tested on FF 3.5 and IE 7).

Version 2.0 info
I'm not very fluent with PHP, so I give you step-by-step instructions, the installation should not take longer than 2 minutes.
I've changed a little bit instructions. You need to upload fast.js to jscripts folder on your server, edit one template (Header Template) and add one class to global.css


Few people PM me that they have problems with changing Advanced Search link and [X] button. This problem is caused by construction of Header Template. Some themes are using <ul> and <li> tags in navigation bar in header. These tags ussually have their own links' class. So I decided to skip .fastsearch a:link class and i've set up black color as default for these two links. You can easy change it to other color, find style="color:#000000" and change #000000 to any color you want.


Instruction and javascript file:
[attachment=15175]
[attachment=15176]

Screen:
[Image: i3xs05.jpg]

If you like this mod and you could do the installation plugin for this I would be very grateful.
You might want to fix the MyBB version - as it won't work with all of them, just 1.4.x

Good job, though Big Grin
i love you!
o god!
Great work! Thank you!
hmm, nice looking, Great work
Congratulations
Nice job.
(2009-04-16, 08:00 AM)JonP Wrote: [ -> ]o god!

"#
#-----[ FIND ]------------------------------------------
#

{$lang->toplinks_search}</a>"

It doesn't exist. I used the find option, not there, I searched manually, not there. (I am looking at correct spot)
Miley, If you found this: <a href="{$mybb->settings['bburl']}/search.php" than
{$lang->toplinks_search}</a>" is after. It's ending of that first code.

If you have in that place different code, it's OK. Put <!--Do not remove outer most DIV tag with id="fastsearch"--> [..] after </a> tag.
Nice!

Is it possible to make it a plugin? Should be...
I love this functionality, it saves much time, but I do no like the idea of modifying my forum manually. Th eplugin system is the major reason why I picked mybb.
Pages: 1 2 3 4 5