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)

Von Halen 10-11-2002 04:49 PM

Reverend,

That's what I thought, but thanks a bunch for the confirmation. I appreciate the help. Just a little paranoid of screwing up. lol.

Greystang302 10-12-2002 12:09 PM

Has anyone else had any problems installing this on vB 2.2.8? Any fixes?

threadcrapper 10-19-2002 05:48 PM

In VB 2.2.8 here is how the code looks in admin/index.php -- this blends more as some asked about -- also the code in 2.2.8 changed a bit



PHP Code:

<table width="100%" border="0" cellspacing="0" cellpadding="<?php echo iif($cpnavjs,2,5); ?>" id="navtable">

<!-- vbStats -->
<tr><td><hr></td></tr>

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<tr class='tblhead'><td colspan='2'><a name=""><font size='1'><b><span
class='tblhead'>vbStats</span></b></font></a></td></tr></table>
<a href="vbstats_set.php"> vbStats Config </a><br>
<a href="../vbstats.php"> View Public Statistics </a><br>
<a href="vbstats_set.php?action=add"> Exclude vbStats URL </a><br>
</td></tr>
<!-- vbStats -->

<tr><td><hr></td></tr>
<?php
// *************************************************
makenavoption("vBulletin Options","options.php?t=0","<br>");


lowlight 10-20-2002 03:24 AM

This hack stopped working when I installed 2.2.8 - is there a fix coming?

bouncer18 10-20-2002 06:45 AM

works for me on 2.2.8

btw here is how i made my index.php entry look like.. MUCH CLEANER

Anywhere Below Vbulletin Options section.........

Code:

// *************************************************
makenavoption("Config","vbstats_set.php?action=","|");
makenavoption("View Public Statistics","../vbstats.php?action=","|");
makenavoption("Exclude vbStats URL","vbstats_set.php?action=add","|");
// ***
makenavselect("Forum Stats", "<hr>");
// *************************************************


lowlight 10-21-2002 03:58 AM

I thought it doesn't even edit index.php :confused:

Graphics 10-21-2002 07:46 AM

Great hack. Installed it fine. I just get this error when I go to the stats page. Hope you can help. :)

PHP Code:

WarningDivision by zero in /home/thunder/public_html/static/vbstats.php on line 159

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 165

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 162

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 186

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 148

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 139

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 145

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 142

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 136

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 151

Warning
Division by zero in /home/thunder/public_html/static/vbstats.php on line 154 

That's my error... :(
Oh, and I'm running 2.2.8 btw.

Graphics 10-21-2002 07:50 AM

Quote:

Originally posted by lowlight
This hack stopped working when I installed 2.2.8 - is there a fix coming?
Did it not say on step one of the vbstats_install.php file that when you upgrade to a new version, you need to upgrade the stats too?

Re-Upload the installation file again and select the Upgrade option. :)

lowlight 10-22-2002 04:37 AM

Oops forgot :o

desi 10-29-2002 12:15 PM

ver nice hack ... installed it very easily and thanks for the update for version 2.2.8

everything seems to work fine ...
except i am getting a wierd error

Warning: Supplied argument is not a valid MySQL result resource in /home/123.com/httpdocs/forums/vbstats.php on line 283

Warning: Supplied argument is not a valid MySQL result resource in /home/123.com/httpdocs/forums/vbstats.php on line 284

Warning: Supplied argument is not a valid MySQL result resource in /home/123.com/httpdocs/forums/vbstats.php on line 285

any help with this would be appreciated

cheers

Savant 11-02-2002 07:44 PM

Quote:

Originally posted by vkrazzy
I got it up and running, follow his directions they are all most perfect, the only thing I can't get in the admin/cp hack, I had to run the vb_stats.php and could change the options, I've read this thread back to front and nobody tells anything about what to look for in 2.2.7, I'm going to try and run the update and see if that does it
I hit intall and of i go to a blank page, no error code, no nuthin :P

NTLDR 11-02-2002 09:08 PM

Quote:

Originally posted by Savant
I hit intall and of i go to a blank page, no error code, no nuthin :P
Check and see if you have the vbstats_ templates, I expect there not there.

Savant 11-02-2002 11:12 PM

nope, no templates :( real bummer sounds like a great hack...

NTLDR 11-03-2002 04:51 PM

Make sure you ran the installer correctly, it should automatically add all the templates into the global (all) template set(s)

Talisman 11-03-2002 05:58 PM

Great hack, thanks -> installed. Works perfectly.

Apok2002 11-05-2002 03:37 AM

I'm trying to exclude a url from stats. The url is www.dnspropagation.com.

I'm using the domain name: dnspropagation.com

I've tried my own domain name: ez-company.net

However, I can't keep this off of my referral list. Any ideas? My stats page is at: www.ez-company.net/forums/vbstats.php

caislander 11-07-2002 04:41 AM

Hey Guys,

I am trying to install this on on a ver 2.2.6 board and after uploading the files (I double checked, so I am pretty sure I put them in the right directories) when I try & run the installer all I get is a blank page?? Somebody tell me what I missed

Thanks

NTLDR 11-07-2002 10:38 AM

Make sure the installer is in the forum/admin directory and it should run without any problems.

caislander 11-07-2002 02:15 PM

Hi NTLDR,

Thanks for the responce, I have however checked & double checked the directory & the page is in the admin directory and is called when I type the url (I don't get a page not found error) it is just that there doesn't appear to be anything on the page?? and if I view the source code this is what I see
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

So I am pretty sure I did something wrong or missed something, but I followed the dirctions & uploaded files as directed, so what did I miss??

NTLDR 11-07-2002 04:43 PM

Is that what you get when viewing vbstats.php or the vbstats installer?

caislander 11-07-2002 04:55 PM

Quote:

Originally posted by NTLDR
Is that what you get when viewing vbstats.php or the vbstats installer?
NTLDR,

When I call the installer I get a blank page, and when I view the source code of that blank page that is what I see.

Thanks

NTLDR 11-07-2002 05:01 PM

All I can suggest then is that you re-download the zip file and check your uploading the .php files in ASCII mode in your FTP Client.

caislander 11-07-2002 05:08 PM

OK NTLDR, I will do that when I get home this evening, my boss doesn't mind me on forums during breaks but he would probably draw the line @ me working on web projects not related to work :D

Thanks for the help

caislander 11-08-2002 01:24 AM

NTLDR,

Thanks for your help I fimnaly got it up and running, the problem was and still is to a point, that the files in my directorys are php3 not php, so the installer was trying to include global.php anf=d it didn't exist. But my next problem was born of my own stupidy, as i did the install I did not do the optional hacks at the time, planning to do them later, well to make a long story short the browser window got closed before I could make the modifacations, now I don't know where to find the instructions for those changes, can you tell me?? or is there someother way (file) that I can make the url exclusions and other changes in?

Thanks again

caislander 11-08-2002 11:12 PM

Ok, I found that answer. So upward & onward to the next problem, where & how to I change this so that it looks for the .php3 extensions instead of just .php?

EZ-Dozet 11-09-2002 01:19 AM

I bet this has been answered and I don't feel like going through 66 pages. Does this hack work with 2.2.8

thanx kindly

AsedaH 11-13-2002 10:14 AM

i installed this about 10 minutes ago on 2.2.8. It was a flawless install. However, i didnt install any of the options. I don't need them as of yet.

GZ_Tanis 11-14-2002 01:19 AM

seeing how there is 20 pages here im sorry i really dont have the time to read them all :)

What I need to know is, is it possible to only choose certian parts to show for this? Cause all i really would like to show is the forum stats, member stats (without the referrals we dont use it), and last 24 hour stats. The top posters is somethin i would like also but the other stuff like countires and OS and that I can do without. But before I install this I want o be sure I can just set it up to show those things and not the stuff i dont want.


Also you wouldnt by any chance of a php3 version of this? It is such a pain to go thru all the files and change the php to php3 :)


I awiat your reply in earnest,

GZ_Tanis

Shepski 11-14-2002 02:41 PM

installed the hack but get an error on my forums homepage:

Warning: Supplied argument is not a valid MySQL result resource in pathtoforums\vbs_counter.php on line 74

My phpinclude template looks like:

ob_start();
include("vbheader.php");
include ("vbs_counter.php");
$revdis = ob_get_contents();
ob_end_clean();

the other file in there calls up a file that reads data from another database and displays it on the forums.

when i run the vbstats.php i get:

Warning: Supplied argument is not a valid MySQL result resource in E:\domains\dvd-swaps.co.uk\dvd2001\dvdforums\vbstats.php on line 88
1046: No Database Selected

this is prolly cos my other file has mysql_close(); in it but if i take this out the vbstats starts looking in my other database!!

any ideas how I can get the vbstats to work. i have tried putting the include("vbheader.php"); all over the place in the template but no joy :(

EDIT
Got it going :) I had to add to the vbstats code and counter the code from global.php which connects to the database as my other file was closing all connections to mysql. works like a dream now. great hack :)

Dynamic One 11-20-2002 02:03 PM

Thanks Bane for this nice stat.

Doc203 11-21-2002 04:08 AM

Sorry I have been reading till my head hurts can you tell me what these errors are.

("_TOPCOUNTRYERROR","No country information has been logged."); ?> ?>
Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 159

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 165

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 162

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 186

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 148

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 139

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 145

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 142

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 136

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 151

Warning: Division by zero in /usr/local/plesk/apache/vhosts/searchforautoparts.com/httpdocs/vbstats.php on line 154

Dark_Wizard 11-21-2002 11:20 AM

Doc203 >> you forgot to add this include("vbs_counter.php"); to your phpinclude template!

iblis 11-23-2002 11:17 AM

I'm really sorry, I just had to make this little tweak, because it annoyed me :)
Don't shoot me if it allready have been adressed..

When adding the vbstats to admin/index.php you don't have much coice on where to insert it, it has to be the top or the bottom, or you get a parse error (at least I do). And frankly, I don't like when hacks mess up my menuorder.. I want it pretty much default, so I won't get to confused ;)

Anyways.. here is what I came up with when trying to customize it.
This will allow you to descide for yourself where to put the vbstats-menu in theadmin CP-menu.

If you allready have the vbstats menu installed in admin Cp,. do the following.. else skip this step
Find and erase following in admin/index.php
Quote:

<!-- vbStats -->
<tr><td><hr></td></tr>

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("vbStats"); ?>
</table>
<a href="vbstats_set.php"> vbStats Config </a><br>
<a href="../vbstats.php"> View Public Statistics </a><br>
<a href="vbstats_set.php?action=add"> Exclude vbStats URL </a><br>
</td></tr>
<!-- vbStats -->
now, find
Quote:

makenavselect("Announcements");
// ***
and below, add
Quote:

// HACK VBSTATS
makenavoption("vbStats Config","vbstats_set.php?action=edit","<br>");
makenavoption("View Publis Stats","../vbstats.php?action=stats","<br>");
makenavoption("Exclude vbStats URL","vbstats_set.php?action=add");
makenavselect("vbStats");
// HACK VBSTATS
// ***
this will add the vbstats menu below the announcements.
if you want to position it somewhere else, you can move it to somewhere else on the list, just make sure you insert the code after a "// ***"


Sorry if this "edit" has allready been mentioned or something.. just a little gadget I found useful

e3ashig 11-27-2002 12:15 PM

There are way too many pages to read in here...
Is anyone here kind enough to answr this question.. does this hack work on version 2.2.9 of vBuliten.?
and if so, do i download the file that is in the first post of this thread or is it somewhere else?

Domenico 12-02-2002 04:32 PM

I have this hack installed and it works fine until I made a new template and made it default.

When I go to /vbstats.php all I get is a blank screen.
What is wrong here?

Thanks!

Ninth Dimension 12-02-2002 05:47 PM

when you said you make a new template, do you mean you make a new template set? if so, this page is not working because you don't have the templates that it needs to run.

My recomendation is that you download, and then upload your current template set when making new ones, this wil ensure that you don't miss any of the templates needed.

Domenico 12-02-2002 10:39 PM

So what is next? Should I reinstall it (removing the part that makes the tables)?

Ninth Dimension 12-03-2002 04:57 AM

To be honest with you, the best thing to do is download/upload the old template-set that you was using before (not deleting the new one). Then you should get all the changes you made in the new template you made before and apply them to the freshly uploaded template.

Mind you, if this is the only hack that you have applied to the forum, you might be able to get away with just installing the templates that this hack uses.

I hope that makes sense?

Akujin 12-03-2002 06:22 AM

Right... I'm getting this error:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/plesk/apache/vhosts/vertical12.net/httpdocs/forum/vbstats.php on line 283

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/plesk/apache/vhosts/vertical12.net/httpdocs/forum/vbstats.php on line 284

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/plesk/apache/vhosts/vertical12.net/httpdocs/forum/vbstats.php on line 285

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/plesk/apache/vhosts/vertical12.net/httpdocs/forum/vbstats.php on line 287

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/local/plesk/apache/vhosts/vertical12.net/httpdocs/forum/vbstats.php on line 288
Table 'lparker.nuke_links_links' doesn't exist

And I installed it correctly. No clue what the problem is though..

Xer 12-03-2002 04:06 PM

fully working on 2.2.9...
thx~ :mad:


All times are GMT. The time now is 12:26 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.02458 seconds
  • Memory Usage 1,855KB
  • 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
  • (7)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