Searching the forums
Posted: Mon May 19, 2008 7:43 am
Hi. I have noticed that PHPbb2 forums have (like this one) have a rather uneffective search function (PHPbb3 is out, that might have a better search function). You find the thing you are interrested in much better if you use google and narrow the search to the specific site you are interested in.
You search like this in Google
Which means that Google will only show results that come from that specific site. And i find it more effective than using the buil in search function of the forum itself.
But it is of course difficult to leave the page, and go to google, and having to type in the extra site:classic-castle.com, therefore i made a little JavaScript snippet that you can save as a bookmark, and have it as a shortcut in your bookmark bar (if your browser has one)
I did this, copy pasted the code, created a new bookmark, added the whole thing as an URL.
When you click on the bookmark, a box opens where you can write your search term, then you are taken to google showing the search results for the site in question.
I made two version.
The first one searches for the term in classic-castles forum only.
The other version searches on the site you have currently open (but it can become confusing).
Love
- Melonkernel
You search like this in Google
Code: Select all
organizing lego site:classic-castle.com
But it is of course difficult to leave the page, and go to google, and having to type in the extra site:classic-castle.com, therefore i made a little JavaScript snippet that you can save as a bookmark, and have it as a shortcut in your bookmark bar (if your browser has one)
I did this, copy pasted the code, created a new bookmark, added the whole thing as an URL.
When you click on the bookmark, a box opens where you can write your search term, then you are taken to google showing the search results for the site in question.
I made two version.
The first one searches for the term in classic-castles forum only.
Code: Select all
javascript:document.write("<script>var site='http://classic-castle.com/forum/'; var searchTerm = prompt('Search in Classic-Castle forums for:'); window.location = 'http://www.google.com/search?q=' + searchTerm + ' site%3A' + site;</script>");
Code: Select all
javascript:document.write("<script>var site=window.location.hostname; var searchTerm = prompt('Search in '+site+' for:'); window.location = 'http://www.google.com/search?q=' + searchTerm + ' site%3A' + site;</script>");
- Melonkernel