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)

Bane 10-24-2001 06:06 AM

Quote:

Originally posted by Animaniac1217
What you ahd done (in a later version, that I didn't modify) was that you allowed certain forums to be blocked. I wrote code that will only show if you have access. So if you have access you will see the forum and it's threads, if not you will not see them, and you see everything else just the same. This is for the top 10.
Just to be clear.. You are trying to sell a slight mod to my hack?

Bane 10-24-2001 06:08 AM

GenSec: If that works for JJR512 I will put it in the next release :p btw, your link in your sig doesnt work?

JJR512 10-24-2001 06:13 AM

Quote:

Originally posted by Bane
JJR512: Have you pruned threads? I'm looking at my board and it seems to be just the difference of how many posts in the test board.

Maybe try updating the counters?

Nope, I've never pruned. Updating counters didn't do anything; in fact, I even ran a script provided by someone else here a while ago that updates every member's post count with the actual number of posts on record for that member in the database. Sometimes the post count record does get a bit off. My post count came out to be the same thing, though.

Quote:

Originally posted by GenSec
O, sorry. I forgot to say that above this you shoud change

Code:

      $result1=$DB_site->query_first("SELECT username FROM user WHERE userid=$user1[userid]");
to
Code:

      $result1=$DB_site->query_first("SELECT username,posts FROM user WHERE userid=$user1[userid]");

OK, I did that and now my correct post count is displayed. So thanks! But there is still one problem left: I am at the top of the list, but the second person has more posts than I do.

GenSec 10-24-2001 06:17 AM

Quote:

Originally posted by Bane
GenSec: your link in your sig doesnt work?
It's common vB problem. Double http://
:)

GenSec 10-24-2001 06:53 AM

Quote:

Originally posted by JJR512

But there is still one problem left: I am at the top of the list, but the second person has more posts than I do.

Frankly, I like to have 2 type stats:
based on all posts & based on user counted posts
But if you prefer the last one
change in topposters to
Code:

    $toppost1=$DB_site->query("SELECT *
                    FROM user
                              ORDER BY posts DESC
                    LIMIT $toppostmax");
    $bgcolor="{firstaltcolor}";
    while ($user1=$DB_site->fetch_array($toppost1)) {
        $result_1=$DB_site->query_first("SELECT COUNT(*) AS threads
            FROM thread WHERE postuserid=$user1[userid]");
        $threads1=$result_1['threads'];
        $topposters1.="<tr><td width=100% bgcolor=$bgcolor><smallfont><a href=\"member.php?action=getinfo&userid=$user1[userid]\">$user1[username]</a></td><td bgcolor=$bgcolor align=right nowrap><smallfont>$user1[posts] / </smallfont></td><td bgcolor=$bgcolor align=right><smallfont>$threads1</smallfont></td></tr>";
        if ($bgcolor=="{firstaltcolor}") {
            $bgcolor="{secondaltcolor}";
        } else {
            $bgcolor="{firstaltcolor}";
        }
    }


GenSec 10-24-2001 07:00 AM

Btw this code will count not only posts, but also the threads;)

epi 10-24-2001 12:14 PM

i am new to the vbulliten community and i need some help
i followed the instructions on how to install this hack but it does not show up on my we page.

1. where do i put the code so their is a link to the stats under the view new posts link, and what is the code

2. where do i add websites to exclude from the count

please be specific

Bane 10-24-2001 02:36 PM

Let me answer number 2 first. If you made the changes to the vb Admin CP you click Exclude vbStats URL in your admin CP. If not set your browser to view http://yourdomain.com/forums/admin/v...php?action=add

A screen will come up with Add New Excluded URL simply place the domain you wish to exclude in the text entry box. repeat as needed.

As for where to link it on your site, that is a matter of taste. As an example you could open your forumhome template and find
Quote:

You last visited: $bbuserinfo[lastvisitdate].
and change it to
Quote:

You last visited: $bbuserinfo[lastvisitdate].<br>
<a href="vbstats.php">View Forum Statistics</a>

epi 10-24-2001 03:06 PM

thanks a lot that worked great.
another question can you make it display different version of windows instead of all the other operating systems.

DarkReaper 10-24-2001 06:23 PM

What features will the new version contain, and when do you think it'll be released?


All times are GMT. The time now is 01: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.02595 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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