Page 1 of 1

new: event_email_bot_obfuscator - Test it!

Posted: Tue Nov 17, 2009 10:56 pm
by stm999999999
Hi!

I make my first plugin from scratch! :D

Code: Select all

Markup: clickable email adresses - but with antispam
Makes email addresses clickabe, but obfuscates them to block spam harvester bots
http://blog.stephan.manske-net.de/uploa ... scator.zip

it would be nice if someone with experience can have a look at it.

But I have one little problem:

after uploading AND installing the plugin, going to the list of installable plugins, my plugin is twice times in the list!

http://img696.imageshack.us/slideshow/w ... ntwice.png

some differences:
  • pointing the mouse over the first plugin item, it gets a grey background (like the other plugins) for it. pointing on the second: the first one gets grey not the second one!
  • the link on the second install button is very strange: "serendipity[pluginpath]=" is empty, "[install_plugin]=" starts with a "@"
and simetimes the first plugin has no "allready installed" while it is of course.

any idea?

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Posted: Wed Nov 18, 2009 8:27 am
by garvinhicking
Hi!

DO you have a copy of that plugin somewhere? If it starts with a "@" it would mean that s9y regards it as an internal plugin...

Regards,
Garvin

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Posted: Wed Nov 18, 2009 4:03 pm
by stm999999999
I do not know where I should have a copy.

My watching:

If I delete the directory of this plugin via ftp in my webspace, the plugin disappears in the list of installable plugins (both appearances). And I have a plugin with errors in my installed list

Fehler: serendipity_event_email_bot_obfuscator:7473eb5xxxxx

I delete this.

I go to the list installable plugins, there is no item of my plugin.

I upload my plugin via ftp to /s9y/plugins/

again: going to the list installable plugins:

there is ONE occurrence of my plugin, with:

Code: Select all

serendipity[adminModule]=plugins&serendipity[pluginPath]=serendipity_event_email_bot_obfuscator&serendipity[install_plugin]=serendipity_event_email_bot_obfuscator
I install it. works perfect.

again: going to the list installable plugins:

NOW there are the two plugin entries for my plugin - like on the images in the first post.

one: "bereits installiert"
one: serendipity[adminModule]=plugins&serendipity[pluginPath]=&serendipity[install_plugin]=@serendipity_event_email_bot_OBFUSCATOR

AND: Waiting some minutes, going to the list of installable plugins there are still two entries but this time (like on the first image here: http://img696.imageshack.us/slideshow/w ... ntwice.png) both have an install-me-button! of course in truth it is still installed). Reloading the page, there is the correct "bereits installiert" (already installed) again.

Is it possible that there is an error in the plugin-code?

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Posted: Wed Nov 18, 2009 4:34 pm
by garvinhicking
Hi!

Is OBFUSCATOR in the end really spelled in lowercase at the one time and in uppercase in the other? Is your filename uppercased? That could be a problem, s9y usually works with lowercasing...

Regards,
Garvin

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Posted: Wed Nov 18, 2009 4:58 pm
by stm999999999
Yes, it is.

And that was the fault! :D

my class name was

Code: Select all

class serendipity_event_email_bot_OBFUSCATOR extends serendipity_event
corrected that, everything works fine! :D :D :D

so, there is the working version:

http://blog.stephan.manske-net.de/uploa ... scator.zip

Should somebody test it first or do you want to upload it directly to the repository? (if yes, I want to change the version to 1.0 before)

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Posted: Wed Nov 18, 2009 5:41 pm
by garvinhicking
Hi!

Great :)

Maybe we can wait a few days and then commit it, if thats okay with you? Do you have CVS access and want to commit it on your own?

Regards,
Garvin

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Posted: Wed Nov 18, 2009 11:11 pm
by stm999999999
Maybe we can wait a few days and then commit it, if thats okay with you?
no problem

so, folks: Test it! :D
Do you have CVS access and want to commit it on your own?
I do not - and I think CVS is a riddle wrapped up in an enigma to me :oops:

Re: new: event_email_bot_obfuscator - Test it!

Posted: Tue Nov 24, 2009 12:52 am
by stm999999999
any test reports meanwhile?

Re: new: event_email_bot_obfuscator - Test it!

Posted: Tue Nov 24, 2009 9:52 am
by onli
I'm not totally sure what's the pupose of this. Which email is obfuscated and how exactly?
sincerely

Re: new: event_email_bot_obfuscator - Test it!

Posted: Tue Nov 24, 2009 8:03 pm
by stm999999999
ok, testing the documentation is testing, too :-)

the plugin has two main features:

a) like a "make a link clickable" for www-Links you can write a mail@example.com without any html-code into a post or a static page. The plugin detects this and convert it to

Code: Select all

<a href="mailto:mail@example.com>mail@example.com</a>
b) many people fear about address-harvester-bots. So I found two alternatives to "hide" a address from this bots - but without using such crapy non-accessible things like text-as-an-image:

(ok, in the moment I have a test: two adresses, one obfuscated one clear-text, on a good visited page - in the last months no spam to any of this adresses)

1) a javascript builds the address on the fly:

Code: Select all

<script type="text/javascript">var username = "mail"; var hostname = "example.com";document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + username + "@" + hostname + "<\/a>")</script>
2) IMHO much better - using html entities, so every browser will display it normal, but as I was told, harvester will have their problems:

Code: Select all

<a href="mailto:mail@example.com">mail@example.com</a>

3) or doing nothing :-)

TODO:

use function b) for the mail-adress of a commentar or so

Re: new: event_email_bot_obfuscator - Test it!

Posted: Thu Dec 10, 2009 1:34 pm
by stm999999999
OK, no panic messages from testers, so Garvin, can you upload it to spartacus, please?

http://blog.stephan.manske-net.de/uploa ... or-1.0.zip

I bump the version number to 1.0 and add an helpfile until last version.

Re: new: event_email_bot_obfuscator - Test it!

Posted: Thu Dec 10, 2009 1:45 pm
by garvinhicking
Hi!

Thanks, committed!

Regards,
Garvin