vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Statistics In VB (https://vborg.vbsupport.ru/showthread.php?t=208649)

lostincable 03-17-2009 09:51 PM

Statistics In VB
 
Hi I setup a forum that is a link, obviously this means that the following items,

Last Post
Threads
Posts

Do not update to give any statistics as a link is not a really a forum its just a link.

Is there anyway to force statistics in here from another forum through sql or php?

Any help is appreciated.

Dismounted 03-18-2009 06:19 AM

What do you mean by "force statistics in here from another forum"?

Lynne 03-18-2009 02:21 PM

You would have to be able to query the database at that other forum to get those statistics/information.

lostincable 03-18-2009 08:05 PM

Thanks Lynee, its the same boards let me explain a bit better :)

I installed the Arcade plugin, to have the arcade system on my forums.

I have a category and forums as below

--Off Topic
---Arcade (link)
---Arcade Chit Chat (forum)
---Arcade Tournaments (forum)

Now, as Arcade is a link to the arcade system and is classed as a link there are no statistics to the right showing "Last Post" "Threads" "Posts".

I would like to put statistics into this section from the "Arcade Tournaments" forum so when people see the arcade link they can also see the latest "Last Post" "Threads" and "Posts" from the "Arcade Tournament" forum.

So I was wondering how I can get these statistics to the right of the link?

Lynne 03-18-2009 09:07 PM

You would have to write some code to grab the stats for the two sub-forums and add them together to be input into the Arcade section. We've had threads about that before - do a search on "$vbulletin->forumcache" and look for discussions involving $totalthreads and $totaltposts and see what you can find. Or, look at the bottom of the index.php page and see the code there.


All times are GMT. The time now is 02:44 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.01214 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete