vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   plugin - Replace email addresses in posts (https://vborg.vbsupport.ru/showthread.php?t=96195)

jugo 09-12-2005 10:00 PM

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.

jugo 09-14-2005 01:37 AM

Quote:

Originally Posted by theArchitect
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...
PHP 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

Quote:

Originally Posted by Marboosh.Net
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

Quote:

Originally Posted by Xajel
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.

AtoZ 10-25-2005 03:35 AM

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?

jugo 10-25-2005 06:12 PM

Quote:

Originally Posted by StarBuG
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.

jugo 10-25-2005 07:38 PM

Quote:

Originally Posted by theArchitect
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!

jugo 12-06-2005 12:54 PM

Quote:

Originally Posted by Marboosh.Net
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

AWI 12-15-2005 07:57 AM

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

Quote:

Originally Posted by dinodonk
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

Quote:

Originally Posted by Ian Cunningham
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).


All times are GMT. The time now is 04:26 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
  • Page Generation 0.01158 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete