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)
-   -   [Release vB2.0] PM Stats 1.0 (https://vborg.vbsupport.ru/showthread.php?t=14724)

zarkov 06-10-2001 08:26 AM

the lastactivity, lostpost & lastvisit date & times are colour coded Green for less than a week, Blue for 1 - 2 weeks old, and red for any date older that 14 days.

zarkov 06-10-2001 08:47 AM

Ive come up with this to stop the date problem
In pmstats.php

Find

PHP Code:

$lastpost strftime("%d-%m-%y<br>%H:%M:%S""$user[lastpost]"); 

and replace with

PHP Code:

if ($user[lastpost]==0){
$lastpost "Never Posted";
} else {
$lastpost strftime("%d-%m-%y<br>%H:%M:%S""$user[lastpost]");


All it does it looks for a dateline of 0 (no date) and sets $lastpost to Never Posted instead of the date.

ibeblunt 06-20-2001 05:27 PM

If the originator of this hack is reading this, how about a hack to be able to delete all PM's over a certain amount of days? Like delete PM's over [x] days old.

Jpp 06-21-2001 05:43 PM

Warning: Division by zero in C:\HTTPD\upload\admin\pmstats.php on line 59

can anyone tell me why??

the_sisko 06-21-2001 05:53 PM

You don't have any PM's on the board, so you got this error. I need to add a if command for fixing this one...

Jpp 06-21-2001 08:10 PM

Quote:

Originally posted by The_Sisko
You don't have any PM's on the board, so you got this error. I need to add a if command for fixing this one...
But i do!! I got 122 Pm's in the database, 19 users with at least one

the_sisko 06-21-2001 08:58 PM

Did you installed this other stats hack you shows how many active user there are? This hacks adds a variable $limit to the boards, which I'm using too! You need to change then $limit in pmstats (all of it) to something else: e.g. $limit_pm

Jpp 06-21-2001 09:07 PM

Quote:

Originally posted by The_Sisko
Did you installed this other stats hack you shows how many active user there are? This hacks adds a variable $limit to the boards, which I'm using too! You need to change then $limit in pmstats (all of it) to something else: e.g. $limit_pm
Yes it helped :) Thank's a lot

pwr_sneak 07-04-2001 01:31 PM

Hi,

i just installed this hack on my Board for the first time an tried to access the stats. I was wondering why it didn't show up, checked my server and saw one HTTP-Process using 150 Megs of RAM....

After restarting Apache i took a look at the script ;(
There are lots of MYSQL Queries returning huge unused arrays.

I like this hack, but i have to rewrite it for my board for better performance. If this still doesn't work i will create daily static HTML Pages containing the PMStats output.

BTW my Board at http://www.amihotornot.de has 30000 Users with 270000 stored messages.

If someone is interested in the fast version of this hack, please let me know.

sneak

ldydvr 07-05-2001 11:47 AM

Always, you bet!

Anytime someone can increase performance and better something I'm all ears (and fingers and eyes)!

=-)

ibeblunt 07-05-2001 02:29 PM

I would be.

My site has over 60,000 users with 414680 posts. It's crazy these days.

Steven

JackG 07-11-2001 04:07 AM

Total PM's in database 2331

Users with at least one PM 441

Users PM average ~5

------------------------
Above is my stats. question, are these based on 'un read' messages?

Any chance of a search option ?

the_sisko 07-11-2001 02:38 PM

I know, there are many querys but I couldn't think of it to make it better at this time. I'm getting better and better maybe I should try to remake it, but the problem is to get all PM of a user in a group....I 'll take a look at it.

I have:
~1100 Members
~80000 post
~2000 PM's

so it works. I'am on my own server (PIII 800, 128MB..)

JackG 07-11-2001 02:40 PM

Good job on it The_Sisko, if you have time, you may want to add some features. It's a quality usefull hack.

ShadowTech 07-26-2001 12:38 AM

I am now getting an error after having to swap databases the forum was running on.
<<
Warning: Division by zero in c:\inetpub\wwwroot\vB\admin\pmstats.php on line 59
>>

I read higher that you said it's because there are no posts.. which I don't see that as the problem considering the pmstats.php file is listing the total PMs under that error as :
Total PM's in database 5440
Users with at least one PM 300
Users PM average ~18

I don't know what is causing this.. I redownloaded the pmstats file from this thread and reuploaded it trying to fix it.. but it still gets the error.. worked perfectly before the DB swap.

Sinclair 07-26-2001 10:34 PM

Quote:

Originally posted by The_Sisko
...
I have:
~80000 post
...

90000 Posts! ;)

Sinclair


All times are GMT. The time now is 01:09 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.01062 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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