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)
-   -   0 Posters, None Active Members, Active Members and 1 Posters Display Hack. (https://vborg.vbsupport.ru/showthread.php?t=44468)

wolfe 10-11-2002 10:57 AM

here is the forumhome screen :D

wolfe 10-11-2002 10:59 AM

Quote:

Originally posted by dadymac
ok, installed, the 1 post and 0 post is working fine (gj) but the non-active seems to be really sensitive, and the active thing is really picky, hence of my 300 members, 6 are active, when in truth it should be near like 80 or so at the very least.

d00d the none active memberslist makes users who aint posted for 1 mounth show and the Active list shows everyone else who has posted within 1 mounth :D

Floris 10-11-2002 01:11 PM

This is a fun hack. I will add it shortly to my board (somewhere this weekend)

Floris 10-11-2002 05:33 PM

I have installed it, and I have a few comments.
The active members show up as a negative number,
and when I click on a list, it displays from Z-A, and not from A-Z, which has my preference. I changed the DESC to ASC in the memberlist.php code to reflect those changes.
However, users who are set as active, show up on the inactive list too. I can't see what is wrong there though.
Your readme says VBB- but it is vB but that is really besides the point. It works on 2.2.7

wolfe 10-12-2002 02:26 AM

Quote:

Originally posted by xiphoid
I have installed it, and I have a few comments.
The active members show up as a negative number,
and when I click on a list, it displays from Z-A, and not from A-Z, which has my preference. I changed the DESC to ASC in the memberlist.php code to reflect those changes.
However, users who are set as active, show up on the inactive list too. I can't see what is wrong there though.
Your readme says VBB- but it is vB but that is really besides the point. It works on 2.2.7

d00d to fix this in the memberlist

find in memberlist.php

Code:

// start 0-poster display hack v1.0 by Wolfe
  if ($what=="0-posters") {
    $condition.=" AND posts < '1'";
    $orderby="DESC";
    $direction="";
  }
  if ($what=="oneposters") {
    $condition.=" AND posts < '2' AND posts > '0'";
    $orderby="DESC";
    $direction="";
  }
    if ($what=="active") {
    $condition.=" AND posts>'0'";
    $orderby="lastactivity";
    $direction="DESC";
  }
  if ($what=="inactive") {
    $lastmonth = mktime (0,0,0,date("m")-1,date("d"),date("Y"));
    $lastmonth2 = date("Y-m-d", $lastmonth);
    $condition.=" AND joindate<UNIX_TIMESTAMP('".addslashes(strtolower($lastmonth2))."') AND lastpost<UNIX_TIMESTAMP('".addslashes(strtolower($lastmonth2))."')";
    $orderby="lastactivity";
    $direction="DESC";
  }
// end 0-poster display hack v1.0 by Wolfe

and replace with

Code:

// start 0-poster display hack v1.0 by Wolfe
  if ($what=="0-posters") {
    $condition.=" AND posts < '1'";
    $orderby="username";
    $direction="ASC";
  }
  if ($what=="oneposters") {
    $condition.=" AND posts < '2' AND posts > '0'";
    $orderby="username";
    $direction="ASC";
  }
    if ($what=="active") {
    $condition.=" AND posts>'0'";
    $orderby="username";
    $direction="ASC";
  }
  if ($what=="inactive") {
    $lastmonth = mktime (0,0,0,date("m")-1,date("d"),date("Y"));
    $lastmonth2 = date("Y-m-d", $lastmonth);
    $condition.=" AND joindate<UNIX_TIMESTAMP('".addslashes(strtolower($lastmonth2))."') AND lastpost<UNIX_TIMESTAMP('".addslashes(strtolower($lastmonth2))."')";
    $orderby="username";
    $direction="ASC";
  }
// end 0-poster display hack v1.0 by Wolfe

Hope it works :D

wolfe 10-12-2002 02:30 AM

it should work it did on my board :D

Katman 10-12-2002 08:40 PM

To get a positive number you need to replace the following:

Find in index.php:
$activemembers=$numbermembers-$nonposters-$inactive;

Replace with:
$activemembers=$nonposters+$inactive-$numbermembers;

Now you'll get a positive number for the "Active Members" count.

wolfe 10-12-2002 10:30 PM

thanx for the fix d00d :D

CeleronXL 10-16-2002 05:37 PM

Has all of this been updated in the directions? If so, I'll be isntalling.

wolfe 10-16-2002 10:03 PM

will do :D


All times are GMT. The time now is 06:07 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.01175 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)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