vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Hunt out Inactive Users (https://vborg.vbsupport.ru/showthread.php?t=38448)

Takara 05-08-2002 10:00 PM

Hunt out Inactive Users
 
I made this cause someone asked for it in the requests. I'm not even sure if it counts as a hack (just two lines of code to hack :p)!

Basically you plop the inactiveusers.php down in your admin dir. It will list all your users, show important info such as When they were last active, when they last posted, when they joined etc.
If they havent posted at all, and have been a user for more than 3 days (you can specify how many days) then it will say they are inactive! And if you click the "YES!" link (under the Inactive? column) it will let you delete the person (it prompts you first).

You can add a link to the admin CP. Here are the 'full' steps on how to install the 'hack':

Step One: open index.php in your admin folder

Find:
PHP Code:

makenavoption("Build Mailing List","email.php?action=genlist"); 

REPLACE WITH:
PHP Code:

makenavoption("Build Mailing List","email.php?action=genlist","<br>");
makenavoption("Find Inactive Users","inactiveusers.php?"); 

Step Two:
Copy inactiveusers.php (attached below) into your admin folder

And you're done! hard, eh ;p
I was going to add the option to specifiy how many users per page since this would be bad for larger forums. But I couldnt figure it out. If anyone wants to give me a hand with that I would appreciate it.

Have fun ^_^ :bunny:

[EDIT: This hack is really old, and currently nothing (other than stuff on the first page) is added in this hack. I'll update this soon with something new for you guys with mods form this thread. Aswell there was a small update on post #29, go here for the update: https://vborg.vbsupport.ru/showthrea...719#post249719 ]

Takara 05-09-2002 04:50 AM

Screen shot ^-^

scsa20 05-09-2002 04:55 AM

thanks :D

Admin 05-09-2002 04:58 AM

Nice, could be useful.

Takara 05-09-2002 05:03 AM

Could be, but there is that problem of it loading all 10 000 users on one page (for you Fire), lol. Do you think you could direct me in the right direction on how to add 'pages' for this hack? I took a look but got confused @_@;

Aswell I used your instructions on how to do alternating table columns ^_^ thanks

Admin 05-09-2002 05:10 AM

Check out icon.php there's some pagination code there.

Takara 05-09-2002 05:12 AM

Thanks :)

I'll take a look at it and see if I can manage to put something together, hehe.

dadymac 05-09-2002 05:14 AM

oh man, u just made my life a million times easier

SaintDog 05-09-2002 05:36 AM

Nice hack, no matter how small, it plays a pretty good role in forum management. Many forums could benifit from this hack, I know when I actually get around to finishing my community and releasing it, I will be using this as I can not stand having people take up database space if they have no actual intention of posting.

Nice Work, I knew someone would finally get around to doing it ;).

- SaintDog

Slynderdale 05-09-2002 05:39 AM

Quote:

Originally posted by SaintDog
Nice hack, no matter how small, it plays a pretty good role in forum management. Many forums could benifit from this hack, I know when I actually get around to finishing my community and releasing it, I will be using this as I can not stand having people take up database space if they have no actual intention of posting.

Nice Work, I knew someone would finally get around to doing it ;).

- SaintDog


Just do what i do, bug the heck out of them till they start posting, works for me lol


All times are GMT. The time now is 10:25 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.01155 seconds
  • Memory Usage 1,736KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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