vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Find, Optionally Email and Optionally Delete Inactive Members (https://vborg.vbsupport.ru/showthread.php?t=48964)

Dean C 02-17-2003 03:43 PM

Sounds good so far... I'll wait till this is out of beta before i install :)

Regards

- miSt

amykhar 02-17-2003 04:28 PM

I am going to give it a few more days. I think It's good to go, but want to wait and see if anyone else has issues.

Amy

djr 02-17-2003 09:57 PM

Does this email every users with xxx inactive days regardless of their usergroup? I have a seperate usergroup 'inactive' which holds all members who were inactive for a year and longer. I want to test it on myself first though (by manually putting myself to 365 inactive days)

Great hack! Absolutely what I've been waiting for!

/me clicks *installed*

- djr

amykhar 02-17-2003 09:59 PM

Regardless of the user group, it emails them.

Amy

djr 02-17-2003 10:03 PM

Sorry, already found out! The answer is obviously in the output of manageInactive.php :)
Ok, have to set myself to a longer inactive time then! ;)

Thanks for the prompt answer :cool:

- djr

djr 02-18-2003 06:56 PM

I'm having troubles, or I don't understand the hack. It installed without problems. I've set the options 'Email' and 'Delete' both to ON, so users will be warned first, wait for 15 days and then deleted if I understood correctly?

I add a user via vB Admin CP with the following info:
Username: Testuser
Usergroup: Inactive
Join Date: 1999-01-01 01:00:00
Last Activity: 1999-01-01 01:00:00 (same for Last Post and Last Visit)
All other relevant info set.

Fire up manageInactive.php. Output: Email Testuser
And boom! The user is deleted immediately, instead of waiting for fifteen days.

The e-mail got sent out, though (I used my own email-address). When I search for 'Testuser' in phpMyAdmin in the User table, NADA! Same for vB Admin CP.

What am I doing wrong? Please advise.

- djr

amykhar 02-18-2003 07:24 PM

I know what the problem is. Back in a sec with the fix.

Amy

amykhar 02-18-2003 07:28 PM

K, fixed. I updated the zip file. To upgrade, open your manageInactive.php and

Find:
Code:

$DB_site->query("UPDATE user set emailDate=".time()." WHERE userid=$user[userid]");
Add After
Code:

$user[emailDate] = time();

djr 02-18-2003 07:57 PM

Thanks for the quick fix!
I have been looking up and down the .php file, but just couldn't find it.. shows I'm better at hacking than coding ;)

All working great now.

If you want the lost password added to the message:
Quote:

If you lost your password for $bbtitle, please click the following link and follow the procedure. A new password will be set and emailed to you.
$bbtitle/member.php?s=&action=lostpw

djr 02-18-2003 08:38 PM

Sorry, back again :cool:

As this hacks only deletes the user, but leaves the redundant user settings (customavatar, private messages, etc etc) in the db, I was wondering if it's possible to update this hack so it deletes everything bound to that userid?
In admin/user.php there's already the php code for it (find // ###################### Start Remove #######################). Or maybe alot easier, just redirect to the user.php with all the paramaters necessary (userid, http_action 'kill'). I'd love to do it myself, but as said in my earlier post, I can't code :-(

Thanks for looking into it!

- djr


All times are GMT. The time now is 01:42 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.02491 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)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