Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
dtj_obfuscated_emails for Textpattern 4.7.x?
Hi,
in the Textpattern versions prior 4.6.x I using dtj_obfuscated_emails. After 4.6.x this Plugin doesn’t work in Textpattern, it getting error-lines in txp-style.
Another Plugins for make “don’t-reading from spam/bots” email-adresses are here, but they only replacing the “@” to an “( at )” or something – I dont wish this way.
The Plugin dtj_obfuscated_emails has replacing every letter single to an html-sign included the “mailto:” in the <a href="mailto:emailadress">
<a href=”mailto:otto@domain.de”>otto@domain.de</a>
This outputting a for visitors visible mailto-link with mail-adress, but not for spam-bots/pishing the mailadress for spam.
Unfortunately this Plugin dont work with textpattern 4.6.x and above. Could please make someone this Plugin again to work? :-)
Here is the Link to this Plugin: dtj_obfuscated_email-Plugin
best regards
Lythande
Offline
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
When you say “doesn’t work” what do you mean? The output isn’t converted at all? You get warnings in debugging/testing mode about an unregistered tag? You get errors and a broken site?
The plugin doesn’t look very complicated. On (very) brief inspection I can’t see a reason for it to break completely in 4.6+. Two things might need doing depending on your version of PHP and Txp:
- Register the tag
- Change
split()
toexplode()
orpreg_split()
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
at moment is my testing-website broken, after installation with uprgade from 4.6.3 to 4.7.0. – I have follow the Instructions what I have solved without error before (from 4.5.4 to 4.5.7) on my living website.
On the Testsite I getting an 500 internal error (the folder has drwxr-xr-x / 755) and in Default I only see a blue problem_connecting_update_server
Sorry, I can answer you, because I have not a working test-textpattern now… :(
Offline
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
my testing-website is working now. I tested the dtj_obfuscated_email again and I irritated to see, that it works fine… with Textpattern-Version 4.6.2.
Offline
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
Hi,
I had having only “Test”-Mode. There works fine. But in the “Debug”-Mode I getting this Line:
Tag error: <txp:dtj_obfuscated_email email=“persona@domain.de” mode=“hex” /> -> Textpattern Notice: dtj_obfuscated_email tag is not registered while parsing form artikel-body on page Kunstführungen
What is happens? What I must do?
The code dtj_obfuscated_email
is in the Article itself.
Edit: The Plugin “dtj_obfuscated_emails” are active.
Last edited by lythande (2018-06-04 13:54:24)
Offline
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
lythande wrote #312318:
Hi,
What is happens? What I must do?
The codedtj_obfuscated_email
is in the Article itself.Edit: The Plugin “dtj_obfuscated_emails” are active.
Hi. Edit the plugin and just add
Txp::get('\Textpattern\Tag\Registry')
->register('dtj_obfuscated_email');
in the beginning of the code
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
Thank you very much, that helps! :-D
Offline
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
I have see in soo_toc, that was written:
if(class_exists('\Textpattern\Tag\Registry')) {
Txp::get('\Textpattern\Tag\Registry')
->register('soo_toc');
}
Maybe its better to make the code above inside of if(class_exists...
. I have do it. :)
if(class_exists('\Textpattern\Tag\Registry')) {
Txp::get('\Textpattern\Tag\Registry')
->register('dtj_obfuscated_email');
}
Offline
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
Yes, that works too. The if(class_exists…
is just there to stop it producing an error in older versions of textpattern that didn’t have that function.
TXP Builders – finely-crafted code, design and txp
Online
Re: dtj_obfuscated_emails for Textpattern 4.7.x?
You could use yab_mail too.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline