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)
-   -   vBouncer: reduce server load by unsubscribing bouncing members from threads (https://vborg.vbsupport.ru/showthread.php?t=83486)

LunaTech 01-18-2007 12:04 AM

So I have this completely working in 3.6.4. I'm not sure what other members are having issue with. It correctly identifies bounced email and will automatically move users into the proper usergroup.

I uninstalled the 3.5 version, using the unistall option. Then I reinstalled using GNDI's version a few pages back.

I did make two changes in vbouncer-clean.php.

Replace the send_pm function with the folllowing (properly sends users pms):
Code:

function send_pm($phrase, $userid, $username, $bounces, $langid, $bouncing_email)
{
        global $vbulletin;

                $username = unhtmlspecialchars($username);
                eval(fetch_email_phrases($phrase, $langid));

        $pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);       

            $pmdm->set('fromuserid', $vbulletin->options['vbouncer_pm_sender_id']);
        $pmdm->set('fromusername', $vbulletin->options['vbouncer_pm_sender_username']);
                $pmdm->set_info('receipt', false);
                $pmdm->set_info('savecopy', false);
                $pmdm->overridequota = true;                  // Force pm send even if recipient's mailbox is full
                $pmdm->set('title', $subject);
                $pmdm->set('message', $message);
                $pmdm->set('dateline', TIMENOW);
                $pmdm->set('allowsmilie', false);           
               
        $pmdm->set_recipients($username, $botpermissions);
       
        if (empty($pmdm->errors) > 0) $pmdm->save();
        else echo '<pre>111' . print_r($pmdm->errors,true) . '</pre>';
}

Then find:

Code:

        if ($stats['ugid'] == 6 OR in_array($stats['ugid'], explode(',', $vbulletin->options['vbouncer_auto_ug_untouchables']))) continue;
And replace it with (fixes an issue with sending pms and email notices to users who are already bouncing):

Code:

        if ($stats['ugid'] == 6 OR in_array($stats['ugid'], explode(',', $vbulletin->options['vbouncer_auto_ug_untouchables'])) OR $stats['ugid'] == $vbulletin->options['vbouncer_auto_ug_destination']) continue;
That is all I've done. I'm also attaching a copy of my settings so you can see what your settings should look like.

To make sure you're setting this up right - first you create the bouncer email address.
Make sure it works.
Setup a usergroup for bounced users.
Uninstall vBouncer.
Install GNDI's vBouncer. Configure vBouncer.
Check the email account (make sure to leave the messages on the server, so connect using imap or a webmail system) and see if you have some bounced emails.

If not, wait.
If you do, run the Scheduled Task for vBouncer Collect.
Look at the cron log, is there an entry for vBouncer Collect? What does it say?
Look at your vBouncer Stats, are there entries there?
Check the email account again. Have the emails been deleted?

Now run the Scheduled Task for vBouncer Clean. Did it give errors or say done?
Check the cron log, is there an entry for vBouncer Clean?

There you go. I may not have time to answer many questions, but I'll try. Good luck!

redspider 01-23-2007 03:31 PM

I try to clean my db after unistall this hack and when I try to install again give me error any way to upgrade this hack so over write old data ?

Coldhands 01-23-2007 05:36 PM

Any chance of this being ported to 3.6 or if it works on vB 3.6?

kontrabass 02-12-2007 05:35 PM

[edit]

Works great - thanks LunarTech. Running 3.6.4.

A bit of any unrelated question: when I installed this I was using php mail. I just changed to SMTP mail using -f param Now, the From address is still my default vbulletin admin email, while the "Return-Path" is the vbouncer email. I'm assuming this is correct behavior. But it would be great to not have the default vbulletin admin email as the "from" address though - I always get people replying to post notifications :(

zlos 02-16-2007 11:57 AM

Quote:

Originally Posted by t3nt3tion (Post 1152190)
Is this vb 3.6.x compatible ??

Quote:

Originally Posted by Coldhands (Post 1165884)
Any chance of this being ported to 3.6 or if it works on vB 3.6?

I was using this hack with 3.5.x and I miss it really in 3.6.x.

It there any way to get this working without great manual work on 3.6.x series?
Maybe authour would agree that somebody else ports it to 3.6.x if he have had no time to do it by himself??? :)

xxcfdrr 05-02-2007 03:56 PM

Does this work on 3.6?

t3nt3tion 05-02-2007 04:21 PM

I checked the whole post. It seems it`s a douzy installing it, but getting it to work on a busy forum, it comes as a plus. It can run with v3.6.x, but there might be incompatibilities.

xlguy 05-04-2007 01:22 AM

I've got it working on 3.6.4 for me, using GNDI's version posted earlier in the thread and the instructions posted above by LunaTech. Thanks guys :)

dinodonk 06-28-2007 12:38 AM

does it work for 3.6.7?

neopet001 07-07-2007 07:54 AM

When I accessed install page, it always displayed the mysql error page,it showed that the sql query is not compatible.....


All times are GMT. The time now is 12:51 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.01617 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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