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)

Antivirus 06-18-2008 05:17 PM

Quote:

Originally Posted by Ryloth (Post 1543519)
plus a million points if you can modify this to automatically handle the bounces

As I have said in the past, there's no plans to add automatic processing of bounces, as it's simply a bad idea... too many bounces are due to mailbox full, yahoo deferred delivery, earthlink human verify, etc... Sorry :o

ncangler 06-19-2008 12:17 PM

Thank you so much for this modification. It has been great! I do have one question. One of the features you mention above has me wondering if I have it set correctly:
Quote:

(if turned on) When member updates & confirms their new email, they are returned to original usergroup.
I don't see an option in vBulltion Options>EZ Bounce Management for Admins to turn on an option to return a member to their original usergroup after updating their email address. I've seen several members that it appears have updated their address but they are still in the "Bounced" display group. Did I miss something?

Thanks in advance for your help and support. :)

TraumTeam 06-20-2008 10:44 AM

Code:

        // Get ezb_oldugid for update
                $sql = $vnulletin->db->query_first("
                        SELECT ezb_oldugid
                        FROM " . TABLE_PREFIX . "user
                        WHERE userid = " . $vbulletin->userinfo['userid'] . "

Code:

        // Get ezb_oldugid for update
                $sql = $vbulletin->db->query_first("
                        SELECT ezb_oldugid
                        FROM " . TABLE_PREFIX . "user
                        WHERE userid = " . $vbulletin->userinfo['userid'] . "

I had to change that after fresh install of the product :)
There were errors during setup.

better fix this ;)

regards
Rob

Benjy 06-26-2008 10:11 AM

Thanks for this great little mod! :up:

I changed a couple of lines (vB 3.7.2):

From:
PHP Code:

global $vbphrase$db;
$buser $vbulletin->db->query_first("
SELECT * FROM " 
TABLE_PREFIX "user
WHERE email LIKE '%" 
$vbulletin->db->escape_string_like($toemail) . "%'
"
);
$bounceurl $vbulletin->options['ezb_admincpurl'] . "/ezbounce.php?u=" $buser['userid'];
$bouncestring "<a href=\"$bounceurl\" target=\"_blank\">$bounceurl </a>"

To ($db is not used, I check for a perfect match (faster) and I use vB's admin path):
PHP Code:

global $vbphrase;
$buser $vbulletin->db->query_first("
SELECT * FROM " 
TABLE_PREFIX "user
WHERE email = '" 
$vbulletin->db->escape_string($toemail) . "'
"
);
$bounceurl $vbulletin->options['bburl'] . "/admin/ezbounce.php?u=" $buser['userid'];
$bouncestring "<a href=\"$bounceurl\" target=\"_blank\">$bounceurl </a>"


noppid 06-27-2008 04:31 PM

I didn't see the vbblog handled here so i thought I'd share this. It's out of some code I use and it may help. I dunno, your mileage may vary. But this turns off the blog stuff that may send email.

PHP Code:

    // blog
    
$blog=array();
    
$blog[subscribeothers] = 'none';
    
$blog[subscribeown] = 'none';

    
$isblog $db->query_first("SELECT productid FROM " TABLE_PREFIX "product WHERE productid='vbblog'");
    if(
$isblog[productid] == 'vbblog')
    {
        
$blogman =& datamanager_init('Blog_User'$vbulletinERRTYPE_CP);
        if (
$bloguserinfo $db->query_first("
            SELECT bloguserid
            FROM " 
TABLE_PREFIX "blog_user
            WHERE bloguserid = 
$buser['userid']
        "
))
        {
            
$blogman->set_existing($bloguserinfo);
        }
        else
        {
            
$blogman->set('bloguserid'$buser['userid']);
        }

        
$blogman->set('subscribeown'$blog['subscribeown']);
        
$blogman->set('subscribeothers'$blog['subscribeothers']);
        
$blogman->save();
    } 

I grabbed the most obvious userID var from the hack, pretty sure that's the one to use.

I dunno if ya need any includes or not to use this in this hack or the best place to insert it. I'm just making a suggestion. Most of the queries can be eliminated using the datamanager too if ya ever update. ;)

Cool hack antivirus.

Peace

Antivirus 06-27-2008 05:15 PM

Quote:

Originally Posted by TraumTeam (Post 1554409)
Code:

        // Get ezb_oldugid for update
                $sql = $vnulletin->db->query_first("
                        SELECT ezb_oldugid
                        FROM " . TABLE_PREFIX . "user
                        WHERE userid = " . $vbulletin->userinfo['userid'] . "

I had to change that after fresh install of the product :)

Yikes! I just updated the zip file with the correction... thanks for pointing that out TraumTeam :o

reverse1312 06-28-2008 05:25 PM

very very useful hack !!

little suggestion:
would it be possible to have another author for the PM to the users than the one of main admin, to avoid people to believe it's a personalized behaviour against them ? :-) We could have some more not personal acount like "site server" or so...

Thank you

Martin

Antivirus 07-01-2008 10:25 PM

Quote:

Originally Posted by reverse1312 (Post 1561400)
would it be possible to have another author for the PM to the users than the one of main admin

Untested, but I think all you need to do is find the following within the ezbounce.php script:

PHP Code:

$pmdm->set('fromuserid'$vbulletin->userinfo['userid']); 
$pmdm->set('fromusername'$vbulletin->userinfo['username']); 

Then change $vbulletin->userinfo['userid'] to the userid of the member you want to send the PM and change $vbulletin->userinfo['username'] to that same user's username.

Alfa1 07-01-2008 10:46 PM

Yes, that works.

reverse1312 07-02-2008 12:06 AM

Quote:

Then change $vbulletin->userinfo['userid'] to the userid of the member you want to send the PM and change $vbulletin->userinfo['username'] to that same user's username.
Thank you. very much I'll try that :-)

Martin


All times are GMT. The time now is 11:24 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.02400 seconds
  • Memory Usage 1,772KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (5)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