vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Ultimate Forum Stats Integration for Non-VB Page (https://vborg.vbsupport.ru/showthread.php?t=63223)

BlackxRam 04-19-2005 08:42 AM

AXI the instructions are in the zip file and all over this thread, use a php command or a ssi include.

I have never had any problems with the script wanting to cache. Perhaps your browser settings are keeping stored pages longer and not refreshing.

im still at a loss Major, do you have any other hacks installed which may affect the post counts?

Slapyo 04-19-2005 02:12 PM

actually this doesn't display the stats correctly. if you have deleted posts or threads in your forum, but not physically deleted them, it will still show up in these stats, but it doesn't show up in the forum stats. here is the code i use to grab the stats from the forums itself.

PHP Code:

$specialtemplates = array(
    
'userstats',
);

chdir("./forums/");
require_once(
"./global.php");
require_once(
"./includes/functions_forumlist.php");
chdir("../");

// Forum Stats
cache_ordered_forums(1);

$totalthreads 0;
$totalposts 0;
if (
is_array($forumcache))
{
    foreach (
$forumcache AS $forum)
    {
        
$totalthreads += $forum['threadcount'];
        
$totalposts += $forum['replycount'];
    }
}
$totalthreads vb_number_format($totalthreads);
$totalposts vb_number_format($totalposts);
$userstats unserialize($datastore['userstats']);
$totalmembers vb_number_format($userstats['numbermembers']); 


BlackxRam 06-01-2005 11:27 AM

Quote:

Originally Posted by Slapyo
actually this doesn't display the stats correctly. if you have deleted posts or threads in your forum, but not physically deleted them, it will still show up in these stats, but it doesn't show up in the forum stats. here is the code i use to grab the stats from the forums itself.

Actually it does display the stats correctly, lol. It does display how many total posts your forum has, not how many you have and are also hidden heh.

The numbers numbers were meant to be an accurate account of total posts, if something is soft deleted, its not really gone, just hidden. I say, if your going to delete something... just delete it lol ;)

Slapyo 06-01-2005 02:05 PM

if you delete it you lose the IP address of the poster. if you have a person who many be a repeat offender, soft deleting posts will allow you to see the other posts made by the same IP. obviously doesn't work for everyone, but it does work for quite a bit of people. if you hard delete then it is gone and there is no record. :/

BlackxRam 06-01-2005 07:53 PM

Thats why there is user notes. ;) =)

Slapyo 06-02-2005 05:37 AM

but you have to sort through the notes. with this, you just click the ip link in the post and it tells you everything. :)

d2sector 07-14-2005 12:03 PM

How do you get around the
Quote:

Unable to add cookies, header already sent.
error?

Snetty 07-25-2005 10:43 AM

does this work with 3.5?

SirJonathan 11-04-2005 05:18 PM

*bump*.. Anyone know if this works with 3.5?

Dark Riku 11-23-2005 12:41 AM

Quote:

Originally Posted by Indy
A little success. Per an article at Microsoft, I added an additional <HEAD></HEAD> tag set after the </BODY> set. In both sets and put in:


Works well with Firefox and Netscape, but no go with IE. I'll propbably head over to the HTML forum where it appears I probably should have been in the first place. Didn't mean to post in the wrong forum.

Thanks for the great script!!

Has anyone found out the exact code? Thanks


All times are GMT. The time now is 07:10 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.01307 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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