vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - EZ Bounced Email Management for Admins (https://vborg.vbsupport.ru/showthread.php?t=138884)

edward hamilton 02-20-2010 07:06 PM

I know some people won't like this but after having seeing too many users trying to reuse email addresses that bounce, I modified exbounce.php
after
PHP Code:

// Update all of bouncing user's subscribed FORUMS to emailupdate = 0
        
$vbulletin->db->query_write("
            UPDATE " 
TABLE_PREFIX "subscribeforum
            SET emailupdate = 0
            WHERE userid = " 
$buser['userid'] . "
        "
); 

I added
PHP Code:

//  #########  ADD BOUNCED EMAIL ADDRESS TO BANNED EMAIL ADDRESS

         // Get list of banned email addresses from the datastore
        
$banned_email $db->query_first("
            SELECT data FROM vb_datastore
            WHERE title = 'banemail' "
);
        
        
$banned_email $banned_email['data'];    

        
// Get new email address to ban from bounced email address 
        
$userid $buser['userid'];
        
        
// Get new email address to ban from bounced email address 
        
$bemail $db->query_first("
            SELECT email FROM vb_user
            WHERE userid = '
$userid' ");
        
        
$bemail $bemail['email'];

        
// Add new bounced email address to existing banned email addresses
        
$banned_email "$banned_email $bemail"
        
        
// Update banned email list  

        
$vbulletin->db->query_write("
            UPDATE " 
TABLE_PREFIX "datastore 
            SET data = '
$banned_email'
            WHERE title = 'banemail' "
);
             
            
//  ######### 

Now when I follow the link in the bounced email the bounced email address is added to the banned email address list in vB options.

I'd like to add another link in the bounced email that would switch to this additional script, but for the time being this will do for now for me. Something like appending another variable ($b) to the end of the email bounce link like if(isset($_GET['b'])){ execute above code}

I only bounce email address that are clearly spam like mail.ru sdffjk@gmail and those with spammy usernames.

This certainly won't work for everyone but it might give you an idea so you can tailor this great mod to work better for you.

Antivirus 03-08-2010 01:39 AM

Quote:

Originally Posted by gbechtel (Post 1915785)
I want to edit ezbounce.php to also clear out the invalid email address to work in conjunction with this mod but I have tried a few variations of the code below with no luck, I just get a blank white screen when I click on the link in the bounced email message and ezbounce.php is not working at all.

Can someone help me with the correct code to use? Thanks!

Code:

// Clear current bad email address
  $vbulletin->db->query_write("
  UPDATE " . TABLE_PREFIX . "user
  SET useremail = ???
  WHERE userid = " . $buser['userid'] . "
  ");


I would not suggest deleting email addresses from the user table. It would be better to delete the user using the user datamanager class IMHO.

Quote:

Originally Posted by MrD (Post 1937184)
Hi,
will this Addon ported to vb4?

Eventually, when I decide to upgrade all my forums from 3.8.x to 4.x series, i will give this mod a complete rewrite, however i don't expect it to be until at least version 4.1.0 is released.


Quote:

Originally Posted by luket79 (Post 1986695)
I am considering installing this, however, will it disable the "Receive Friend Request Notification", as this will send an email to a user if they are befriended? All of the users in my board have this enabled by default.

I haven't looked into what condition/bitfield is used to determine this condition. I imagine it's a bitfield permission in the user table, which i can put on to-do list for future versions.

SBlueman 03-25-2010 05:36 AM

Quote:

Originally Posted by SBlueman (Post 1883923)
When I click on the link in the email:
I am getting this error when clicking on the link:
Quote:

Not Found

The requested URL /forum/admincp/ezbounce.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I do have the file uploaded to my site and am still experiencing this problem.

SBlueman 03-30-2010 04:09 AM

What am I supposed to enter into the URL field in the vBulletin options? Is it:

http://sitename.com/forums/admincp

or

/forums/admincp

or

/admincp

???

Antivirus 04-04-2010 05:08 AM

Quote:

Originally Posted by SBlueman (Post 2012637)
What am I supposed to enter into the URL field in the vBulletin options???

You need to enter the full URL such as: http://www.mysite.com/forum/admincp

also make sure there is no trailing slash...

BadgerDog 04-15-2010 03:06 PM

This was a very valuable add-on for us under 3.67 ... thanks ...

Has anyone tried using it under vb4.03, as we're starting to upgrade using a development server ?

Thanks for any feedback ... :)

Regards,
Badger

58D 04-23-2010 08:06 PM

Can anyone tell me where the template for the PM that is sent is located. I'd like to see if it needs some personalization. Thanks.

Jake

Antivirus 05-10-2010 08:49 PM

Quote:

Originally Posted by 58D (Post 2026155)
Can anyone tell me where the template for the PM that is sent is located. I'd like to see if it needs some personalization.

For the PM title, edit phrase: anti_your_email_bounced_sub
For the PM message, edit phrase: anti_your_email_bounced_body

BellyBelly 05-10-2010 11:20 PM

Also interested in using this on vb 4

Supramania 05-25-2010 02:25 PM

I had this in vB3.8 and I really miss it after moving to 4.


All times are GMT. The time now is 06:32 PM.

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.01848 seconds
  • Memory Usage 1,764KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete