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)
-   -   vbStats (https://vborg.vbsupport.ru/showthread.php?t=30751)

KuraFire 12-10-2001 01:17 PM

Quote:

Originally posted by DarkReaper
Also, for the last 30 days...it could be right, but most likely isn't...800 posts in 30 days? Um..yea.
Bwhahaha, forum-n00b! ;)

I once posted 2000 posts in 30 days, not a single post was spam or anything. It can be done easily, y'know. Just work in a position where you can surf online all day long and you can easily amount up to 3K of posts a month, less if you actually post LONG posts all the time (like I usually do... *shudder*).


Anyway...

TheRealist: you have to add a line to your phpinclude template. You can find that in your Admin Panel > Styles: Modify > Edit Fonts/colors > first template is the phpinclude template. Add this line to that template:

include("vbs_counter.php");

That should take care of all the Division by zero errors. :)
The other problem, I don't know..

FWC 12-10-2001 04:58 PM

Quote:

Originally posted by KuraFire
And to FWC: Would you please tell me how you have the whole Statistics block coded into your Forum Home page? I'm talking about the block that starts with a link to the vbstats.php and ends with "Hottest thread this week" - I would LOVE to have that overview on my forum home as well, please tell me how to code this in there. I'd be very grateful :)

That isn't vBstats, though I did put the link to vBstats at the top. That's a couple of hacks I merged together and modified. It's just one chunk of code and one template now. Send me an email and I'll work up some instructions and send you the stuff.

DarkReaper 12-10-2001 07:06 PM

Quote:

Originally posted by KuraFire


Bwhahaha, forum-n00b! ;)

I once posted 2000 posts in 30 days, not a single post was spam or anything. It can be done easily, y'know. Just work in a position where you can surf online all day long and you can easily amount up to 3K of posts a month, less if you actually post LONG posts all the time (like I usually do... *shudder*).

Bah. What about my other problem, with the most posts ever counts varying?

KuraFire 12-10-2001 07:37 PM

Not sure about the other issue DR, sorry. I can only come up with it something to do with the fact that they messed around Big time with postcounts on those forums - seeing as how they don't show up anywhere aside of on the vbstats page, I think it safe to assume they Might have messed with the post counts on different locations as well, which, in turn, could be the reason these postcounts are messed up in different places.

Also, could be just something to do with the way they have the queries in vbstats implemented - i.e. do vbstats' queries select posts from the user's Current Postcount, or all of the users posts INCLUDING those in forums that don't COUNT towards your post count, and/or does it include deleted posts?

It's probably something with queries combined with their messing about, but again: I am not sure on Any of all this!

DarkReaper 12-10-2001 07:47 PM

I run those boards, and haven't touched the post counts. I removed post counts from displaying because of issues with them, and spam...

The Realist 12-10-2001 09:07 PM

Any help on the below chaps?..................Please.

I have 2 problems.

1) I am running version 2.2.1 and in admin/index.php I cannot find:

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Stats & Logs"); ?>

BUT I can find something similar to:
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">

So I placed the requiered txt above that "IS THIS CORRECT" OR WERE SHOULD I PLACE IT"

Also I am getting the following errors when wiewing the "View Public Statistics" in CP.

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 159

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 165

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 162

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 186

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 148

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 139

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 145

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 142

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 136

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 151

Warning: Division by zero in /usr/local/psa/home/vhosts/skytronic-forums.com/httpdocs/vbstats.php on line 154

Any help please?

FWC 12-10-2001 09:20 PM

Quote:

Originally posted by The Realist
Any help on the below chaps?..................Please.
Message #482 above:
Quote:

Originally posted by KuraFire
Anyway...

TheRealist: you have to add a line to your phpinclude template. You can find that in your Admin Panel > Styles: Modify > Edit Fonts/colors > first template is the phpinclude template. Add this line to that template:

include("vbs_counter.php");

That should take care of all the Division by zero errors. :)
The other problem, I don't know..

For your other issue. Put this:
PHP Code:

// vbStats 
makenavoption("Config","vbstats_set.php?action=edit","<br>"); 
makenavoption("View Public Statistics","../vbstats.php?action=stats","<br>"); 
makenavoption("Exclude URL","vbstats_set.php?action=add"); 
makenavselect("vbStats","<hr>"); 
// vbStats 

under this:
PHP Code:

// ***
makenavoption("Statistics","stats.php?action=index","<br>");
makenavoption("Admin Log","adminlog.php?action=choose");
makenavselect("Statistics & Logs",$df);
//*** 

You should be set to go.

DarkReaper 12-10-2001 10:34 PM

Me next, me next! :D

FWC 12-10-2001 10:50 PM

Quote:

Originally posted by DarkReaper
Me next, me next! :D
vBstats directly queries the database and pulls the current post totals. It does not filter for forums where you exlcude post counts. It is a real time total post count as far as I know.

KuraFire 12-11-2001 07:39 AM

Quote:

Originally posted by FWC
vBstats directly queries the database and pulls the current post totals. It does not filter for forums where you exlcude post counts. It is a real time total post count as far as I know.
Yeah but there was someone who added to the vBStats-query to make it count ONLY realtime posts, thus Excluding those from forums that don't count posts. That query is SOMEWHERE in this thread, but I'll be damned to know what page exactly! :(

And that's why I would love to see someone make an overview again. But my guess is that Bane is really busy so I'll be patient and shut up again ;)

The Realist 12-11-2001 10:43 AM

Thank you, works like a charm.

;)

FWC 12-11-2001 04:20 PM

Quote:

Originally posted by KuraFire


Yeah but there was someone who added to the vBStats-query to make it count ONLY realtime posts, thus Excluding those from forums that don't count posts. That query is SOMEWHERE in this thread, but I'll be damned to know what page exactly! :(

You would go into the queries for counting posts in vbstats.php and add the appropriate AND forumid<>'XX' AND forumid<>'YY' to the WHERE clauses.

dyt4 12-11-2001 06:36 PM

Can you tell me is there a really working version for 2.2.1 ???

I use 2.2.1 here : http://forum.dyt4concept.org

thx

regards

david

Kengan 12-12-2001 04:21 AM

Nice Hack !!

Dalius 12-15-2001 08:47 PM

I cant find the place to edit the admin/index.php

:confused:

2.2.1

Xsentrik.com 12-15-2001 09:04 PM

nice hack

KuraFire 12-15-2001 09:17 PM

Quote:

Originally posted by FWC
You would go into the queries for counting posts in vbstats.php and add the appropriate AND forumid<>'XX' AND forumid<>'YY' to the WHERE clauses.
No, somewhere in this thread there's a better solution. Something to do with simply taking the same query method as the vB system itself does...

But since this thread is 11 pages, I wouldn't know where exactly it is NOR do I feel like digging through it.

dotagious 12-17-2001 03:30 PM

I was wondering what kind of ratio the activity level stat calculates off of? What does it take into consideration before giving the result and what should it be compared to?

Bane 12-17-2001 04:26 PM

Active Users vs. Non Active Users

Percentage of total users that are active.

KuraFire 12-17-2001 05:40 PM

Bane, how's the progress going on fixing the current issues and improving the hack? :)

G4cE 12-18-2001 12:42 AM

Looks like a nice hack, but i'l lwait till a newer version comes out for 2.2.1.

Also, maybe a good idea to start a new thread bout a 2.2.1 version? 34 pages is a bit much lol :D

least it means ya hacks popular:p

G

Bane 12-18-2001 09:00 AM

I've worked on it a bit, but since this is normally the busiest time of the year for me its hard to find time. Its still a front burner thing for me but unfortunately gotta get the paid stuff done first. :(

KuraFire 12-19-2001 09:40 PM

Quote:

Originally posted by Bane
I've worked on it a bit, but since this is normally the busiest time of the year for me its hard to find time. Its still a front burner thing for me but unfortunately gotta get the paid stuff done first. :(
Ah, great, no worries mate, glad to hear. I was primarily asking to see if you were still interested in working on this superbe hack - unfortunately, some of the coolest hacks I know never got made entirely public or got updated to include the last few required elements or whatnot, to make it worthwhile for me. It's great to see you still wanting to work on it - and I think I speak for all of us that we don't mind at all that you have to do other stuff first. You're doing this from the kindness of your heart, and we appreciate it a LOT! :up::up::up::up:

:)

dotagious 12-19-2001 10:43 PM

[QUOTE]Originally posted by Bane
Active Users vs. Non Active Users

Percentage of total users that are active.

KuraFire 12-19-2001 11:01 PM

None, that's actually 35% (35,333 to be precise) - the division that is used in the hack is just really weird :p

dotagious 12-22-2001 07:57 PM

Ouch. Wonder if there is a way to change it.

FWC 12-22-2001 08:13 PM

Quote:

Originally posted by Avenger
Ouch. Wonder if there is a way to change it.
In vbstats.php change this line
Code:

$activityrate=sprintf("%.2f",(1000*$activemembers/$numbermembers));
to
Code:

$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));
Then go into the vbstats_stats template and add % after $activityrate.

dotagious 12-22-2001 08:21 PM

Oh no.. no you don't! Just Kidding lol thanks bro.

FWC 12-22-2001 08:29 PM

Quote:

Originally posted by Avenger
Oh no.. no you don't! Just Kidding lol thanks bro.
I was thinking the same thing. :D

XiXora 12-22-2001 09:41 PM

i dont have time too read all 500 of the posts so is there ne thing i have to add so this works for vb221?

dotagious 12-22-2001 11:03 PM

That's funny, because I don't have time to answer your question.

:D

hypedave 12-23-2001 12:45 AM

okay this is a great hack, it was easy to install,
I got one problem though , lol
this is how my phpincluide file looks like

if (!isset($mainfile)){
include("../vbp_includes.php");
}
if (!isset($mainfile)){
include("../vbs_counter.php");
}

and here is the error that im getting

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 159

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 165

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 162

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 186

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 148

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 139

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 145

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 142

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 136

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 151

Warning: Division by zero in c:\inetpub\wwwroot\hybridforums\forums\vbstats.php on line 154

what the heck did I do wrong, lol
can some help me out,

FWC 12-23-2001 01:22 AM

All you need in your phpinclude is:

include("vbs_counter.php");

hypedave 12-23-2001 01:25 AM

ok let me try that real quick

hypedave 12-23-2001 01:32 AM

okay that worked, but now, since I am using vbportals

what I should I do with the

if (!isset($mainfile)){
include("../vbp_includes.php");
}

FWC 12-23-2001 01:36 AM

I'm not sure since I don't use vBPortal. I would think you could have that in there, too. You just needed to get the vbstats include out of the if statement you had it in.

hypedave 12-23-2001 01:42 AM

cool it works, thanks for the quick response

FWC 12-23-2001 02:11 AM

Glad to help. :)

hypedave 12-23-2001 02:14 AM

hey where do I get this user online hack at, thats pretty cool, and the minimize button as well, lol

now on vbstats, the referring sites isnt working, I click on my forum url from my yahoo email box, and it didnt show that a hit came from a yahoo url, what could be wrong there

vbstat is located at

domain.com/forums/vbstats

and forums home page is

domain.com

any suggestions

okrogius 12-23-2001 06:30 AM

I installed it just fine, however any of the vbstast php pages just give me a blank white page. :(


All times are GMT. The time now is 02:22 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.02266 seconds
  • Memory Usage 1,837KB
  • 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_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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