From: <de...@de...> - 2008-09-17 01:59:39
|
Author: GeorgeClark Date: 2008-09-16 20:59:48 -0500 (Tue, 16 Sep 2008) New Revision: 17518 Trac url: http://develop.twiki.org/trac/changeset/17518 Modified: twiki/trunk/ToolTipPlugin/data/TWiki/ToolTipPlugin.txt twiki/trunk/ToolTipPlugin/lib/TWiki/Plugins/ToolTipPlugin.pm Log: Item5966: Typo in previous commit lost BALLOONIMGPATH parameter Modified: twiki/trunk/ToolTipPlugin/data/TWiki/ToolTipPlugin.txt =================================================================== --- twiki/trunk/ToolTipPlugin/data/TWiki/ToolTipPlugin.txt 2008-09-17 00:04:46 UTC (rev 17517) +++ twiki/trunk/ToolTipPlugin/data/TWiki/ToolTipPlugin.txt 2008-09-17 01:59:48 UTC (rev 17518) @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="BaseUserMapping_333" date="1221431091" format="1.1" reprev="1.15" version="1.15"}% +%META:TOPICINFO{author="BaseUserMapping_333" date="1221616557" format="1.1" reprev="1.16" version="1.16"}% ---+!! <nop>%TOPIC% This is a plugin to generate dynamic Tool Tips in HTML + javascript (mouseover event). This tooltip is based on http://www.walterzorn.com/tooltip/tooltip_e.htm @@ -11,10 +11,10 @@ You can use one or more %TOOLTIP{TEXT="there are soo many parameters..." BGCOLOR="#FF8000" FONTCOLOR="#00FF80" TITLE="PARAMETERS" SHADOWCOLOR="#ccaacc" FONTSIZE="30px"}%parameters%TOOLTIP{END}% to get your own and nice tool tip !. -%TOOLTIP{TEXT="Set BALLOON="true" The BALLOONIMGPATH will default to the pub directory for this topic. " FONTCOLOR="#336699" SHADOWCOLOR="#ccaacc" FONTSIZE="18px" BALLOON="true" WIDTH="450"}% And with the latest version you can have Balloon style tips! %TOOLTIP{END}%. +<!-- Have to escape the following - WYSIWYG corrupts the inline img tags and " encoding in the tip. --> +<sticky> +%TOOLTIP{TEXT="Set BALLOON="true" The BALLOONIMGPATH will default to the pub directory for this topic. " FONTCOLOR="#336699" SHADOWCOLOR="#ccaacc" FONTSIZE="18px" BALLOON="true" WIDTH="450" }% And with the latest version you can have Balloon style tips! %TOOLTIP{END}%. -<!-- Have to escape the following - WYSIWYG corrupts the inline img tags in the tip. --> -<sticky> Note that you can also %TOOLTIP{TEXT="You can also insert <img src=\'%ATTACHURLPATH%/ToolTipPhoto.gif\'> gif/jpg photos and WikiWords in your text... this is simply HTML! (but remember to escape single quotes (\'), I18N chars, etc :-)), and set STICKY="true" if you want the links usable." STICKY="true" TITLE="PHOTOS !" FONTCOLOR="#336699" SHADOWCOLOR="#ccaacc" FONTSIZE="18px" WIDTH="400"}% do this %TOOLTIP{END}% and %TOOLTIP{TEXT="you can set a background image so to get a nice tool tip and also add some <img src=\'%ATTACHURLPATH%/ToolTipPhoto.gif\'> gif/jpg photos" FONTCOLOR="#336699" TITLE="Background image" SHADOWCOLOR="#ccaacc" FONTSIZE="18px" WIDTH="190" BGIMG="%ATTACHURLPATH%/ToolTipBackground.jpg"}% this %TOOLTIP{END}% too !. </sticky> Modified: twiki/trunk/ToolTipPlugin/lib/TWiki/Plugins/ToolTipPlugin.pm =================================================================== --- twiki/trunk/ToolTipPlugin/lib/TWiki/Plugins/ToolTipPlugin.pm 2008-09-17 00:04:46 UTC (rev 17517) +++ twiki/trunk/ToolTipPlugin/lib/TWiki/Plugins/ToolTipPlugin.pm 2008-09-17 01:59:48 UTC (rev 17518) @@ -141,7 +141,7 @@ # Add a defautl BALLOONIMGPATH if BALLON is true and path is not provided # if ( $attr =~ m/BALLOON, '[Tt][Rr][Uu][Ee]'/o ) { - $attr .= ", BALLOONIMGPATH, '$TWiki::cfg{PubUrlPath}/$TWiki::cfg{SystemWebName}/$pluginName/'" if (! $attr =~ m/BALLOONIMGPATH,/o ); + $attr .= ", BALLOONIMGPATH, '$TWiki::cfg{PubUrlPath}/$TWiki::cfg{SystemWebName}/$pluginName/'" if (!($attr =~ m/BALLOONIMGPATH,/o)); $incBalloon = 1; } |