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)

scsa20 05-09-2002 01:01 PM

you basicly do the same why as you installed it for the admin cp but in the mod cp ;)

Frank 05-09-2002 01:27 PM

Nice hack :)

inetd 05-09-2002 01:31 PM

I need next:
If the user did not come on a forum of XX days, irrespective of quantity of his reports - he inactive
If at the user of 0 reports - he too inactive

Help me.

Siggi 05-09-2002 02:14 PM

:D :D :D :D Nice hack :D :D :D

:bandit: :bandit: THX :bandit: :bandit:

bonnmac 05-09-2002 02:59 PM

Very nice... thanks :)

NTLDR 05-09-2002 06:05 PM

Another usefull and good adition for my board Takara, many thanks :D

Takara 05-09-2002 06:49 PM

Just to clear it up for some people.

What it does is lists every user on your forums. If the user has NEVER posted, and the user has been a member of your forums for 3 days (you can change that specific amount of days) then it tells you they are inactive. If you click the 'YES!' link, indicating they are inactive, you can delete that person.

And Firefly, yea the code was the same, lol. <-- stupid :bunny:

Takara 05-09-2002 07:04 PM

Quote:

Originally posted by inetd
How make to Super Moderators can use this hack?
Well, it wasnt made for non admins.. It uses the cpheader(); and in there it requires you to be have access to the control panel. I'm not aware of any supermoderatorheader();

lol

Takara 05-09-2002 07:09 PM

Quote:

Originally posted by inetd
I need next:
If the user did not come on a forum of XX days, irrespective of quantity of his reports - he inactive
If at the user of 0 reports - he too inactive


Help me.

lol, what a very nice request ;p

Anyway, find this in the inactiveusers.php
PHP Code:

    $isinactive=$ddate-$row["joindate"];
    if ((
$row["lastpost"]==0)&&($isinactive>$timeactive)) {
        
$yninactive="<font color=\"#FF0000\"><a href=\"user.php?s=$session[sessionhash]&action=remove&userid=".$row["userid"]."\" target='_blank'>YES!</a></font>";
    } else {
        
$yninactive="No</font>";
    } 

if you just take out the $row["lastpost"]==0 part it will do what you want (thought I'm not sure what you mean by.. 'too inactive'.

So replace the code above with:
PHP Code:

    $isinactive=$ddate-$row["joindate"];
    if (
$isinactive>$timeactive) {
        
$yninactive="<font color=\"#FF0000\"><a href=\"user.php?s=$session[sessionhash]&action=remove&userid=".$row["userid"]."\" target='_blank'>YES!</a></font>";
    } else {
        
$yninactive="No</font>";
    } 

That auta do it. But I attached the updated file for you.

ZiRu$ 05-09-2002 07:47 PM

beautiful! I requested something like this


All times are GMT. The time now is 03:19 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.01341 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)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