vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBouncer : Change thread subscribtion options for members with bouncing emails (https://vborg.vbsupport.ru/showthread.php?t=61303)

tamarian 09-08-2004 03:22 PM

Thanks ScottA. I haven't upgraded to 3.0.3 yet, so I've put your instructions into the first post.

rinkrat 10-12-2004 05:05 PM

What does this mean:

[root@www cgi-bin]# ./vbouncer.pl
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at (eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ExampleP, Pg, Proxy.
at ./vbouncer.pl line 80

JamesFrost 01-01-2005 11:55 AM

Incredible idea for a script - I've been starting to do this manually for the last few weeks to try and cut down on the 100's of messages I've been getting. I was starting to think about automating this, but had no idea where to start.

can someone just clarify what this means: (I presume I can just shove it in any directory that's not in the Apache tree??)
Quote:

Copy vBouncer.pl.txt to a directory on your server above apache level.
I'll probably move users into a 'moved on' usergroup automatically as well, as I don't want people posting on my board with an invalid address. I've already got this usergroup setup, together with an automatic warning at the top indicating they have been posting with an invalid e-mail address, and asking them to correct it. Members don't seem to mind, and are generally apologetic about this. It looks like automating this will be fairly simple looking at your script.

tamarian 01-01-2005 02:00 PM

Quote:

Originally Posted by rinkrat
What does this mean:

[root@www cgi-bin]# ./vbouncer.pl
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at (eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ExampleP, Pg, Proxy.
at ./vbouncer.pl line 80

This means you're Perl is missing some required libraries, like DBD::MySQL. You might want to install them using CPAN.

tamarian 01-01-2005 02:03 PM

Quote:

Originally Posted by JamesFrost
Quote:

Copy vBouncer.pl.txt to a directory on your server above apache level.
can someone just clarify what this means: (I presume I can just shove it in any directory that's not in the Apache tree??)

Correct. It's best to not have it accessable through a browser.

JamesFrost 01-02-2005 11:08 AM

Quote:

Originally Posted by tamarian
Correct. It's best to not have it accessable through a browser.

Script works brilliantly. Have added the following sql updates which might be useful to others :

Find :
Code:

my $qry3 = db_execute("UPDATE subscribethread set emailupdate='$downgrade'  where userid='$varname1'");
After, add :
Code:

my $qry4 = db_execute("UPDATE subscribeforum set emailupdate='$downgrade'  where userid='$varname1'");
my $qry5 = db_execute("UPDATE user set usergroupid=19  where userid='$varname1' and usergroupid=2");

qry4 cleans up any subscribed forums (instead of just subscribed threads)
qry5 moves any user who's e-mails bounce that is currently in usergroup 2 into usergroup 19.

Now I'm off to play around with Perl, and perhaps try to do some automatic e-mail processing routines (such as e-mail messages triggering forum posts! ) - What fun. :D

slix 02-25-2005 04:11 AM

This sounds cool, and is just what I have been thinking about, well almost. Problem is, I have a paying user group, and I don't want them downgraded to another group. Also will users be upgraded to their previous user group after they fix their email addy?

JamesFrost 02-25-2005 07:17 AM

Quote:

Originally Posted by slix
This sounds cool, and is just what I have been thinking about, well almost. Problem is, I have a paying user group, and I don't want them downgraded to another group. Also will users be upgraded to their previous user group after they fix their email addy?

qry5 above will do the downgrade on a per group basis, so wont downgrade your paying group if you dont want it to.

You cant really tell when someone fixes their e-mail, as no messages will be bounced - this would need to be done manually.

T3MEDIA 03-13-2005 08:42 PM

to scarry to install.

Lionel 03-29-2005 05:54 PM

Can this be made instead to change "receive emails" from other members and admin? I am getting a load of email back from PM undelivered or other things.


All times are GMT. The time now is 10:52 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.01946 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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