Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
0 Posters, None Active Members, Active Members and 1 Posters Display Hack. Details »»
0 Posters, None Active Members, Active Members and 1 Posters Display Hack.
Version: 1.00, by wolfe wolfe is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-09-2002 Last Update: Never Installs: 20
Supported
 

I requested this here

Request

But since no one helped me out i went @ it alone and i have fixed several problems and one main problem that was in the other on was that if you added all the numbers togeather it equeled more members than you got but i sorted it now

and on the old on the Author never helped anyone out but here it is now

if you like it and it works great please click the Install Button

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-11-2002, 10:57 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the forumhome screen
Reply With Quote
  #13  
Old 10-11-2002, 10:59 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 10-11-2002, 01:11 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a fun hack. I will add it shortly to my board (somewhere this weekend)
Reply With Quote
  #15  
Old 10-11-2002, 05:33 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 10-12-2002, 02:26 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 10-12-2002, 02:30 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it should work it did on my board
Reply With Quote
  #18  
Old 10-12-2002, 08:40 PM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 10-12-2002, 10:30 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx for the fix d00d
Reply With Quote
  #20  
Old 10-16-2002, 05:37 PM
CeleronXL's Avatar
CeleronXL CeleronXL is offline
 
Join Date: Nov 2001
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has all of this been updated in the directions? If so, I'll be isntalling.
Reply With Quote
  #21  
Old 10-16-2002, 10:03 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will do
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05951 seconds
  • Memory Usage 2,300KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete