CryptX

CryptX ist mein zweites Plugin für WordPress, und soll die verlinkten Email Adressen (mailto:…) vor Spider verstecken. Das ganze sollte allerdings so geschehen, dass bei der Bearbeitung der Inhalte die Email Adressen unverändert bleiben. Über die Einstellungen lässt sich einstellen, ob das verstecken der Emails mittels javascript oder mittels UNICODE geschehen soll. Ebenso lässt sich das ‘@’ Zeichen und die Punkte im Link durch selbstdefinierte Zeichen ersetzen. Standard mässig, wird das ‘@’ durch ‘ [at] ‘ und die Punkte durch ‘ [dot] ‘ ersetzt. Der Link für die Email kann aber auch als definierter Text oder als ein Bild dargestellt werden.
Da CryptX in meiner Freizeit entwickelt und gepatched wird, würde ich mich freuen, – sofern Ihnen CryptX gefällt – wenn Sie mich mit einer kleinen freiwilligen Spende unterstützen würden.
Download
Die aktuelle Version bekommt ihr direkt aus dem Repository von WordPress.org.
ToDo
Warten auf Feedback und wünsche.
Salü Ralf
Merci für CryptX! Feedback:
- Zumindest im Default-Style (http://allen.projectbay.net/blog/?page_id=533) wird beim Modus “convert to image” (Zeile 214 in Deinem Code) das Bild durch “align:text-bottom” zu hoch gesetzt. “align:inherit” ist hier die bessere Wahl
- Wieso verwendest Du die uncodierte Emailadresse im Image-title und dem Dateinamen? Hier könnte man doch ganz problemlos das @ durch at und . durch dot ersetzen…
Beste Grüsse & Merci nochmals für all Deine Arbeit!
Bruno
Hallo Ralf,
ich habe aufgrund eines anderen Problems auf meiner Seite einmal den Debug-Mode von WordPress eingeschaltet, und dabei festgestellt, dass auch von diesem Plugin einige Fehlermeldungen produziert werden.
Magst du vielleicht einmal das selber noch testen? (einfach mal in der wp-config.php, “define(‘WP_DEBUG’, true);” einschalten)
Anonsonsten muss ich sagen: Top Tool!
LG Andreas
Hallo Andreas,
vielen dank für Deinen Hinweis.
Ich konnte jedoch bei meinem Testsystem (PHP 5.3.2, WordPress 3.1, CryptX 2.7.1) keine Fehlermeldungen von CryptX finden.
Kannst Du mir einen Screenshot mit den Fehlermeldung mailen, damit ich da mal nachgucken kann?
Grüße
Ralf
Thanks for developing such a useful and flexible plugin. I would like to use CryptX in my template to encrypt email addresses, however I was hoping to make the “text” of the mailto link the same as the email address (either by making it an image or also encrypting the text. Is there any way to get cryptx() to do this?
Hi Jessica,
thx for your comment and i hope i fixed it in version 2.6.6 of CryptX.
Please update and try again.
Ralf
Hm still doesn’t work… it’ll show:
(a href=encryptedemail) test@test.com (/a) — email is in plaintext between the link tags
Hi, I’m interested in cleaning up my HTML for speed and SEO. Any chance we can get this plugin to hook in only on requested pages (rather than excluded pages as it stands right now), and have all JS removed for pages that don’t use this plugin?
Hello,
The plugin is not working in my custom footer. I have activated it and it is working on this page:
http://dharmasangha.org/cmszen/about-cmzc/contact-us
But if you look into the footer, the e-mail address here is not being changed to an image.
Please advise!
Keith
Was having the same issue. Use [cryptx]email@example.com[/cryptx] shortcode as per the readme.
Hi,
can you explain the problem? And can you send me a link to your site, where i can see it?
Ralf
Hi – thanks for a very useful plugin!
One useful addition would be a class on the image that replaces the email link text, so that I can apply styles to it:
(And, as another chris has noted, there needs to be a closing / on the img tag.)
- Chris
First of all: Excellent plugin!
A small w3c incompliance occured to me though. I am using version 2.6.4 and the option where the email address is replaced by a small icon. The img tag does not close with a / . I fixed it for myself in the cryptx.php, but thought I could share this issue here.
Hi
The ampersands used in the encrypted string throws a w3c html warning – any fix?
Thanks
K
Hi
can you give me a link to an example?
Ralf
I have installed the plugin on a WordPress site and it works great – except that in the footer I have an mailto: and it’s not encrypting that address.
Is there something further I need to do?
Is there a way to use this plugin to only encrypt part of a post? For example I want to encrypt the location of a video file in the post so a user cannot view source at then download the video. Please let me know. Thanks!
Hi,
there is no feature like this on my roadmap.
You can use a plugin like “WordTwit” to shorten your URLs, but this is no protection against downloading. If you want real download protection, you have to use a streaming server for your videos.
Ralf