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)
-   -   NewStatistikHack 1.2.1e [English] (https://vborg.vbsupport.ru/showthread.php?t=41421)

hypedave 08-05-2002 09:01 PM

when a user goes to check their private messages they get the following error

Fatal error: Call to a member function on a non-object in C:\WebSites\cesirae\private.php on line 14

Line14 looks like this

$res1 = $DB_site->query("UPDATE afterburner_stat SET newpms = newpms+1 WHERE time = '$time_today'");

im sure its a simple fix can anybody help

Tim Wheatley 08-05-2002 09:45 PM

I appear to have a problem? It's split today's stats in three! :(
http://www.racesimcentral.com/images/stats.gif

Tim Wheatley 08-05-2002 10:59 PM

I think the picture shows what's happened, here's another one to prove it didn't dissapear into Tuesday.

What I'm going to do is have a look in the database and manually correct the stats. (I assume that the lower two just require deleting and are not 'real' stats which should be added to the top one).

Here's the shot:
http://www.racesimcentral.com/images/stats2.gif

Here was the table entries (by the time I got there - stats for Tuesday changed of course):
time memberson newthreads newposts maxuserontime maxuseron newpms newregs
1028412000 1048 46 433 1028484532 258 16 17
1028498400 1691 85 1031 1028573074 212 33 30
1028498400 153 24 203 1028573074 212 4 5
1028498400 153 24 203 1028573074 212 4 5
1028584800 392 6 95 1028585062 165 0 2

I just deleted these:
1028498400 153 24 203 1028573074 212 4 5
1028498400 153 24 203 1028573074 212 4 5

So the stats now show correctly.

Just wondering... could this be because I haven't got a full 7 days yet?

snyx 08-07-2002 08:47 PM

okay, the hack works great, and my members LOVE it (as do i) but when is it ever going to bust into multipages? I mean, check it out, its getting a little long dont ya think..

Renegade 08-07-2002 10:42 PM

Thanks Afterburner! I must of been stoned earlier....

Afterburner 08-08-2002 09:26 AM

@ hypedave

please recheck the code in the private.php

above:
PHP Code:

  // enhanced
  
if ($prevmessageid) { 

insert this code:

PHP Code:

// Afterburner
    
$curtime time();
    
$date_today getdate($curtime);
    
$time_today=mktime(0,0,0,$date_today[mon],$date_today[mday],$date_today[year]);
    
$res1 $DB_site->query("UPDATE afterburner_stat SET newpms = newpms+1 WHERE time = '$time_today'");
// Afterburner 


@ Tim Wheatley

dont know the reson, maybe your provider changes the timesettings at this time, does it work correctly now ?

@ snyx
15 days will shown before splitting o multible

Odil 08-29-2002 08:33 AM

I love this hack but I have one problem, the last 4 days, my new users count has remained at 0 when we have usually 25-30 new members. How can I fix this?
It worked fine the first 3 days.

Odil

Afterburner 08-29-2002 08:42 AM

thats no problem of the hack, you have to enable the post count in each forum

Odil 08-29-2002 10:40 AM

Quote:

Originally posted by Afterburner
thats no problem of the hack, you have to enable the post count in each forum
I'm sorry I worded that wrong. I mean the new users per day count has stopped counting. We have about 25-30 new members daily and it shows 0 new members everyday, It stopped working after a few days.

Odil

Afterburner 08-29-2002 07:49 PM

please check the code in the register.php if you upgraded to vB 2.2.7 or an other version


All times are GMT. The time now is 11:53 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.01155 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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