nicEdit's project page very nicely includes some template.php specific code which lets you disable and enable the editor on your site:

function yourtheme_nicedit($page, $name, $enabled) {
  return $enabled;
}

I'm a php beginner and have tried to extend this (I couldn't find anything in the source code), here's what I've tried:
('yourtheme' is replaced by my theme name)

function yourtheme_nicedit($page, $name, $enabled) {

  if ($page == 'forum') {
    return $enabled;
  }
 
}

and

function yourtheme_nicedit($page, $name, $enabled, $type = null) {

 
  static $node_type;
  if (isset($type)) $node_type = $type;

  if ( $node_type == 'forum') {
    return $enabled;
  }
 
}

But neither work. I'd like to enable nicEdit site wide and disable it in Drupals admin. Could someone please provide me with some code examples?

Thanks,
Wishstik