We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    is there any problem to changed the ’title’ column type from VARCHAR to TEXT to avoid the 255 characters limit?

    I tried that because I use the moudle to show more info on some keywords and sometimes it’s a little long. seems like its working fine so far.
    will that break anything ?
      • 16732
      • 592 Posts
      I don’t think this is related to TooltipX.

      pagetitle is just.... a page title ... and don’t need to have a lot of characters.

      I don’t think that changing the column type will break something... but I never had to do it, so I cannot certify it wink
        • 33273
        • 60 Posts
        Hi!
        It works fine.
        But I want to generate tooltipx tags in snippet. If this tag {=word:text:link=} returned from any snippet plugin doesn’t renders it.
        Help!)))
        sorry for my English.
          • 16732
          • 592 Posts
          Hi yurican,

          For the moment tooltipX is not compatible with snippets because is working on OnLoadWebDocument event who is before the snippets merging.

          I’m very very busy for the moment so I can’t do anything right now for your problem... sorry.
            • 3188
            • 75 Posts
            I cannot get this to work eather, i get the tag rendered, the javascript, html and css seems to be OK.
            But i get no popup, also checked my own CSS if that was the problem, but no, it wont render.
            Oh, also disabled all other javascript, still no go.

            Modx 0.9.6.2
              • 8790
              • 526 Posts
              I Laurentc

              Would you have time to make tooltipX working from within snippets calls ?

              Really a very needed complement..

              thank you
                Schtroumpf Grognon - Grouchy Smurf
                ---------------------------------
                Faites pas attention.. - Don't pay attention
                http://www.dzi-neo.net
                • 13428 ☆ A M B ☆
                • 1,031 Posts
                There is a bug in the Plugin. It only works 4 times on one Page.

                Here is the corrected code with count($tbl_tips[0]) not count($tbl_tips):

                <?php
                $includetooltipJs = '<script type="text/javascript" src="assets/plugins/tooltipx/BubbleTooltips.js"></script>';
                $content = &$modx->documentObject ['content'];
                if ($onlyTips == 1) { // apply tooltip to tag {=text:tiptext:link=}
                	if (preg_match_all ( '~\{\=(.*?)\:(.*?)\:(.*?)\=\}~', $content, $tbl_tips , PREG_PATTERN_ORDER )) {
                		for($i = 0; $i < count ( $tbl_tips [0] ); $i ++) {
                			if ($tbl_tips [3] [$i] != '') {
                				$bubblelink = $tbl_tips [3] [$i];
                			} else {
                				$bubblelink = '';
                			}
                			$content = str_replace ( $tbl_tips [0] [$i], '<a href="' . $bubblelink . '" class="infobulle" title="' . $tbl_tips [2] [$i] . '" >' . $tbl_tips [1] [$i] . '</a>', $content );
                		}
                	}
                	$includeScriptJs = '<script type="text/javascript"> window.onload=function(){enableTooltips("infobulle")};</script>';
                } else { // apply tooltip to all 'a' elements
                	$includeScriptJs = '<script type="text/javascript"> window.onload=function(){enableTooltipsID("' . $contentId . '")};</script>';
                }
                $modx->regClientStartupScript ( $includetooltipJs . $includeScriptJs );
                ?>


                Regards
                Jako
                  • 13428 ☆ A M B ☆
                  • 1,031 Posts
                  Modified the Plugin to Version 1.2. It displays now bubbles without an ’arrow’ via mootools.

                  The Problems of yurican and elz64 should be solved (used OnWebPagePrerender) and of islander too (the plugin displays now only a <span> if there is no link in the bubble).

                  Regards Jako
                    • 16732
                    • 592 Posts
                    Thx Jako for this update !! Long life to TooltipX ;-)
                      • 13428 ☆ A M B ☆
                      • 1,031 Posts
                      Maybe you can test it. And if there is no problem, you can put the archive into the repository.

                      Regards
                      Jako