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)

BaldNut 11-20-2001 02:53 PM

1 sec i try m8

Bane 11-20-2001 02:58 PM

Why are you calling the counter.php in your phpinclude template? try removing that, certainly if its not even on your server. I believe wajones is going to be moving vbPortals stats over to vbstats anyway.

counter.php is called in your vbPortal head.php (or header?) try editing it out of there.

Try uploading vbs_counter.php to both your forum and root directories.

JTMON 11-20-2001 03:00 PM

Bane I checked his forums and it appears he has both the vbs_counter.php and counter.php files there in his root folder.

JTMON 11-20-2001 03:00 PM

At any rate, Glad the expert is here! :p

Bane 11-20-2001 03:03 PM

Is the file (vbs_counter) in the root and forums directories? I have mine in both because vbportal seems to not want to find it from time to time. it seems like its not finding it at all. and if vbstats.php is showing up all white that means its not finding the language file for inclusion.

Make sure vbstats.php is installed in your FORUMS directory. not root.

Make sure you have the paths right in all cases.

Let me know.

Bane 11-20-2001 03:04 PM

Quote:

Originally posted by JTMON
At any rate, Glad the expert is here! :p
LOL, I just wrote it, what do I know?

JTMON 11-20-2001 03:06 PM

I'd say alot. This seems to be the most popular hack ever! :D

I just checked his forums again. He has the vbstat.php file in his root only :(

Oh yeah, you should change your sig so it says. El Coolest Hacko!

BaldNut 11-20-2001 03:06 PM

:D

i try now m8 cheers & to JTmon thanx

JTMON 11-20-2001 03:10 PM

Well I see he moved it to his forums folder but is still getting the white page. That means the language file isn't getting called? NUTZ-I can't remember where the code is supposed to go for that :p

BaldNut 11-20-2001 03:10 PM

whats the language file m8, and where should it be ?

JTMON 11-20-2001 03:12 PM

The file is called vbslang_en.php. If it's up on your server you may want to try it in your forum folder I think

JTMON 11-20-2001 03:13 PM

Yeah I see it's in the root. Try moving it to the forum folder.

BaldNut 11-20-2001 03:17 PM

right its sort of working but its got a lot of errors at the top of the page

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 159

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 165

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 162

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 186

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 148

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 139

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 145

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 142

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 136

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 151

Warning: Division by zero in /home/sites/site4/web/forums/vbstats.php on line 154

but some of the data is ok, i think some of the paths may be the prob cause the images are missing ?

ill be 5 mins cause i have to see a client (slimming consultant you see :D )

JTMON 11-20-2001 03:19 PM

Ok now we're getting somewhere. Division by zero errors mean there's something up with the include statement. Paste your current PHPinclude statement here. Or try like Bane said and put the vbs_counter.php file in both your root and forums folder.

BaldNut 11-20-2001 03:21 PM

ive put that in both m8, my phpincludes is:

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

back in 5 mins

JTMON 11-20-2001 03:23 PM

um, I think that's supposed to be vbs_counter.php and with one less . before the /


WHERE'D ya go Bane!! :stupid: :eek: :confused: :D :p

JTMON 11-20-2001 03:32 PM

Also, I don;t know if it's supposed to be in that loop as it seems that if the condition isn't met then the file won't be included.

Bane 11-20-2001 03:33 PM

Make your phpinclude template look like this:

Code:

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


BaldNut 11-20-2001 03:46 PM

right guys we starting to get their now.......

look here :

http://www.golden-springs.com/forums...=&action=stats

but if i visit

http://www.golden-springs.com/forums/vbstats.php

i get a blank page

ooooh i just noticed their is a link on the vbportal (my main page) for stats which displays some of the stats ?

was that always their ?

JTMON 11-20-2001 03:49 PM

I get a working vbstat page at both. The only thing is that your images are missing.

Princeton 11-20-2001 03:50 PM

Congratulations, baldnut it's working. I get vbstats on both links.

Upload your images to it's proper folder.

JTMON 11-20-2001 03:50 PM

did you upload the gifs to your forum/images folder in binary?

Note this from the install instructions I got:

Upload the GIF files to your server.
I would advise the [vbulletin]/images/ directory, but the
$tl_loc and $tl_loc2 variables in the vbstats.php can point anywhere you like.

BaldNut 11-20-2001 03:52 PM

couldnt of done it without you guys thank you v.much :)

now for my next hack install :)

dont you go offline you lot :p

JTMON 11-20-2001 03:54 PM

I'll be here. Just hope any other hacks are ones I've also installed:D

BaldNut 11-20-2001 03:58 PM

cool m8 thanx :)

ive now got the images working too :)

have you installed the one which says next to your name

online | offline ?

if so is it difficuilt

JTMON 11-20-2001 03:59 PM

dunno haven't done that one yet:D

It's on me list tho!

BaldNut 11-20-2001 04:01 PM

what about giving the drop down box to select which colour display is shown to the user ?

JTMON 11-20-2001 04:24 PM

I believe there are options in the AdminCP where you can set the colors.

BaldNut 11-20-2001 04:53 PM

sorry m8 i was meaning the kind that displays on the main page so the user can choose what colour scheme to use on the page

JTMON 11-20-2001 04:56 PM

For VBStats I believe most of it corresponds to your style colors.

BaldNut 11-20-2001 05:01 PM

sorry m8, ive confused things here, its for my overall site design (the whole forums) im gonna do a custom design and i was gonna use one of those drop down boxes so users can select which style they like best

JTMON 11-20-2001 05:02 PM

gotta put it in the request section here. It should be easy enough tho.

BaldNut 11-20-2001 05:16 PM

its a hack ive seen on http://www.sportbikeworld.com/

have a look on the top right hand side m8

JTMON 11-20-2001 05:20 PM

That's not a hack it's built into VBPortals. I think getting the same thing for the forums would be tho

JTMON 11-20-2001 05:23 PM

Well I thought it was. They used to have that same drop down on php portals but it seems like it's gone now!

JTMON 11-20-2001 05:25 PM

Yeah if you read the last news post in the center it says:

Styles Demo Posted by: [wajones] on 10-18-2001 @ 10:12 PM
Thanks to Pete, note the new Styles demo block, top of right column. These aren't fancy, just a demo of the multiple styles you can have for vbPortal. This isn't meant to set your default style. You will still have to do that in the usercp. It's just to demo the capabilitiy to new visitors.

Now it was there the other day but is not now. BTW I think we should discuss this elsewhere, like in general chat or something:D

Amasov 11-20-2001 07:06 PM

Heyho @Bane :)

This is the most powerful Hack I've ever seen. It works like a charm :) :)

But, I do have a little problem:

I've installed also this *mini-hack* for the forum_home.

But on the main-index-page is maybe a little bug, because this one shows all threads and all posting for last 24h !

On "vbstats.php" works it quiet well. :)

Just test yourself:

Bugproblem:
http://www.d-c-f.de

Working:
http://www.d-c-f.de/vbstats.php

As you can see, there are different values for $threadstoday and $poststoday.

So, how may I fix it?

(This hack is incredible! :) )

Psychdrone 11-20-2001 07:15 PM

any working versio n for 2.2.1?

JTMON 11-20-2001 07:17 PM

It does work for 2.2.1 as there were no changes to index.php for 2.2.1

Not sure why the values are off though

Bane 11-20-2001 07:39 PM

Quote:

Originally posted by Amasov
As you can see, there are different values for $threadstoday and $poststoday.
Try putting this code right after

// Today [FireFly]

in the index.php

Code:

$tltoday=time()-(86400);


All times are GMT. The time now is 09:15 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.02025 seconds
  • Memory Usage 1,809KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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