Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2004-09-30 03:45:42

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archived] imm_encrypt: Email Encryption

Works PERFECT NOW.

Thanks for your help.

I took your comment

“// make key at least as long as data”

To mean that the amount of characters in the example key<code> $key = ‘foobarbaz’;</code> had to be the same or equal to the characters in the actual e-mail adress being output.

Thanks!
Jamie

Offline

#17 2004-09-30 03:49:42

mikhail
Archived Plugin Author
From: NY
Registered: 2004-09-23
Posts: 9
Website

Re: [archived] imm_encrypt: Email Encryption

Glad we got it working. My apologies for the problem. I updated the plugin, and edited the first post to reflect the changes.

Offline

#18 2004-10-11 10:28:27

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] imm_encrypt: Email Encryption

Hi,
I’m trying to use your plugin. I use the same page template for my front page and all of my sections.
So, in the head of the page I have: <code><script type=“text/javascript” src=“encrypt.js”></script></code>, and I copied encrypt.js into my root directory.

Now, on my front page, the e-mail address is being decrypted just fine. But when in a section, it is not.
Is this something I am doing wrong?

Offline

#19 2004-10-11 16:40:11

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [archived] imm_encrypt: Email Encryption

So what happens when using this plugin if a user doesn’t have javascript turned on? Does the email link not work? If so, this is a deal breaker for me. I can’t risk even one of my clients not being able to contact me.

Last edited by tinyfly (2004-10-11 16:40:27)

Offline

#20 2004-10-11 16:54:04

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [archived] imm_encrypt: Email Encryption

doggiez,

Using clean URL mode? If yes, you need to alter the src URL to src=”/encrypt.js” since section makes the browser think it’s a subdirectory therefor that src breaks.

tinyfly,

Without even have checked out this plugin I would say yes, the user need to have JS turned on in their browser otherwise it won’t work.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#21 2004-10-11 20:38:01

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] imm_encrypt: Email Encryption

obeewan,
that was it, thank you!

Offline

#22 2004-10-12 14:41:28

mikhail
Archived Plugin Author
From: NY
Registered: 2004-09-23
Posts: 9
Website

Re: [archived] imm_encrypt: Email Encryption

tinyfly,

Yes, JavaScript needs to be enabled for this to work. Without it the decryption will not take place and the email link will be useless.

Sorry if that makes it a deal breaker for you.

I suppose a NOSCRIPT tag could be added with an email form, such as the one dean made a plugin for, or simply have both already coded.

I knew this wouldn’t be perfect for every situation. The best advice is know your audience/users, and if this is a viable option then great, if not, that’s ok too.

Offline

#23 2004-11-12 02:04:23

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [archived] imm_encrypt: Email Encryption

Thanks for that pointer on clean URLs obeewan. I wondered why it wasn’t working properly on the archive page. Now it all becomes clear.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#24 2004-12-24 11:45:30

jeeves
Member
Registered: 2004-06-14
Posts: 31

Re: [archived] imm_encrypt: Email Encryption

Has anyone gotten this plugin working for content in articles?

Something like:<code><a href=“mailto:<txp:imm_encrypt>email@domain.com</txp:imm_encrypt>”>email me</a></code> works great inside a page templates, but if I paste it into an article the email does not get encrypted.

Offline

#25 2005-01-18 19:15:56

setar
New Member
From: Cape Town, South Africa
Registered: 2004-12-10
Posts: 9
Website

Re: [archived] imm_encrypt: Email Encryption

Having exactly the same problem. This works just fine:

<txp:imm_encrypt>email@domain.com </txp: imm_encrypt>

and produces an encrypted version of the Email. A link, however:

<a href="mailto:<txp:imm_encrypt>email@domain.com</txp:imm_encrypt>">Mail </a>

breaks the page and stops any further output after the link. Is there any workaround or am I missing some detail?

Thanks!

Oliver

Last edited by setar (2005-01-18 19:24:34)

Offline

#26 2005-01-19 04:41:33

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: [archived] imm_encrypt: Email Encryption

for me it doesn’t break the page, but the script doesn’t decode the address.

Offline

#27 2005-01-22 10:30:59

jeeves
Member
Registered: 2004-06-14
Posts: 31

Re: [archived] imm_encrypt: Email Encryption

I was thinking something very similar. When the plugin is used inside of a post, the plug-in still encodes the email address. What seems to be failing is the java script that decodes it.

Offline

#28 2005-01-22 18:02:58

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: [archived] imm_encrypt: Email Encryption

It never got decoded in page templates or forms. I never tried it in articles.

Offline

Board footer

Powered by FluxBB