WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: TooltipGlossary] Tweak (where's author?) (1 post)

  1. David Szego
    Member
    Posted 2 years ago #

    made a minor change that makes it really fantastic:

    Around line 97, change to this:

    $glossary_content = $glossary_item->post_content;
    $glossary_summary = addslashes(mb_substr($glossary_content, 0, strpos($glossary_content, "<!--more-->")));
    $link_replace = '<a class="glossaryLink" href="' . get_permalink($glossary_item) . '" title="Glossary: '. $glossary_title . '" onmouseover="tooltip.show(\'' . $glossary_summary . '\');" onmouseout="tooltip.hide();">$1</a>';

    and you'll be able to define words like this:

    Definition

    Definitions are the meanings of words
    <!--more-->
    This is a really long winded definition of "Definition" that has links and other stuff that doesn't show up well in tooltips. Now that we've put a "more" break, it won't show up in the tooltip.

    Anyways, not the best writeup, but you'll get it. Anyone know where the author can be reached?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by David Szego
  • This topic is not a support question
  • WordPress version: 3.2.1

Tags

No tags yet.