Posted May 15, 2015
high rated
As some people may already know I've been working on a script to improve the search function on the forum. I've got it to a point where it should be useful to the majority of users, so here it is.
Current Version:1.0
Feature List:
You can:
- Search within posts for text
- Search for posts by usernames in a thread
- Search for multiple search terms (separate them with a ';' or a '&' see below for further details)
- Search within bolded text (mainly for use in the Mafia games, but I'm sure you can guys can find other uses :) )
- Filter for replies to your posts (shows replies to replies as well, currently redirects to My Recent Posts on forum page)
- Specify what pages of the thread to search within (the page numbers are inclusive, so 1 - 4 includes pages 1 & 4, currently limited to 300 pages to prevent crashes)
- Search within the forums for threads by username and thread title (currently doesn't search actual post content, only username or title)
- Search within the results of a previous search
- Highlight the search term within the results
Update Log:
0.3
- Search within the forums for threads by username and thread title
- Shows if no results have been found
0.3.14
- Set username and posts checkboxes to checked as default
- Fixed (hopefully) auto updating
0.3.15
- Fixed bug that meant already read threads weren't searched or returned when searching by thread title.
0.3.2
- Added Version Number beneath Go button
- Added shortcut to perform search if Enter is pressed while typing in any of the text boxes (Search, First Page, End Page)
0.3.21
- Minor cosmetic changes
0.3.3
- Can now filter for replies to you within a thread
0.4
- Added searching within bold text
- Fixed compatibility issue with Barefoot Essentials quick reply
- Changed versioning scheme to ensure proper updates
0.4.1
- Results now show the total number of returned threads / posts at the top along with the time taken.
0.4.2
- Added ability to search within search results (also works to search the current page only)
0.4.3
- Fixed incompatibility with new version of Barefoot Essentials (forum searching wouldn't work if you used the newly implemented feature to drop the hash code in the URL)
- Added ability to search for multiple terms
0.4.4
- Fixed error with version number
0.4.6
- Fixed error introduced in 0.4.3 that prevented thread searches from working in Firefox.
- Added some debug stuff in case of problems and errors in the future.
0.4.7
- AND searching implemented in addition to OR searching
1.0
- Added ability to highlight text within results (through an external JQuery plug in)
Planned features:
- Abort a search before finishing
- Search by date of posts
- Search by high or low rated posts (possibly)
- Paged browsing of search results (I know, not a popular subject right now, but I promise I will leave the option to show everything on one page)
- Search within posts on the forum (i.e. search by content of posts rather than title alone)
- And any suggestions are welcome too!
Installation Instructions:
Installing the userscript requires an extension like or [url=https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo]TamperMonkey, if you already use Barefoot Essentials you should have one of these already (and if you don't use it why not? It's excellent!)
The installation instructions for those can be found on the Barefoot Essentials thread, I can't say I can help much with that side of it...
Once you've got a userscript extension you can install the script by visiting this page and clicking the Raw button in the corner of the script box.
Using the Script
Once installed and active the search box appears at the top of every page in the forum, right now it doesn't work on the forums themselves, only in threads. Enter the search term in the box, and the pages to search between (leave them blank to search the whole of a thread, but be careful with bigger threads as this may take a while) and tick the check boxes of where you want to search (posts and usernames) and click Go to search.
The script will clear the current page of the thread you are on and repopulate it with posts that match your search criteria, this can take a while depending on how many pages you are searching and posts do not appear until each page has been filtered.
Multiple Search Terms
New to version 0.4.3
You can now search for more than one term at a time and results will return any post or thread that matches either (an OR clause rather than an AND, for those who care). To search for multiple terms they need to be separated by a semi-colon (;). Each term is trimmed for whitespace at either end (so 'term 1;term 2' and 'term 1 ; term 2' will return the same result).
New to version 0.4.7
You can now perform AND searches in addition to OR ones (so results will only be returned if all the search terms are included)
To do so separate the terms with an ampersand (&). Terms are trimmed for whitespace as before.
If both AND and OR separators are included then they would be split as follows:
- "A ; B & C" is A or (B and C)
- "A & B ; C" is (A and B) or C
- "A & B ; C & D" is (A and B) or (C and D)
And that's it, enjoy.
I'll try and update it when I can, to search on the forum itself is the next priority.
Let me know if there are any bugs or problems with it and I'll try and fix them.
Current Version:1.0
Feature List:
You can:
- Search within posts for text
- Search for posts by usernames in a thread
- Search for multiple search terms (separate them with a ';' or a '&' see below for further details)
- Search within bolded text (mainly for use in the Mafia games, but I'm sure you can guys can find other uses :) )
- Filter for replies to your posts (shows replies to replies as well, currently redirects to My Recent Posts on forum page)
- Specify what pages of the thread to search within (the page numbers are inclusive, so 1 - 4 includes pages 1 & 4, currently limited to 300 pages to prevent crashes)
- Search within the forums for threads by username and thread title (currently doesn't search actual post content, only username or title)
- Search within the results of a previous search
- Highlight the search term within the results
Update Log:
0.3
- Search within the forums for threads by username and thread title
- Shows if no results have been found
0.3.14
- Set username and posts checkboxes to checked as default
- Fixed (hopefully) auto updating
0.3.15
- Fixed bug that meant already read threads weren't searched or returned when searching by thread title.
0.3.2
- Added Version Number beneath Go button
- Added shortcut to perform search if Enter is pressed while typing in any of the text boxes (Search, First Page, End Page)
0.3.21
- Minor cosmetic changes
0.3.3
- Can now filter for replies to you within a thread
0.4
- Added searching within bold text
- Fixed compatibility issue with Barefoot Essentials quick reply
- Changed versioning scheme to ensure proper updates
0.4.1
- Results now show the total number of returned threads / posts at the top along with the time taken.
0.4.2
- Added ability to search within search results (also works to search the current page only)
0.4.3
- Fixed incompatibility with new version of Barefoot Essentials (forum searching wouldn't work if you used the newly implemented feature to drop the hash code in the URL)
- Added ability to search for multiple terms
0.4.4
- Fixed error with version number
0.4.6
- Fixed error introduced in 0.4.3 that prevented thread searches from working in Firefox.
- Added some debug stuff in case of problems and errors in the future.
0.4.7
- AND searching implemented in addition to OR searching
1.0
- Added ability to highlight text within results (through an external JQuery plug in)
Planned features:
- Abort a search before finishing
- Search by date of posts
- Search by high or low rated posts (possibly)
- Paged browsing of search results (I know, not a popular subject right now, but I promise I will leave the option to show everything on one page)
- Search within posts on the forum (i.e. search by content of posts rather than title alone)
- And any suggestions are welcome too!
Installation Instructions:
Installing the userscript requires an extension like or [url=https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo]TamperMonkey, if you already use Barefoot Essentials you should have one of these already (and if you don't use it why not? It's excellent!)
The installation instructions for those can be found on the Barefoot Essentials thread, I can't say I can help much with that side of it...
Once you've got a userscript extension you can install the script by visiting this page and clicking the Raw button in the corner of the script box.
Using the Script
Once installed and active the search box appears at the top of every page in the forum, right now it doesn't work on the forums themselves, only in threads. Enter the search term in the box, and the pages to search between (leave them blank to search the whole of a thread, but be careful with bigger threads as this may take a while) and tick the check boxes of where you want to search (posts and usernames) and click Go to search.
The script will clear the current page of the thread you are on and repopulate it with posts that match your search criteria, this can take a while depending on how many pages you are searching and posts do not appear until each page has been filtered.
Multiple Search Terms
New to version 0.4.3
You can now search for more than one term at a time and results will return any post or thread that matches either (an OR clause rather than an AND, for those who care). To search for multiple terms they need to be separated by a semi-colon (;). Each term is trimmed for whitespace at either end (so 'term 1;term 2' and 'term 1 ; term 2' will return the same result).
New to version 0.4.7
You can now perform AND searches in addition to OR ones (so results will only be returned if all the search terms are included)
To do so separate the terms with an ampersand (&). Terms are trimmed for whitespace as before.
If both AND and OR separators are included then they would be split as follows:
- "A ; B & C" is A or (B and C)
- "A & B ; C" is (A and B) or C
- "A & B ; C & D" is (A and B) or (C and D)
And that's it, enjoy.
I'll try and update it when I can, to search on the forum itself is the next priority.
Let me know if there are any bugs or problems with it and I'll try and fix them.
Post edited August 09, 2015 by adaliabooks