![]() |
EMail Address Obfuscator v1.0.2
This will obfuscate email addresses in posts in order to prevent email harvesting. There are a couple of methods available:
This plugin also partially strips the email addresses in the archive (the domain name is removed). Update 1.0.1 * [fixed] wysiwyg code isn't screwed up anymore * [added] added support to select the font to use (builtin fonts, GD bitmap fonts or TTF fonts) Update 1.0.2 * [fixed] fatal error when rebuilding postcache * [fixed] invalid hash when quickposting\editing via AJAX * [changed] the image tags now use the CSS class "inlineimg" that aligns them vertical center |
Great stuff, works fine using image conversion. Thank you! You might want to mention that the options panel can be found under vBulletin options ;)
|
Thanks, this is great. Clicks install.
|
this is just great... and can be enhanced by using the image setting for the $vbulletin->options['imagetype'] and the font related to it... $vbulletin->options['gdfont'] or $vbulletin->options['magickfont']....
;) |
Nice! Thankyou :)
|
thanks, this works a treat. Great hack, ** Clicks Install **
|
Pretty good idea and solution :) I dont have much of a need for it myself but when an email adres is posted I would like it to be 'safe' from harvesters :)
A few notes though (by far the bigger part of this post, dont take it wrong though :p) It also changes the output on the editing of a post. In WYSIWYG this means that (atleast with javascript) you cant see the email adress :p And is this proper? On HTMl entities it outputs it like this <a href="mailto:%blablabla">adres@bla.com</a> and on javascript (which I admittedly dont know much about, nor do I know about the way harvesters work) it puts in a undisclose followed by a full email link like normal (honestly wondering about how that works :)) Heres something that should prove very very proper (if possible to put it with a automated fashion). <script type='text/javascript'>var a = new Array('s','t','a','r.','o');document.write("<a href='o:"+a[1]+a[0]+a[2]+a[3]+a[4]+"'>"+a[1]+a[0]+a[2]+a[3]+a[4]+"</a>");</script> This format for an email adress (made this one manually). Any chance of doing it like that? It replaces both the mailto/link and hussles it all up in output making it look (even if it does go past the codes) like random blabber. |
hmm, I never use the wysiwyg editor, so that might be a bug.
as for the output, what you see it not what the browser actually received. For example firefox\mozilla displays the evaluated html when you view the selected source. Use the "view page source" to see the actual code. With HTML entities the actual HTML code is HTML Code:
<a href="mailto:%74%65%73%74%40%65%6d%61%69%6c%2e%63%6f%6d">test@email.com</a> HTML Code:
<script type="text/javascript">document.write(unescape('%3c%61%20%68%72%65%66%3d%27%6d%61%69%6c%74%6f%3a%74%65%73%74%40%65%6d%61%69%6c%2e%63%6f%6d%27%3e%74%65%73%74%40%65%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e'));</script> |
Thank's El_Muerte! Works great.
|
Quote:
|
no you can't, at least not yet, currently it uses the colors from the currently selected style
|
Quote:
[high]* Lea Verou clicks install :)[/high] |
I like the update, thanks :)
For my personal preference, I didn't like the alignment of the image against the text of the message. I made the following modification so the image is aligned with the middle of the text instead of the bottom. The Change: PHP Code:
PHP Code:
|
I get the following error when i try to rebuld my cache
Fatal error: Call to undefined function: convertemailaddress() in /home/hamplex/public_html/includes/class_bbcode.php(377) : eval()'d code(11) : regexp code on line 1 |
hmm... looks like the cache rebuild thing never calls the global_start hook
this is kinda annoying, isn't there a super global start hook? |
I installed it and got an "invalid hash" message, instead of the email address being converted. Any idea?
|
It's working fine for vB3.5 RC3 :D
|
Just installed on 3.5 gold - worki perfect
http://www.ut2007world.com/forum/showthread.php?t=689 @El_Muerte : UnrealScript wasn't challenging enough - now also vb hacking :D :D :D |
a well needed mod.
|
Quote:
What browser are you using? Quote:
|
Quote:
|
Thanks, installing this soon.
edit; Installed it and it's working great, thanks a lot! |
hmmm.. using firefox. It gave me invalid hash after posting an email address. I checked it in IE and it worked fine, then I refreshed my firefoxpage and it showed correctly.
Awesome hack and I am using it, but I would like to know when it is upgraded. *clicks install* |
does this only happen when using quick reply? or also when using the normal reply form?
|
It happens the same for each instance.
It only seems to affect the posters browser though - I tried it both ways, and got "invalid hash" Then I refreshed the page and it showed correctly on both instances. So, I posted again to recieve the invalid hash. I then opened the thread in a different browser and it looked fine. So, other than the occasional PM wondering why that happened from the one user who will see "invalid hash" rather than the actual email image prior to refreshing the page - I don't see a problem. |
it should be fixed now, the AJAX stuff caused the browser to receive the HTML code before the hash was saved to the database
|
Yep, I just tried it and it's all good. Thanks man!
|
Yeah, I was using Firefox too, sorry I didn't get back to you.
Thanks for the fix, this is a great plugin! |
Installed 1.0.2 and tried to create a new thread (which did have subject and message longer than 10 chars) and I got this error:
The following errors occurred when this message was submitted:I'm guessing the regex is striping everything out of those variables. |
couldn't reproduce that error
the rewriting of the email address is done when the vbcode parsing is completed and as far as I can tell the length it checked before the vbcode is parsed. |
Thank's El_Muerte for the up-dates!
|
Great hack, thanks!
|
I just installed it, works great. Great work
|
When you install DC Seo vB URL Rewrite, it doesn't work.
Maybe you could make a version for use with the DC Seo vB URL Rewrite mod too? :) |
Quote:
That would be odd actually since afaik the image isn't rewritten by the DC SEO mod. |
Installed it, works great, thank you!
Feature suggestions: - option to keep everything unmunged for specified usergroupids - option to have a <noscript> section (applicable when Javascript is the method) to display text such as "user@<hidden>". - option to look for and munge other email addresses, e.g. <address@tld> [address@tld] mailto:address@tld These don't get parsed by vBulletin but they're certainly harvestable. |
Installed on 3.5.2 and seems to work fine. How would I make a custom algorithm?
|
Quote:
|
Works like a charm on my 3.5.2. Thanks.
|
Installed and works in 3.5.3 but when using Image, the automatic link isn't active. Usres will have to manually type in the email address to their email prog. Is the image supposed to be an active link?
|
All times are GMT. The time now is 03:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|