Closed (outdated)
Project:
SpamSpan filter
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2011 at 15:24 UTC
Updated:
17 Sep 2025 at 21:29 UTC
Jump to comment: Most recent
Comments
Comment #1
Wolfgang Reszel commentedHi,
I don't know if it is the best solution. I added the following functions to spamspan.module so it affects every mailto-link which is rendered by theme_link().
Comment #2
Anonymous (not verified) commentedHow to change code #1 so it can moved to the template.php?
Let me ask it different. Is there a way to have all mailto links in the webpage (views, blocks , ..) protected by spamspan with some code in the template php file?
Comment #3
Anonymous (not verified) commentedI'ld also like to second this as an issue, most of my email addresses are not in the content, but rather in a view block. It would be great to be able to run this on those blocks as well. This view blocks aren't using a filter on say the User->email address link.
---------
Never mind I found the spamsan display filter on the email link. sometimes I can't see past the problem.
http://drupal.stackexchange.com/questions/38595/obfuscating-email-addres...
Comment #4
peterx commentedI added a page to the documentation. The Email Field module could add a similar page to their documentation.
Comment #5
jennypanighetti commentedI'm still having an issue with this. I have a plain text field that is being used for an email address, and it's doing a rewrite before passing the results on. I do not see Spamspan in the "Formatter" dropdown, and Spamspan is NOT being applied on the end result display block.
Comment #6
jennypanighetti commentedComment #7
hanskuiters commentedI managed to get this working in a custom view template for the mail field.
Go to [path to your modules]/views/theme and copy the file views-view-field.tpl.php to you theme folder.
Change to name of that file to views-view-field--mail.tpl.php.
In that file change:
print $output;to:
Clear cache at /admin/config/development/performance
Comment #8
nattyweb commentedThanks HansKuiters - most helpful and I can report this worked well for me. I made a slight alteration in case I disabled the module in future:
Comment #9
benstallings commented