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)

JTMON 11-15-2001 12:34 PM

Quote:

Originally posted by FWC
You could just put something like:

<a href="vbstats.php?s=$session[sessionhash]"><smallfont>Statistics</smallfont></a>

anywhere you want in your footer template. You can add any enhancements like making it bold.

Well that's almost what I wanted to do. But actually, I want to take the code in vb_stats.php and tack it on the end of whatever template the main forum index is. So that, beneath the Private Message part, the vb_stats would show there.

TIA!

SWFans.net 11-15-2001 06:22 PM

Quote:

Originally posted by JTMON


Well that's almost what I wanted to do. But actually, I want to take the code in vb_stats.php and tack it on the end of whatever template the main forum index is. So that, beneath the Private Message part, the vb_stats would show there.

TIA!

I just copied a few of the variable's defenition lines into index.php, and set it up like you are trying to, though its under my "Currently Online" display.

http://www.swforums.net/forum

Gholsie 11-15-2001 10:43 PM

Quote:

Originally posted by Bane
LuBi make sure that you add

include("vbs_counter.php");

to the php include template. That error springs from having no entries in the database.

I've been reading up on this issue because I just installed vbStats on my system with phpPortals. I dug deep into the system and couldn't find a file named "phpinclude" at all. But, I did manage to find (from this thread) instructions to add your include statement to my "globals.php" located in my vBulletin forum (/forums) directory.

After I added that statement, it all works fine.

BTW: Your DOCS Install.txt file is vague on this issue. It just says, "Add this statement to your phpinclude template"..... This, I think, is where people got a little lost. I know I did. I was looking for a file the whole time.

[m]

FWC 11-15-2001 10:59 PM

Quote:

Originally posted by Gholsie

I dug deep into the system and couldn't find a file named "phpinclude" at all.

phpinclude is not a file. It's a template. It also shows up at the top of Modify Styles as PHP parsed code:.

humble 11-15-2001 11:23 PM

Excellent hack!!! working great on both my old 2.0.3 and my new 2.2.0...

Much appreciated.

JTMON 11-16-2001 04:17 AM

ok I'm having a slight problem trying to add the relevant code to my forumhome template. I copy the appropriate code I want from the vbstats templates into the forumhome template where I want it. It displays correctly, links and all, but I get no totals for any fields except threads, members, and posts, the rest are empty. I have put the vbcounter... in the phpinclude template also and if I goto vbstats.php all the totals are there.

Bane 11-16-2001 04:22 AM

You need the corresponding code from the vbstats.php file added in as well if you wish to have that found

JTMON 11-16-2001 04:23 AM

So look at the variables in the source and put them in the template?

Bane 11-16-2001 04:47 AM

No, you would have to hack them into the index.php if you want it to show on forumhome.

What are you trying to include there?

JTMON 11-16-2001 04:50 AM

Member Stats, Forum Stats and Last 24 Hours. I have everything showing up except for the totals. All the text and tables are there. I just don't know what to grab from vbstats.php


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