We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4273
    • 356 Posts
    you could do that using a chunk, yep, also the email snippet can be used too but I was curious which is more secure
      SMF Bookmark Mod - check it out
      http://mods.simplemachines.org/index.php?mod=350
      • 25663 MODX Staff
      • 12,272 Posts
      Any plans on making this work more than once per page?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 23054
        • 62 Posts
        That works really great but I have one question:
        How to append a subject ?

        ///////////////////////////////////
        // <----- USAGE ----->
        ///////////////////////////////////
        // To use this snippet, type this in your document content:
        //

        1. [[EmailCloak? &saddress=`[email protected]\?subject=Test` &scaption=`Email Me`]]

        leads to the following result:

        onmouseover=\"javascript: this.href=letter(’address%23comsubjec’,’youremail’)

        2. [[EmailCloak? &saddress=`[email protected]\?subject` &scaption=`Email Me`]]

        leads to the following result:

        onmouseover=\"javascript: this.href=letter(’address%23comsubject’,’youremail’)
          • 5210
          • 43 Posts
          I’m trying to use this snippet and it doesn’t seem to be working. Is it something that got broken after a new version release? I prefer to use this snippet vs that developed by Cyberk (http://modxcms.com/forums/index.php/topic,2552.0.html) because it also obfuscates the content of the link text.

          Help?

          Chris
            • 5210
            • 43 Posts
            Disregard my previous post. I implemented the Email Obfuscation Plug-In by floh.

            Thanks for MODx!!

            Chris