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)

Big Daddy Chemo 04-08-2004 03:46 PM

What app are you using to modify functions.php? I use Dreamweaver, Notepad, and wordpad but get parse errors on upload.

Chemo

kontrabass 04-08-2004 09:39 PM

Hmm...:
error:

Can't locate DBI.pm in @INC

I guess I need some soft of perl DBI module or something? Just guessing... ?

Thanks-

tamarian 04-08-2004 10:15 PM

Quote:

Originally Posted by Big Daddy Chemo
What app are you using to modify functions.php? I use Dreamweaver, Notepad, and wordpad but get parse errors on upload.

Chemo

I mostly use Quanta and Kate (Linux apps) on the desktop, or vi on the server.

I think many windows users use TextPad, or PHPEdit. Basically any programming editor, and make sure you upload as ASCII, not binary when using FTP.

tamarian 04-08-2004 10:16 PM

Quote:

Originally Posted by kontrabass
Hmm...:
error:

Can't locate DBI.pm in @INC

I guess I need some soft of perl DBI module or something? Just guessing... ?

Thanks-

Correct :)

kontrabass 04-09-2004 03:22 PM

Many many thanks for this fantastic hack. No more 500MB bounced email boxes! :D Took me awhile to get the perl DBD module installed correctly (with the correct --cflags and -lib options to point to my mysql source install), but it's working like a charm now.

Big Daddy Chemo 04-12-2004 06:38 PM

Anyone figure out how to port this for Exim?

influence 04-13-2004 06:17 PM

if ($vboptions['needfromemail'])
{
@mail($toemail, $subject, $message, trim($header), "-f $vboptions[webmasteremail]");
}
else
{
@mail($toemail, $subject, $message, trim($header));
}
} <-- remove

You need to take that extra code i have in bold out or else this script will give out some sort of functions error

tamarian 04-13-2004 06:35 PM

Quote:

Originally Posted by influence
if ($vboptions['needfromemail'])
{
@mail($toemail, $subject, $message, trim($header), "-f $vboptions[webmasteremail]");
}
else
{
@mail($toemail, $subject, $message, trim($header));
}
} <-- remove

You need to take that extra code i have in bold out or else this script will give out some sort of functions error

Thanks for catching this :)

First post updated.

Pseudomizer 04-22-2004 02:32 PM

Hi,

i would like to use this script but only for one reason: I got round about 10 registrations per day and 5 of them use invalid email addresses. :disappointed:

What i would need is a cron job which runs once a day one specific script which checks this bouncing emailaddress and afterwards deletes all invalid accounts from the usergroup "Awaing Email confirmation". :nervous:

Environment:
SuSe Linux 8.2, Perl 5.8.0, latest MySQL and latest Apach 1.x version and latest Qmail version mit POP3-before-SMTP installed.

Any help would be appreciated.

Cheers,

tamarian 04-22-2004 03:21 PM

Quote:

Originally Posted by Pseudomizer
Hi,

i would like to use this script but only for one reason: I got round about 10 registrations per day and 5 of them use invalid email addresses. :disappointed:

What i would need is a cron job which runs once a day one specific script which checks this bouncing emailaddress and afterwards deletes all invalid accounts from the usergroup "Awaing Email confirmation". :nervous:

Environment:
SuSe Linux 8.2, Perl 5.8.0, latest MySQL and latest Apach 1.x version and latest Qmail version mit POP3-before-SMTP installed.

Any help would be appreciated.

Cheers,

Should be easy to modify this script to do what you want.

The search can be restricted to only the usergroup awaiting email activation:

Change this qury:

"SELECT userid, username from user where email='$theemail'"

To:

"SELECT userid, username from user where email='$theemail' AND usergroupid=3"

And the unsubscribe query can be replaced with a user deletion query:

Change:

UPDATE subscribethread set emailupdate='$downgrade' where userid='$varname1'"

To:
DELETE from user where userid='$varname1'

This is a rough idea of how it can be done....


All times are GMT. The time now is 09:07 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.02081 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)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