[pmwiki-users] Popup messages

Dominique Faure dominique.faure at gmail.com
Sun Oct 29 06:12:33 CST 2006


On 10/29/06, IchBin <weconsul at ptd.net> wrote:
> Short story longer, I continued to play with the DomTT product and found
> it far surpassed my design plans and expectations.
>
> Getting back to the DomTT recipe it looks good. I am just being side
> tracked because I have highly formated data that I can not pass into the
> recipe markup. Dom maybe you can answer this. I have not started to
> debug yet. Any way with the simple setup at min using this, without
> passing options it works fine.
>
>  >>comment id=default_enable_div<<
>     If this setting is On then stacktraces will be shown by default on an
>     error event. You can disable showing stacktraces from your code with
>     xdebug_disable(). As this is one of the basic functions of Xdebug, it
>     is advisable to leave this setting set to 'On'.
>  >><<
>
> [:default_enable_div:xdebug.default_enable]
>
> Ok, below is what the actual data looks like with all the formating.
>
> %color=#ff7f00 define=directive%
> || ||xdebug@@'''.%directive%default_enable'''@@ ||On ||
>
> The problem I have is the actual data format I have to pass is a
> problem. Can not seem to get the term hat need to be define in a tooltip
> to format correctly. Also I can not use the two double lines under the
> target term.
>
> You could go to this page to see what the current output looks like:
> http://weconsultants.phpnet.us/pmwiki.php/PHP/Debugging#xdebug
>
> I am trying to blend in the popup with out affecting my current page format.
>
> Hope this makes sense of what the problem I am having..
>

Nice quiz for a rainy sunday morning :)

Update domtt.php to latest version, then use the following code into
your local configuration file:

===8<---
$HTMLStylesFmt['directive_style'] = "
.directive {
  color: #ff7f00;
}
a.directive,
a.directive:visited {
  color: #ff7f00;
  text-decoration: none;
}";

include_once('cookbook/domtt.php');

Markup("ini_directive",'<[:]',
  '/(\|\|[^%]+)%([^%]+)%(\w+)/',
  '$1[:$3_div tooltiplink=$2:$3]');
===8<---

Dom




More information about the pmwiki-users mailing list