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)

Doubledoom 03-04-2003 09:44 AM

I have installed this on 2.3.0 RC3 running VBportal 3.0.

All appears ok but if you turn the vbportal option on, i get the following errors.

Code:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/new-version.org.uk/httpdocs/vbb/forums/vbstats.php on line 353

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/new-version.org.uk/httpdocs/vbb/forums/vbstats.php on line 355

Those two lines are relating to the code for VBportal 2.

I notice the poll line is working but the news one is not. I would guess (and its only a guess) that the code cannot handle multiple news forums and that is why it fails (preferences in vbportal have news forums as " 1,2,5,9" to show forums 1,2,5 & 9 are news forums.

If the vbportal option is turned off, then the rest of it is fine without errors.

h4x0rtje 03-07-2003 06:47 PM

Quote:

Originally posted by Bane
Has anyone had any troubles getting this to work with vbHome?
Works fine with me :)

Only when you set Use vbPortal Weblinks Additions? on YES..
I get:
Code:

Warning: Supplied argument is not a valid MySQL result resource in /www/domain/site/board/vbstats.php on line 357

Warning: Supplied argument is not a valid MySQL result resource in /www/domain/site/board/vbstats.php on line 358
Table 'BBEsql.nuke_links_links' doesn't exist

I dont know what: Use vbPortal Additions? and Use vbPortal Weblinks Additions? is......

And in which format do i have to write the date statistics begin?

Bane 03-07-2003 07:12 PM

The problem with vbPortal is he must have changed the tables in some way. Unfortunately I dont have it installed anymore. I may have to install it on a test board. For now the only fix would be to turn those additions off.

esquared 03-08-2003 09:39 PM

Is there away that to make it show the current month stats for top posters of the month instead of the last 30 days? Atleast I assume it's doing 30 days because it says on my board I've gotten 1000+ posts already this month and that isn't possible unless it's doing 30 days instead of the current month of March.

Bane 03-08-2003 10:32 PM

It is doing 30 days instead of the current month yes. :(

VampireMan 03-08-2003 10:59 PM

re vbportal 30b problems

Find This in vbstats.php (near line 291)

PHP Code:

$cat1 mysql_num_rows(mysql_query("select * from  nuke_links_categories"));
$cat2 num_rows(mysql_query("select * from nuke_links_subcategories"));
$cat $cat1+$cat2

And replace with This
PHP Code:

$cat mysql_num_rows(mysql_query("select * from vbp_links_categories")); 


Bane 03-08-2003 11:03 PM

can anyone confirm VampireMans change? If so I will change it in the zip.

esquared 03-09-2003 03:18 AM

Quote:

Originally posted by Bane
It is doing 30 days instead of the current month yes. :(
Anyway to make it do the current month though? :(

h4x0rtje 03-10-2003 10:23 AM

Quote:

Originally posted by h4x0rtje


I dont know what: Use vbPortal Additions? and Use vbPortal
Weblinks Additions? is......

And in which format do i have to write the date statistics begin?

Anyone?

Bane 03-10-2003 04:12 PM

The format of the date statistics begin is whatever you want it to be. Its not really used.

As far as the other if you dont know what it is you dont need to use it, its fog vbportal.

esquared : I'll take a look at it when I have some time.

monstergamer 03-10-2003 04:45 PM

is there any way you can make it not count you
also notice when you refresh it goes up to
other then that i love this hack

Bane 03-10-2003 04:50 PM

It counts total views monstergamer. The only way you could stop that would be checking ips or dropping a cookie to the users computer.

You could make it not count you with some additional hacking yes. like putting the vbs_counter include in the global.php and having a usergroup detect around it or something.

monstergamer 03-10-2003 05:03 PM

ok thanx
i well try that now

Zelda-King 03-14-2003 07:53 PM

I've installed this. Impressive hack. One gripe: banned users etc can view this.

I fixed this by inserting this code in vbstats.php (which wont work for a lot of you. This goes with a journal template I have from another hack, and most of you may not have a ban group for usergroup 10;
PHP Code:

//if user is banned then cannot view vB Stats.
        
if(($bbuserinfo[usergroupid] == "8") || ($bbuserinfo[usergroupid] == "10")){
                
//redirect
                
$goto="index.php?s=$session[sessionhash]";
                eval(
"standardredirect(\"".gettemplate("redirect_noaccessjournal")."\",\"$goto\");"); 

You could easily customise that to your own templates etc if you want to keep certain usertypes out.

Matrix28 03-15-2003 03:02 PM

Thanks guys.

monstergamer 03-16-2003 01:12 AM

Quote:

Yesterday at 04:53 PM Zelda-King said this in Post #1094
I've installed this. Impressive hack. One gripe: banned users etc can view this.

I fixed this by inserting this code in vbstats.php (which wont work for a lot of you. This goes with a journal template I have from another hack, and most of you may not have a ban group for usergroup 10;
PHP Code:

//if user is banned then cannot view vB Stats.
        
if(($bbuserinfo[usergroupid] == "8") || ($bbuserinfo[usergroupid] == "10")){
                
//redirect
                
$goto="index.php?s=$session[sessionhash]";
                eval(
"standardredirect(\"".gettemplate("redirect_noaccessjournal")."\",\"$goto\");"); 

You could easily customise that to your own templates etc if you want to keep certain usertypes out.

thanx for the addon
this is one of the best hacks

.:.NetStartz.:. 03-17-2003 02:44 AM

How can I block someone from viewing my stats page? Using his IP? But let him see the rest? It's really important...

Bane 03-17-2003 03:13 AM

Send me a pm with the info netstartz, I'll see what I can do to help you.

monstergamer 03-18-2003 01:55 AM

is there a way to make it tell the times the came to your site like
12:00 - 1:00 = 2 visits
1:00 - 2:00 = 5 visits
and so on
or well this be hard cause of the time difference

jbear6 03-18-2003 02:17 AM

Okay, dumb question time...
I was smart enough to read the second post in this thread, and found the answer to my question regarding compatibility with 2.2.6 (Currently working splendid on all 2.x versions to date). But, then I looked at the top of your first post and saw this: "For vBulletin version: 2.3.x". Will this fantastic hack work on 2.2.6?

Thanks,
Jbear6

Bane 03-18-2003 04:04 AM

Yes Jbear6 it will. Be careful when placing the hacks, as some may have changed, but it works well yes.

monstergamer - no not currently

jbear6 03-18-2003 01:29 PM

Thank you very much Bane, you are a scholar and a gentleman.

Jbear6

mvigod 03-19-2003 02:19 AM

Does the latest installer have an upgrade option besides the installer option? I need to upgrade from an older version to the newest for vb 2.3. thanks.

Floris 03-19-2003 05:24 AM

Quote:

Today at 05:19 AM mvigod said this in Post #1103
Does the latest installer have an upgrade option besides the installer option? I need to upgrade from an older version to the newest for vb 2.3. thanks.

As far as I know ... each version has a install/uninstall/upgrade feature. During installation it also mentions that if you upgrade your vbulletin, you should run install script again and choose upgrade.

If you upgrade your vBulletin, you should manually re-apply the source code changes. The templates and mysql changes are ofcourse, already in place.

Bane 03-19-2003 02:40 PM

You can upgrade in all the 2x versions and keep your current stats.

Cyricx 03-20-2003 09:30 PM

any plans for it to list like most popular styles? or even most popular smilies?

We use several styles on our site as well as a whole host of smilies, would like to be able to move the most popular smilies to the main smiley panel if I had a way of tracking which those were. :)

Thanks!

Bane 03-21-2003 12:25 AM

Cyricx, its possible I suppose, the first is quite easy, and for the most part is already in the code for vbstats. The second is more involved and would involve further hacking to vb.

Tim Wheatley 03-29-2003 09:55 PM

Thanks for the updated version Bane! I uninstalled this a while ago as my board got too big for the old version and it kept killing my server, but I'll try this new one. Site is http://forum.racesimcentral.com - stats will only be shown to staff (or the link to it will), but feel free to guess the url. I'm currently installing and editing a test board, it'll go live on the above url tonight sometime though... :)

My board should be quite a test for your coding. :)

Thanks man! :D

Tim Wheatley 03-30-2003 10:51 AM

Bane please check your PM's, I just replied. It's now live on the board.

http://forum.racesimcentral.com/vbstats.php

I'm only making it visible to staff.

Tim Wheatley 03-30-2003 11:10 AM

ps: incase you're wondering, I haven't disallowed my own domain from registering, this is because we have a lot of sub domains and sites we host and I'd like to see which are bringing in the most visitors. Can I exclude certain sub domains? forum.racesimcentral.com and www.racesimcentral.com for example?

Tim Wheatley 03-30-2003 11:17 AM

Yes you can! I just added "forum.racesimcentral.com" and it's working. Super. I'm leaving www.race... on though I think... We probably get more people through out sub sites, so it'd be nice to see that in black and white.

Kars10 04-04-2003 05:57 AM

Hello!
One Question: how can i show the Pageviews on my Forumhomepage? I have searched the thread, but can?t find it.

Thanks in advance
Kars:)

TechGuy 04-05-2003 03:03 PM

Am I the only one who is having trouble with this one? :)

Went into the install, /admin/install_vbstats.php and click on install... Gives me the header, and the header only:

Code:

<html><head>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link rel="stylesheet" href="../cp.css">
<title>vbStats Addon Installer / Uninstaller</title></head>
<body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">
<style type="text/css">
.red { color: red }
.blue { color: blue }
BODY,td { font-family:Verdana,sans-serif; }
</style>
<table width="100%" bgcolor="#3F3849" cellpadding="1" cellspacing="0" border="0"><tr><td>
<table width="100%" bgcolor="#AAAAAA" cellpadding="3" cellspacing="0" border="0"><tr>
<td><a href="http://vbulletin.com/forum/showthread.php?threadid=19081" target="_blank"><img src="cp_logo.gif" border="0" alt="Click here to visit the support thread."></a></td>
<td width="100%" align="center">
<font size="3" color="blue"><b>vbStats 230.b<br><br></font>
<font size="2"><span class="blue"><b>Written by  <a href="http://www.vbulletin.com/forum/member.php?action=getinfo&userid=616" class="lc" target="_blank">[Bane]</a></b><br>
<b>For  <a href="http://www.talkloud.net/" class="lc" target="_blank">[Talkloud.NET]</a></b></span></font>
</td></tr></table></td></tr></table>
<br>
</body></html>

How do I get it to actually install? VB 2.3.0

TechGuy 04-05-2003 05:45 PM

I think I've got it... you're missing a "php" in your code...

Code:

<br><br>Or you can just <?php gotostep(6,0,0,1,"exit now"); ?> .
</blockquote>
<?
}

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ vbStats - Table Creation - Step 3
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

SHOULD be:

Code:

<br><br>Or you can just <?php gotostep(6,0,0,1,"exit now"); ?> .
</blockquote>
<?php
}

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ vbStats - Table Creation - Step 3
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


monstergamer 04-05-2003 10:01 PM

ok
let say i want to show more Top Referring Sites
it show the top 20
i would like to make it 30 or so
how could i do this

Bane 04-13-2003 08:26 AM

monstergamer - you can configure this in the vbstats admin CP.
TechGuy - Will be fixed, thanks for pointing that out.

monstergamer 04-13-2003 08:16 PM

Quote:

monstergamer - you can configure this in the vbstats admin CP
how can i do this

Bane 04-14-2003 05:05 AM

Total Top Referring Sites to Display in the vbstats admin, change value to 30.

Rynthar 04-17-2003 05:58 AM

Well. I got everything to work, cept when I tried to put the stats on my forum home, didnt work. The new template and changes all are 100% fine

cbhale 04-19-2003 05:46 PM

Great Addition to my Vbulletin. It took me like 10 minutes to complete the install and was really painless. There were a couple of steps missed in the directions. (Could be me though!)

Thanks for the hard work! :)

Charles


All times are GMT. The time now is 08:12 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.03120 seconds
  • Memory Usage 1,840KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)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