We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6208
    • 44 Posts
    This is an auto-generated support/comment thread for Email Link Obfuscator.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Plug-in to automatically obfuscate email links with Javascript.
      • 4095
      • 372 Posts
      Cool, like the idea. I currently use http://w2.syronex.com/jmr/safemailto/ but would be awesome if it could be done automatically rather than me adding the Javascript each time.

      For the challange part we could use CAPTCHA Words?

      Any chance of these been worked into your plugin?
        [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
        Admin Sandbox Login: sandbox Password: castle
        • 36451
        • 264 Posts
        Hi cyberk,

        this script isn’t working with 0.9.5 yet, right?
          • 16511
          • 16 Posts
          Works with 0.9.5rc3 here. Be sure to download it, not copy-and-paste from the text box on the plugin page, as that text box is missing a lot of backslashes.

          Also be aware that the plugin produces invalid (X)HTML code.
            • 36451
            • 264 Posts
            Thank you for the advice. Maybe cyberk will have a look at the XHTML output of this little snippet... In the meanwhile I use the Email Antispam Plugin from the repository.
              • 6208
              • 44 Posts
              Thanks all! I just tested with .95RC3 and it seems to work fine.

              I’d be happy to modify to make it more (X)HTML compliant if someone wants to give me a hint as to what needs modifying.
                • 12262
                • 40 Posts
                Hello,

                there’s not much to do for XHTML compliance:

                Remove the language attribute from the <script> tag

                $strTag = "<script type='text/javascript'>" . "\r";
                

                Add a <div> tag (or any other block tag) around the output of the <noscript> area.
                $strTag = $strTag . "</script><noscript><div>" . $arrEmail[0] . " at " . "\r";
                	$strTag = $strTag . str_replace("."," dot ",$arrEmail[1]) . "</div></noscript>";
                


                Thomas
                  • 4391
                  • 7 Posts
                  Quote from: hochmohr at Jan 15, 2008, 02:08 PM

                  Hello,

                  there’s not much to do for XHTML compliance:

                  Remove the language attribute from the <script> tag

                  $strTag = "<script type='text/javascript'>" . "\r";
                  

                  Add a <div> tag (or any other block tag) around the output of the <noscript> area.
                  $strTag = $strTag . "</script><noscript><div>" . $arrEmail[0] . " at " . "\r";
                  	$strTag = $strTag . str_replace("."," dot ",$arrEmail[1]) . "</div></noscript>";
                  


                  Thomas

                  This is great stuff ... the only thing I would add is to put an inline display in the empty div around noscript:

                  $strTag = $strTag . "</script><noscript><div style='display:inline'>" . $arrEmail[0] . " at " . "\r";
                  	$strTag = $strTag . str_replace("."," dot ",$arrEmail[1]) . "</div></noscript>";