Hola!

Name Pete Goldsmith
Location Sydney, Australia
Email tavi @ sifnt.net
Found Tavi Google
Using Tavi On a corporate intranet

Changes I've made to my Tavi

-

File:// Links

Change the UrlPtn? in lib/defaults.php to add the file: prefix as an allowable prefix:

        $UrlPtn  = "(http:|mailto:|https:|ftp:|gopher:|news:|file:)" .
                   "([^ \\/\"\']*\\/)*[^ \\t\\n\\/\"\']*[A-Za-z0-9\\/?=&~]";

I put the line into config.php, so as to provide for easy upgrades later

-

External links opening into new windows

I modified parse/html.php and added target=_blank to the following section

function html_url($url, $text)
{
  if($url == $text
     && preg_match('/(.jpe?g|.png|.gif|.bmp)$/i', $text))
  {
    return "<img src=\"$url\" alt=\"" . basename($url) . "\" />";
  }
  return "<a href=\"$url\" target=_blank>$text</a>";
}

-

No Cache meta tags

Modified template/common.php and added <meta http-equiv="pragma" content="no-cache" /> in the file as follows;

<meta name="KEYWORDS" content="<?php print $MetaKeywords; ?>" />
<meta name="DESCRIPTION" content="<?php print $MetaDescription; ?>" />
<meta http-equiv="pragma" content="no-cache" />
<?php
  if($args['norobots'])
  {