Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] imm_encrypt: Email Encryption
The JavaScript is failing because there’s some extraneous comments in there. Delete everything in the script from where it says “Template usage:” on down. That stuff shouldn’t be in there.
Offline
Re: [archived] imm_encrypt: Email Encryption
Sorry I quickly threw it back on the server earlier when I recieved your reply. I have taken out the exteraneous items and I am still not getting the de-cryption on the client side. BTW thanks for your help.
Offline
Re: [archived] imm_encrypt: Email Encryption
It looks like your script got a little screwy. Download the following script and change the key to what you’re currently using. It should work after that.
<a href=“http://www.treetrybe.com/imm/tests/email-encrypt/encrypt.js”>the JavaScript</a>
I’ll add a link in the first post as well.
It also seems that my post of the JavaScript is bad. I will fix and update.
Last edited by mikhail (2004-09-30 03:33:32)
Offline
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
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
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)
Refresh Dallas and other Refreshing Cities.
Offline
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
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
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