vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   QuickStats v1.1 (https://vborg.vbsupport.ru/showthread.php?t=57305)

Gio Takahashi 10-23-2003 03:02 AM

pretty much to make it show top 15 threads and 15 new threads.

It may have been caused by the wierd format of TXT but it was proven wrong....

UPDATE

I got it to work, it works very nice so far...I'd like to see the top 10 used smileys add to this.

Oh I also looked through your file, and managed to use it on the main page to show today statistic.

www.unitedempire.net

Very nice hack indeed.

Gio Takahashi 10-24-2003 09:36 PM

Your script is WIERD.

I never changed anything except the store hack add on, and I used Ultra Edit as well, this time (was using notepad before) and ow it doesn't work AT ALL, there is a bug in the hack.

FleaBag 11-13-2003 01:30 AM

Working pretty nicely!

Rampag33 11-13-2003 03:14 AM

Very nice hacc, once I find a good place to use it at with all the other damn stats I already have installed I will install it.

Good job.

X-Fan 11-13-2003 03:35 AM

Quote:

Originally Posted by Gio Takahashi
Your script is WIERD.

I never changed anything except the store hack add on, and I used Ultra Edit as well, this time (was using notepad before) and ow it doesn't work AT ALL, there is a bug in the hack.

It works, Gio, I think you may have done something wrong whilst editing it.

Try reverting back to the code you had before installing the hack, then reinstalling it.

Gio Takahashi 11-13-2003 04:43 PM

the thing is...it works then ti doesn't work...it only works when it feel like it......

X-Fan 11-13-2003 08:35 PM

I honestly can't think of what might be causing that. This shouldn't be affected by any other hacks, as it's a standalone (ie has its own php file, it doesn't require any other files to be modified).

Red Blaze 11-14-2003 03:21 PM

I got a problem. It was working very well but once someone registered, I get this error.

Fatal error: Call to undefined function: useragentcheck() in /home/thesonic/public_html/forum/quickstats.php on line 153

I tried replacing the original quickstats.php, but that didn't help either.

Edit: Err.. and now it works. o.o; What's with the hack? It takes time to gather information after something's been posted/register etc?

X-Fan 11-14-2003 09:40 PM

Quote:

Originally Posted by Sonikku
I got a problem. It was working very well but once someone registered, I get this error.

Fatal error: Call to undefined function: useragentcheck() in /home/thesonic/public_html/forum/quickstats.php on line 153

I tried replacing the original quickstats.php, but that didn't help either.

Edit: Err.. and now it works. o.o; What's with the hack? It takes time to gather information after something's been posted/register etc?

You need to have the UserAgentCheck 1.00 hack installed. If you don't have or don't want that hack, then just remove these lines from quickstats.php:

PHP Code:

$loggedins=$DB_site->query("SELECT session.useragent FROM session WHERE userid=0 AND session.lastactivity>$datecut");
$numberwebrobots=0;
$loggedinrobots="";
while (
$loggedin=$DB_site->fetch_array($loggedins)) {
    
$checkagent $loggedin['useragent'];
    
$webrobot useragentcheck($checkagent1);
    if (
$webrobot) {
        
$numberwebrobots++;
        if (!(
preg_match("/$webrobot/i"$loggedinrobots) )) $loggedinrobots .= $webrobot ", ";
    }
}
if (!empty(
$loggedinrobots)) $loggedinrobots "(" substr($loggedinrobots0, -2) .")";
$numberguest = ($numberguest $numberwebrobots); 

Then find this line:

PHP Code:

$DB_site->free_result($loggedins); 

And after it, add this line:

PHP Code:

  $numberguest intval($numberguest); 

Lastly, find and remove these lines from the quickstats template:

PHP Code:

<tr>
<
td bgcolor="{secondaltcolor}"><smallfont><b>Web Robots Online</b></smallfont></td>
<
td bgcolor="{secondaltcolor}" align="right"><smallfont>$numberwebrobots</smallfont></td>
</
tr



All times are GMT. The time now is 04:06 PM.

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.02323 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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