Skip navigation.

Harold's Home

   Home
  
XML version of this site

PHP Scripts

Index
CLI fun
Mail on 404
HB-NS (NewsScript)

Downloads

Applescripts
APOD to Desktop
Dreamweaver Extensions

Stuff

Writings
Other stuff
Central Grinder

OOOk Default:

VJ stuff
VJ Tools
Bananas
Strippers
Sample Movies

News

Search Better
I have made some small changes to the navigationbar at the left to better reflect what's on this site and what most people are looking for. I've also tweaked the code a bit to improve readability and to make the searchresults better. I now exclude the navigation bar from indexing. I use Atomz and to exclude parts of a page you have to wrap it in "noindex" tages. Noindex isn't valid HTML so I just use PHP to put the tag in there when Atomz visits, here's the start, you can figure out the closing section yourself I think:

<?php
if ($HTTP_USER_AGENT == "Atomz/1.0")
{
  echo "<noindex>";// navbar excluded
}
?>


The benefit of this method is that I maintain valid HTML as much as possible and by excluding the navigationbar from indexing the search results are much more focused. Previously when searching for "extensions" you would find every page on this site as the word was there on all the pages in the navbar, now you'll only find the pages that are about dreamweaver extensions. Much better.

<rant>
  Why does Atomz require invalid HTML? Why not use something like:
  <!-- exclude from index --> Stuff here <!-- /exclude from index -->
</rant>

Show all items | Read all items

About, copyright, privacy and accessibility | Mail