Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-26 15:01:58

jrgip
Member
Registered: 2006-04-19
Posts: 12

tinymce and spam proof email

I adopted the hak_tinymce plugin to make editing easier for a client but have run into an obstacle. The editor converts all encoded email addresses back into their original form when I load the html into the article. How can I escape the default conversion of the characters.? I tried using textpattern tags in combination with the editor but they are ignored. Any help would be great.

Offline

#2 2006-07-26 23:18:53

NickML
Member
From: Scotland
Registered: 2006-05-14
Posts: 58
Website

Re: tinymce and spam proof email

I’m not quite sure what you are asking, but I use this to take a plaintext email in a custom field, and to output it in a mailto: link where the email appears normal in the email client, but munged in the page html.

<code>
<txp:php>
$c = custom_field( array(“name”=>“CUSTOMFIELDNAME”));
$a = array(“email” => $c, “linktext”=> “THE TEXT ASSOCIATED WITH YOUR LINK”, “title” => “THE LINK TITLE” );
echo email ( $a );
</txp:php>
</code>

The code isn’t mine – it was posted by someone else in these forums.

~Nick

Offline

#3 2006-07-27 03:36:39

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: tinymce and spam proof email

It seems to leave hex encoding alone, so you could always encode the addresses that way. Here’s a tool for it

I think if you change your valid elements parameter in the init to * it will allow any tag as long as it’s well formed. That might allow TXP tags. I’m not sure I haven’t tried it. This will allow any other junk tags too though.


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB