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)

the_sisko 04-19-2001 10:00 PM

PM Stats 1.1 Hack | 28.05.2001-22:10 CET

What does it do:
This Hacks show some stats for your PM's, which includes:

Version 1.0
  • It show per page all users who stores PM's in the database, sort by users with the most PM's.
    It shows: total PM's, new PM's and unread PM's
  • Total PM's in database
  • How many Users with at least one PM are in db
  • Users PM average
  • it highlight users who stores more then 90% of the current PM quota, so you can find those users fast.
Updated Version 1.1
  • link to userprofile for direct edit (this one was requested)
  • delete all PM's of one user (this one was requested)
  • the last part is a little big tricky to explain: you can know see the Last Visit, Last Activity, Last Post of an user in different colors. What is it good for? Lets say you can easy see if an user is inactive and you can delete his PM's to keep your database clean. If there need to explain more, take a look at the screenshot or ask me and I'll try to explain it more.

I found this very usefull so I can trackdown which user stores how many PM's and how to set the PM quota. This idea is only usefull for those of us, who had some server limitation and like to find ways to keep the diskquota of the database small.

For version: vBulletin 2.0.0 (should work with RC2 and RC3, but for odler versions the CSS is missing).

Files needed: pmstats.php

Files to edit: pmstats.php

Templates to create/edit: none

Instructions are in pmstats.php file.

Screenshot http://www.studenten-city.de/stf/pmstats.jpg

FEEDBACK WANTED! :D Likes/dislikes/modification requests all gladly accepted.

rockergrrl 04-20-2001 06:19 PM

Works Great!!

I've been wondering about the numbers of PMs my girls have have storing... :)

Thanks!!

the_sisko 04-20-2001 06:21 PM

For those of you who want a link form the CP:

In /admin/index.php find first instance:
Code:

<tr><td><hr></td></tr>
under it place:
Code:

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>PM Functions</b>
</font></td></tr></table>
<a href="pmstats.php?s=<?php echo $session[sessionhash]; ?>">PM Stats</a><br>
</td></tr>

reupload it!

tubedogg 04-20-2001 06:24 PM

I love it! :)

Even if you did borrow ;) my release wording.

the_sisko 04-20-2001 07:41 PM

[QUOTE]Originally posted by tubedogg
I love it! :)

Even if you did borrow ;) my release wording.

SystemLogic 04-20-2001 09:26 PM

Looks great!!!

bokhalifa 04-21-2001 02:06 AM

Great ;)

Blue2000 04-29-2001 11:35 PM

this is very nice Sisko.

i know its only a stats but is there anyway you could turn it into a maintains/stats hack and add a delete all read messages next to there names? (just an idea) great hack tho dude

the_sisko 04-30-2001 05:57 PM

[QUOTE]Originally posted by Blue2000
this is very nice Sisko.

Blue2000 05-01-2001 11:47 AM

Quote:

Originally posted by The_Sisko
Thx :)didn't get it?:confused: Can you explain it a little more for me?

yeah you did get it :D

Quote:

Great Idea, will try to add it in the next few days!

NickyNet 05-01-2001 06:37 PM

great hack..

thx

Flare 05-01-2001 07:11 PM

Nice hack! Thank you very much :)

jojo85 05-03-2001 09:49 AM

It's a really nice idea cause at the moment there were only the page and threads stats
thx youuu

zarkov 05-23-2001 02:48 PM

Thanks for this i could do with this to see who's doin what with the space

GhostMaster 05-26-2001 03:15 PM

can Admin empty, insert also a User pm box?
that would not badly be if that possible were

krohn 05-27-2001 11:32 PM

dear god.... We've got over 5k PM's sitting in our db! the average user has 10PM's

the_sisko 05-28-2001 07:36 AM

[QUOTE]Originally posted by GhostMaster
can Admin empty, insert also a User pm box?
that would not badly be if that possible were

jucs 05-28-2001 11:09 AM

Did anyone recommend this for 2.1? It should be!:)

the_sisko 05-28-2001 08:18 PM

UPDATED VERSION 1.1

Go to first post in this thread for more infos!!!!!

jucs 05-28-2001 10:05 PM

3 users have a last post of:

31-12-69
19:00:00

It shows these in red. Not likely they posted in 1969! :)

And there is a .php3 extension used in the file so if one doesn't use php3 extensions it will give you an error when clicking on the links for users.

Great hack. This should be put in the next release.

krohn 05-29-2001 01:09 AM

How about something to auto delete all PM's stored by people who haven't visited in like a month?

Being able to delete things sure does help! Good job man :)
What are your plans on expanding even further? something like deleting messages older than like 2 months or something?

Vbulletin should be able to limit how long PM's are stored...

Blue2000 05-29-2001 01:11 AM

nice update mate well done

Blue2000 05-29-2001 01:26 AM

dude when i press 2 at the top of the page i get a page could not be displayed error

krohn 05-29-2001 01:34 AM

yeah I noticed a few .php3 tags in the code

do a quick search for .php3 in the code and delete the 3... it's in either 2 or 3 places I can't remember. But everythings working great for me after that quick fix.

try the file I attached...

the_sisko 05-29-2001 07:14 AM

I've updated the zip file and changed all .php3 to .php

jucs 05-29-2001 09:37 AM

3 users have a last post of:

31-12-69
19:00:00

It shows these in red. Not likely they posted in 1969!

the_sisko 05-29-2001 11:42 AM

Did you import from UBB?

RobAC 05-29-2001 12:14 PM

First of all nice job!!!

Second, I have that same problem with the last post showing up in 1969 for users that have never posted. I imported from UBB and ran an update script that Tubedogg told me about to fix the dates, which worked in some areas of my forums, but not in all. Any ideas?

the_sisko 05-29-2001 01:21 PM

RobAC and jucs,

try to go and edit one of the 1969 user in the CP and take a look at last post time. Does it be the same prob with the time, or only in my hack?

RobAC 05-29-2001 01:43 PM

No, it's not only in your hack but in other parts of the standard CP.

jucs 05-29-2001 03:59 PM

It is in the regular CP readout as well...

I did a clean install of V2.0. No importing from UBB was performed.

Now what?

Is this a V2.0 bug of some sort?

jucs 05-29-2001 04:34 PM

<a href="http://www.vbulletin.com/forum/showthread.php?postid=116787#post116787" target="_blank">Last Post Bug in V2.0?</a>

eva2000 05-29-2001 05:41 PM

i just installed v1.1 and it's great but what's this about a bug ?

RobAC 05-29-2001 05:53 PM

Quote:

Originally posted by eva2000
i just installed v1.1 and it's great but what's this about a bug ?
Well, looks like we have 2 separate bugs going on. One was the use of php3 extensions which was causing a problem when trying to view the next page of pms, but Sisko fixed that and re-uploaded the pmstats.php file to the top of this thread this morning I believe. So...basically, that's fixed, but the next one is what a lot of us have been seeing and that's the 1969 dates. I don't think it's got to with Sisko's hack, but rather a UBB importation problem for those of us who imported from UBB. I could be wrong.

the_sisko 05-29-2001 07:27 PM

All ZERO post users got this timestamp.......!

Blue2000 05-31-2001 10:45 AM

nice one dude now you have fixed that php3 code it works great

the_sisko 05-31-2001 10:48 AM

Just want to mention, a lot of people ask me to modify the hack to read the PM of an user.

I'll wont do this! Private means private and so it should be. Please stop asking me for this one!

etones 05-31-2001 11:16 AM

Nice Hack Sisqo... great stuff.

I look forward to your upgrade on Overgrows Mod log hack... nice.

lichtflits 06-01-2001 12:05 PM

when I deleted all post of a member I'll see this: All PM's from .... has been deleted!
that ok.
but is it posible that the page automatic going back to the main pmstats page? (admin/pmstats.php)

cditty 06-09-2001 06:07 PM

I have seen mention of colors but no definition of them. What do the the colors stand for?

Thanks.

Nice mod.

Chris


All times are GMT. The time now is 02:41 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.01184 seconds
  • Memory Usage 1,791KB
  • 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
  • (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
  • (40)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