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)

N!ck 03-06-2002 01:30 AM

this is nice, but seems like it would use up a lot of space - about how much; does anyone know?

Bane 03-06-2002 01:45 AM

Just wanted to say hi to Dalius! :) Hey man! Been a while since I've seen you over on talkloud. Thought I would give you an email!

nicksaunders - you mean the files or the mySQL database? The files all told are fairly small. the flag graphics are most of the space.

Jawelin 03-06-2002 06:58 PM

Quote:

Originally posted by Jawelin

Great hack, Bane!!
I saw it's the first one on vb.org, more!!

Just an off-topic, I suppose.
How could I read from PHP the user's TIMEZONE, along with the country ??
I though could be an enhancement a new page with a list of all timezones (with all the 3-char identifiers) and statistics of per-zone users.
I wouldn't prefer not to trust the timezone value of the user-table (I saw it isn't often upgraded by the user itself)

Thanks a lot.
Bye

What about a way to read TZ from the user's browser parameters ?
Thanks

Bane 03-06-2002 07:27 PM

That would be a neat addition but I'm not sure if that is in the browser info. Not sure how it could detect that.

cditty 03-06-2002 07:41 PM

Bane, any idea on my problem yet?

Chris

Bane 03-06-2002 07:57 PM

I'm going to go through and use the vbulletin connection method and we can see if that works chris.. Gimme a few.

Bane 03-06-2002 08:05 PM

argggh.. unfortunately ventures has chosen this time to put my test server out of commission. It may be a wee longer wait.

cditty 03-06-2002 08:12 PM

K

cditty 03-06-2002 08:15 PM

Bane, since you are connecting the non-vb way, would it help if I put the mysql_connect in the top of your code? What affect would that have on the rest of the forums?

I'm at work right now so I can't test right this minute.

Chris

Bane 03-06-2002 08:23 PM

I'm not sure.. all I am going to do is try making the mysql_connects go the same way as the rest of vb.

$DB_site->query

and see if that works right.

cditty 03-06-2002 09:02 PM

BINGO!!!! It's working with that now. Thanks for the idea.

Bane 03-06-2002 09:09 PM

=) w00t

cditty 03-06-2002 09:42 PM

Question....How do you determine the number of browsers that are used and the number of page views? Are these just incremental counters? I watched mine for a minute or two by simply refreshing the screen and noticed that they are incrementing rather quickly. As much as I would like my board to be this poplar, I don't think it really is.

Just curious.

Chris

N!ck 03-06-2002 10:50 PM

bane - it's the mysql space i'm concerned about (re: post #682)

Flipsidejones 03-06-2002 11:30 PM

After the update for 2.2.3, vbstats.php started returning a blank page. How can i get this working again?

FWC 03-07-2002 04:30 AM

Quote:

Originally posted by Flipsidejones
After the update for 2.2.3, vbstats.php started returning a blank page. How can i get this working again?
Run the installer and select update. You lost some of your templates.

Me2Be 03-07-2002 05:47 AM

Quote:

Originally posted by FWC
Run the installer and select update. You lost some of your templates.
I just installed this on my 2.2.3 for the first time and I am also getting a blank page --

Can you tell me what templates I SHOULD have in there so I can see if they installed correctly?

Bane 03-07-2002 05:52 AM

There should be a series of vbstats_**** templates.

Me2Be 03-07-2002 05:57 AM

Quote:

Originally posted by Bane
There should be a series of vbstats_**** templates.
I DO have about 17 of those (but still a while page).

Any suggestions to look for to get this working? (I just installed it tonight on the 2.2.3b version)

Thanks for your help :)

Bane 03-07-2002 06:03 AM

Oh! Yes :) Make sure you have the language file and counter in place correctly? Most of the time its a language file path out of whack that makes the white page.

lifesourcerec 03-11-2002 07:00 AM

I'm having trouble adding it to Admin CP. Can't find the code it asks for when installing it.

FWC 03-11-2002 07:08 AM

Quote:

Originally posted by lifesourcerec
I'm having trouble adding it to Admin CP. Can't find the code it asks for when installing it.
Find:
PHP Code:

makenavselect("Statistics & Logs",$df);
//*** 

Place the following right underneath it:
PHP Code:

// vbStats 
makenavoption("Config","vbstats_set.php?action=edit","<br>"); 
makenavoption("View Public Statistics","../vbstats.php?action=stats","<br>"); 
makenavoption("Exclude URL","vbstats_set.php?action=add"); 
makenavselect("vbStats","<hr>"); 
// vbStats 


lifesourcerec 03-11-2002 07:20 AM

Thanks a million :)

Xelation 03-11-2002 11:50 PM

Has this been tested on 2.2.4?

Xelation 03-11-2002 11:59 PM

well, I was testing it out on 2.2.4 and in the admin/index.php I cant find this...


PHP Code:

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Stats & Logs"); ?>

any help?

Recon_Boy 03-12-2002 12:18 AM

Well it works with my board on 2.2.4, but I upgraded...

Recon_Boy 03-12-2002 12:20 AM

Is this the part where it asks you to add the options on the left of the admin control panel? If so, you can pretty much stick that anywhere in the existing 'menu' list imho...dunno for sure tho

Xelation 03-12-2002 12:20 AM

can I see your admin/index.php file so I know where to put it?

Recon_Boy 03-12-2002 12:26 AM

I put mine right at the top:

PHP Code:

<center><a href="index.php?s=<?php echo $session[sessionhash]; ?>&action=home"> Control Panel Home </a></center>
<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>");
if(
$debug==1) {
    
makenavoption("Edit Settings","setting.php?action=modify","<br>");
    
makenavoption("Add Setting","setting.php?action=add","<br>");
    
makenavoption("Add Setting Group","setting.php?action=addgroup");
}
makenavselect("Options","<hr>");
// *************************************************
makenavoption("Add","announcement.php?action=add","|");
makenavoption("Modify","announcement.php?action=modify");
makenavselect("Announcements");
// ***
makenavoption("Add","forum.php?action=add","|");
makenavoption("Modify","forum.php?action=modify","<br>");
makenavoption("Permissions","forumpermission.php?action=modify");
makenavselect("Forums & Moderators");
// ***


Recon_Boy 03-12-2002 12:28 AM

keep in mind, i may have an old version of this hack

Xelation 03-12-2002 12:36 AM

thx! youve been a big help! ;)

Recon_Boy 03-12-2002 12:40 AM

about time I gave something back! :)

Xelation 03-12-2002 12:41 AM

Quote:

Originally posted by Recon_Boy
about time I gave something back! :)
yup, and it worked perfectly! ;)

Bane 03-12-2002 05:01 AM

Should work great on all 2.2.x versions with the code changes listed in the thread. and those are all cp and whos online stuff..

HTP 03-13-2002 02:09 AM

I'm getting errors after I install it:

Quote:

Warning: Division by zero in /public_html/forums/vbstats.php on line 159

Warning: Division by zero in /public_html/forums/vbstats.php on line 165

Warning: Division by zero in /public_html/forums/vbstats.php on line 162

Warning: Division by zero in /public_html/forums/vbstats.php on line 186

Warning: Division by zero in /public_html/forums/vbstats.php on line 148

Warning: Division by zero in /public_html/forums/vbstats.php on line 139

Warning: Division by zero in /public_html/forums/vbstats.php on line 145

Warning: Division by zero in /public_html/forums/vbstats.php on line 142

Warning: Division by zero in /public_html/forums/vbstats.php on line 136

Warning: Division by zero in /public_html/forums/vbstats.php on line 151

Warning: Division by zero in /public_html/forums/vbstats.php on line 154
What did I do wrong?

Bane 03-13-2002 02:23 AM

Please refer to the second post of this thread. For frequent problems such as this one.

Make sure you have included the counter in the phpinclude file.

David Bott 03-16-2002 01:22 PM

Greetings...

Seeing the very large size of this thread..Please forgive this this has been asked....

1) Does the currently posted download (zip) support 2.2.4 without having to go though this entire thread to find all the changes needed?

2) Seeing we are a VERY large VB site...What effect on the server would I expect to see by installing this wonderful software? (Avg users during peek time is 800 on-line.)

Thank you for your time.

David Bott
AVS Forum
http://www.avsforum.com

wooolF[RM] 03-16-2002 01:38 PM

damn... that's kinda many... I hope your users have the ability to choose another color scheme, doesn't they?

Bane 03-16-2002 01:47 PM

David, The current download does not, but you will find a link in the second post of this thread to the mods needed.

David Bott 03-16-2002 01:57 PM

wooolF[RM]....LOL - Yes, then can choose the Origional VB colors. But if I look, most use the default.

Bane...Too bad to read that. So, I guess I will need to play around but have this large fear based on the user load I have.


All times are GMT. The time now is 12:47 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.02275 seconds
  • Memory Usage 1,832KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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