View Full Version : plugin - Replace email addresses in posts
This Plugin Simply Replaces any email address in a post with a message.
I have "Email Address Removed for Security"
You can change it by editing the plugin.
To install simply go to the Plugins Manager and Import the XML.
Thanks for clicking "INSTALL"
:nervous:
UPDATE: Ignores email addresses in PMs.
UPDATE: Changes the link to send a PM to the user (Does NOT check wether user has "allow PMs" set or not...maybe later).
theArchitect
09-13-2005, 10:50 PM
Nice idea. Only problem is that it also removes e-mail addresses from PMs too.
Once you have fixed this you will have yourself an install.
Also, could you please amend it to replace the e-mail with a link to send the member who posted a PM instead?
At the moment all it does is to create an e-mail with the To address of the replacement text.
Nice idea. Only problem is that it also removes e-mail addresses from PMs too.
Once you have fixed this you will have yourself an install.
Also, could you please amend it to replace the e-mail with a link to send the member who posted a PM instead?
At the moment all it does is to create an e-mail with the To address of the replacement text.
I will work on the PM issue. :rolleyes:
BUT, the problem with replacing the email to a link to PM the poster is that the email address being posted may not necessarily be that of the poster. :ermm:
iSpanish
09-16-2005, 12:32 AM
Cool
Nice Plug
Marboosh Clicks Install
-=Sniper=-
09-16-2005, 11:24 AM
nice,
suggestion maybe a addon which converts the emails to images instead?
Acers
09-16-2005, 05:13 PM
am trying this code...
if (in_array($foruminfo['forumid'], array(35,71,73,74,75,76,77,78,79,80,81,82,83))){
$this->post['message'] = ereg_replace('[A-Za-z0-9]([A-Za-z0-9._]*[A-Za-z0-9]|())@[A-Za-z0-9]([A-Za-z0-9.\-]*[A-Za-z0-9]|())\.[A-Za-z]+', ' - Email Address Removed for Security -', $this->post['message']);
}
i am trying to make it hide emails in nntp forums.
and it ain't working. It is not hiding any mail address. the coditional looks ok is it?
iSpanish
09-19-2005, 09:27 PM
how can i make it replace email addresses in signature ?
Regards
Marboosh
Xajel
10-16-2005, 06:22 AM
how can i make it replace email addresses in signature ?
Regards
Marboosh
me too wanna same thing :ermm:
Kihon Kata
10-17-2005, 09:46 PM
me too wanna same thing :ermm:
I want to use this, but does this still remove emails from PMs also?
StarBuG
10-20-2005, 10:42 AM
What about replacing an email like
User@domain.com with User <at> domain [.] com
the replace variables could either be rotated with different ones or could be defined via the ACP
Wired1
10-20-2005, 02:24 PM
The hack itself is just an ereg_replace. If it was more customizable, e.g. you could whitelist certain email addresses so they would NOT be removed, then it would be a better tool IMHO.
I haven't had time to upgrade to 3.5 yet... but I need to replace email addresses. Since I'm using 3.0.6 and don't have plugins, is there a place I can put this code to do the same thing?
What about replacing an email like
User@domain.com with User <at> domain [.] com
the replace variables could either be rotated with different ones or could be defined via the ACP
I can work on something like this. It was meant as a simple way to do the task. i think it would be useful to have some option. When I have time i'll definitely add ore to it.
Nice idea. Only problem is that it also removes e-mail addresses from PMs too.
Once you have fixed this you will have yourself an install.
Also, could you please amend it to replace the e-mail with a link to send the member who posted a PM instead?
At the moment all it does is to create an e-mail with the To address of the replacement text.
You got what you wanted...finally took the time to mod it...gownload the updated file...
Thanks for the idea.
BeatificFaith
12-03-2005, 04:47 AM
This works great! Thank you so much :) .
harry_5
12-06-2005, 12:43 PM
Thanx!
how can i make it replace email addresses in signature ?
Regards
Marboosh
I guess youc an add the plugin to the hook that parses the signatures...i'll find it and upload it.
mashim2000
12-12-2005, 11:26 PM
hi,
great plugin !
thank you very much ...
I think this plugin does not work on the following:
- signature
- thread print
- post new reply : when you click "Post Reply" button .. the page opened shows the posts .. butt the emails is not replaced !
can you kindly update the plugin, so it can works on the specified areas !.
Respectively
Mashim2000
Thx jugo, great little feature. Installed on 3.5.2 and no problems.
dinodonk
08-25-2006, 01:06 AM
is it working for 3.6.0??
adwade
09-20-2006, 04:31 AM
is it working for 3.6.0??
Ditto, as I'm wondering exactly the same thing?
Ian Cunningham
10-18-2006, 06:56 PM
Is there any way to make this work with 3.0.0?
peterska2
10-18-2006, 09:25 PM
Is there any way to make this work with 3.0.0?
No however there are some modifications available for 3.0.x
https://vborg.vbsupport.ru/showthread.php?t=79402
https://vborg.vbsupport.ru/showthread.php?t=83128
Those should help or point you along the right direction
Ian Cunningham
10-19-2006, 08:41 AM
Thanks Kerry-Anne (from another Mancunian!) - I've seen those two already, but they aren't quite as good as this one unfortunately as they don't apply to any e-mail address within the message body (only ones using the e-mail button or mailto link).
Is there anywhere I could use the ereg_replace code in some of the /include php files to do the same job (basically bypassing the 3.5.0 plugin system to apply it to 3.0.0).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.