Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-05-22 18:05:30

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

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=”&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#111;&#116;&#116;&#111;&#64;&#100;&#111;&#109;&#97;&#105;&#110;&#46;&#100;&#101;”>&#111;&#116;&#116;&#111;&#64;&#100;&#111;&#109;&#97;&#105;&#110;&#46;&#100;&#101;</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

#2 2018-05-22 18:12:37

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

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:

  1. Register the tag
  2. Change split() to explode() or preg_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

#3 2018-05-22 18:23:01

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

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

#4 2018-05-22 19:15:55

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

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

#5 2018-06-04 13:53:22

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

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

#6 2018-06-04 14:30:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: dtj_obfuscated_emails for Textpattern 4.7.x?

lythande wrote #312318:

Hi,

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.

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

#7 2018-06-04 14:40:44

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: dtj_obfuscated_emails for Textpattern 4.7.x?

Thank you very much, that helps! :-D

Offline

#8 2018-06-04 18:15:29

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

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

#9 2018-06-05 12:44:24

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

#10 2018-07-26 08:12:21

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

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

Board footer

Powered by FluxBB