--- glossify.module	2010-08-25 06:21:06.000000000 +0000
+++ glossify.module	2010-09-02 06:13:07.000000000 +0000
@@ -70,6 +70,20 @@ function glossify_theme() {
 
 
 /**
+ * Trim Body Text for hovertip
+ */
+function glossify_trim_text($text, $limit, $moreclass) {
+  $extra = "<span class=\"$moreclass\">more...</span>";
+  preg_match_all('/(\S+\s+)/',strip_tags($text),$matches);
+  if ($limit < count($matches[0])) {
+    return rtrim(implode('',array_slice($matches[0],0,$limit))) . $extra;
+  } else {
+    return $text;
+  }
+}
+
+
+/**
  * Render a glossary term.
  */
 function theme_glossify_term($target, $glossify_style) { // outputs proper div so hovertip will work
@@ -83,14 +97,15 @@ function theme_glossify_term($target, $g
   switch ($glossify_style) {
     case 'reference':
       $output = '<dt>' . $term->title . '</dt>';
-      $output .= '<dd>' . $term->body . '</dd>';
+	$output = '<h4><a href=' . $target . '>' . $term->title . '</a></h4>';
+      //$output .= '<dd>' . $term->body . '</dd>';
       break;
     case 'hovertip':
     default:
       $output = '<div id="' . $term->title . '" class="hovertip" style="display: none;">';
       // Output a DIV to make hovertip work.
       $output .= '<h1>' . $term->title . '</h1>';
-      $output .= '<p>' . $term->body . '</p>';
+	  $output .= '<p>' . $term->teaser . '<h4><a href=' . $target . '>' . t('Read More') . '</a></h4></p>'; 
       $output .= '</div>';
       break;
   } // endswitch glossify style
@@ -103,12 +118,12 @@ function theme_glossify_term($target, $g
  */
 function theme_glossify_reference_section($term_definition_list) {
   $output = '<div id="glossify-reference">';
-  $output .= '<h3>Terms referenced:</h3>';
+  $output .= '<h3>Terms referenced in this post:</h3>';
   $output .= '<dl>';
   $output .= $term_definition_list;
   $output .= '</dl>';
   $output .= '</div>';
-  return $output;
+  return $output; 
 }
 
 /**
@@ -396,7 +411,10 @@ function _fetch_replacement($style, $ter
     case 'hovertip':
       return $replacement = '<span class="glossify_term hovertip_target" hovertip="' . $term_title . '">' . $term_title . '</span>';
     case 'reference':
-      return $replacement = '<span class="glossify_term">' . $term_title . '</span>';
+      //return $replacement = '<span class="glossify_term">' . $term_title . '</span>';
+	  return $replacement = '<span class="glossify_term">' ;
+	  return $replacement = l($term_title, $target_url, array('attributes' => array('title' => $term_title, 'class' => '')));
+	  return $replacement = '</span>';
   }
 }
 
