We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    OK I found why it did not work in ie (eventhou it should, it worked in FF...)

    I used another javascript class vor multicoloms reding layout when I disable that one it works fine...
    Man I hate this
      follow me on twitter: @dimmy01
      • 16732
      • 592 Posts
      @ Chinesedream :
      It works also with images, look at the image in the page which I mentioned higher .

      But in your case the TooltipX dont works at all.
      Check if is the last release: In the new one, the event is "OnWebPagePrerender" and you have to check the "OnWebPagePrerender" event to (no more the "OnLoadWebDocument" for the moment).

      @Dimmy : joys of the js use wink
        • 5091
        • 332 Posts
        Sorry, me again sad I  really don’t see what I did wrong.

        My MODx version  is 0.9.5 / PHP Version 5.2.1, hosted on Dreamhost. I was able to get the friendly URL working without modifying a single line of code in .htaccess file. So... I have ruled out the problem of the server and the modx version.



        In this folder you can see the screen shots of settings for TooltipX
        http://lotusseeds.com/tooltip/

        And I created a new test page, added AjaxSearch just to see if it’s working and it does.
        http://lotusseeds.com/test.html

        I did check the latest version is 1.0, but in the plugin code it shows 0.1 However the essential part is the following correct?

        $e = &$modx->Event;

        switch ($e->name) {

                case ’OnWebPagePrerender’:

                      $plugPath = $modx->config[’base_path’]."assets/plugins/";

                      include $plugPath .’tooltipx/tooltipX.inc.php’;

                break;

                default :

                    return;

                break;

        }



        tgp
          • 16732
          • 592 Posts
          I think you have to removed the PHP tags in the general field

            • 7455
            • 2,204 Posts
            Jup I had the same problem
            Plugins can not have the php tags like snippets can nowerday’s same goes for modules.
            Maybe the poster should remove the php tags from the plugin file?


            Dimmy
              follow me on twitter: @dimmy01
              • 16732
              • 592 Posts
              Quote from: Dimmy at Mar 27, 2007, 04:40 AM

              Maybe the poster should remove the php tags from the plugin file?

              Done
                • 5091
                • 332 Posts
                Hi Laurentc and Dimmy,

                Greatly appreciate your patient and help.

                After removing theh PHP tag, it works but I am running into another problem, I believe the Bubble Tooltips script is having a conflict with the gallery script I use. My gallery on this page doen’t show up but the code is still there; if I disable the tooltip plugin, the gallery shows fine. It uses "onload" in body tag, is there a way to make them co-exist?
                Please see it here:
                http://lotusseeds.com/chc.html

                Another thing, how come the auto generated "<script type="text/javascript" src="assets/plugins/tooltipx/BubbleTooltips.js"></script><script type="text/javascript"> window.onload=function(){enableTooltips("infobulle")};</script>" are placed at the very bottom of the page, outside the <html> closing tag. This gives me validtion errors.



                Thanks again!

                tgp
                  • 16732
                  • 592 Posts
                  Quote from: chinesedream at Mar 27, 2007, 06:16 AM

                  Another thing, how come the auto generated "<script type="text/javascript" src="assets/plugins/tooltipx/BubbleTooltips.js"></script><script type="text/javascript"> window.onload=function(){enableTooltips("infobulle")};</script>" are placed at the very bottom of the page, outside the <html> closing tag. This gives me validtion errors.

                  Yes, I will work on that (As soon as i have a moment)
                  To avoid the errors you can :
                  1) Comment (or delete) this line in tooltipX.inc.php : $o .= $includetooltipJs.$includeScriptJs ;
                  2) Put all the js call : <script type="text/javascript" src="assets/plugins/tooltipx/BubbleTooltips.js"></script><script type="text/javascript"> window.onload=function(){enableTooltips("infobulle")};</script>
                  in the header of your template
                    • 5091
                    • 332 Posts
                    Thanks Laurentc again!!!! It’s working now grin

                    I also needed to comment out this though:
                    $includeScriptJs =’<script type="text/javascript"> window.onload=function(){enableTooltips("infobulle")};</script>’;

                    I am however not sure if it can work nicely with the gallery though (not your script problem), because the large image is controlled by the gallery script. I was able to have the bubble text shows up in thumbnail, but the large image disappear. Until I am able to write my own JS script to modify the gallery script, I am not sure what I can do about it at the moment.


                    tgp
                      • 5091
                      • 332 Posts
                      OK, although I can’t get it work with the gallery, but I still want to use it in other pages and I would like to try the tooltipXWordReplace as you recommended.

                      Dimmy, can you give a better instruction?

                      // use this as config: &words=Words;string;word1|word2|word3 &balloontext=BalloonText;string;word1:this replaces the first word:http://www.1-vision.nl|word2:so this is the text for word2:|Pascal:the scriptmaster:http://www.spinsiteservice.nl

                      Everything wrap together and I don’t know what to make of it, so I tried a couple combinations and this seems to be the correct ones:
                      http://lotusseeds.com/tooltip/s.png
                      or not?

                      I changed the plugin sequence:
                      http://lotusseeds.com/tooltip/sequence.png

                      I am totally lost at this:
                      // separate the words by a | and do the same with the balloontext string, the balloontext should be formatted as this: Word that gets the hover:text to appear in the balloon:link including http:// if no link is set you still need the : on the end for the


                      In your early post you mentioned "replacment string the ToolTipX without the {= =} tags.", so I tried something like this:

                      Text on the page:Tooltip text to be display:Link.html

                      Not working!

                      tgp