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)
-   -   Admin Quick Stats (https://vborg.vbsupport.ru/showthread.php?t=37193)

Vivi Ornitier 04-10-2002 02:51 AM

Exellant hack, very simple and yet very useful

LouChipher 04-10-2002 04:50 PM

I checked the MySQL Query but didn't found any Problem, it must work! Maybe someone has an idea?

Im using vB 2.2.4, PHP 4.4.1 and MySQL 3.23.41

It always says that we have about 8000 new Threads this day.

Code:

$newthreads = $DB_site->query_first("SELECT count(*) AS count FROM thread WHERE dateline >= $starttime");
$newposts = $DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline >= $starttime");

So this is the same line, but Posts are working, Threads not...!?

Xelation 04-10-2002 08:35 PM

Ah, worked great! this is incrediably useful to me! Thank You Freddie!!

SirSteve 04-11-2002 03:47 AM

Excellent hack! This needs to be in VB3! :)

Freddie Bingham 04-11-2002 04:23 AM

Quote:

Originally posted by SirSteve
Excellent hack! This needs to be in VB3! :)
Maybe it already is? ;)

SirSteve 04-11-2002 04:28 AM

Quote:

Originally posted by freddie
Maybe it already is? ;)
Very cool!! :D

ryanhulce 04-11-2002 05:56 AM

Strange I did what I thought I needed to but it gives me this error

Quote:

Parse error: parse error in /home/clanomn/public_html/omni/admin/index.php on line 106
Here is my admin/index.php

ryanhulce 04-11-2002 06:06 AM

Line 106 in my admin/index.php is

function kbtomb($value) {

FWC 04-11-2002 06:09 AM

Quote:

Originally posted by ryanhulce
Strange I did what I thought I needed to but it gives me this error



Here is my admin/index.php

What did you use for a code editor? Everything is weirdly spaced. The lines are double spaced and the space between function and kbtomb is not a real space. That's causing the parse error. But everything below it has the same problem, too. You need to start over. Also, we're not supposed to post complete vB files. You should delete that attachment.

ryanhulce 04-11-2002 06:18 AM

I copied it using Opera not Internet Explorer and for some reason Opera had it all spaced!! It works great now thanks for helping.


All times are GMT. The time now is 10:00 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.01470 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (4)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