vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Turning Forum Statistics into a Block (https://vborg.vbsupport.ru/showthread.php?t=300365)

Amaury 07-23-2013 12:49 AM

Turning Forum Statistics into a Block
 
How can I make the forum statistics into a block like on XenForo?

https://vborg.vbsupport.ru/external/2013/07/2.png?1

kh99 07-23-2013 11:59 AM

This is a short answer that might not be much help, but: you need to find the code that creates the forum statistics (which I believe is in forum.php), and copy it to use in a php type forum block. Well, ok, it's probably more than just copying, but finding the existing code would be a good place to start.

ETA: Of course it's possible there's a mod for this already, maybe someone else will know.

mokujin 07-23-2013 12:54 PM

People are copying ideas from Xenforo to VBB, and Xenforo copied from VBB :D

Amaury 07-23-2013 03:06 PM

Quote:

Originally Posted by kh99 (Post 2434936)
This is a short answer that might not be much help, but: you need to find the code that creates the forum statistics (which I believe is in forum.php), and copy it to use in a php type forum block. Well, ok, it's probably more than just copying, but finding the existing code would be a good place to start.

ETA: Of course it's possible there's a mod for this already, maybe someone else will know.

Searched Forum Statistics
  • 4.x Mods
  • Titles Only
Found nothing.

Unfortunately, I have no idea how to do server work besides taking a backup. Only our owner and another administrator are experts in that area, so I'll have to wait for the other administrator to get online so he can check forum.php.

Lynne 07-23-2013 04:19 PM

I wrote some widget code which shows them (although not in the same format). You'd have to convert it to forum block code though. And, if I recall, sometimes weird things will happen to the max users if it's done incorrectly, so that is something you would need to be aware of and probably want to make sure you test real well on a test site.

Amaury 07-23-2013 04:35 PM

Quote:

Originally Posted by Lynne (Post 2434961)
I wrote some widget code which shows them (although not in the same format). You'd have to convert it to forum block code though. And, if I recall, sometimes weird things will happen to the max users if it's done incorrectly, so that is something you would need to be aware of and probably want to make sure you test real well on a test site.

Do you use some sort of converter tool to convert it?

Lynne 07-23-2013 07:48 PM

No, you need to do it yourself as there is no converter tool

Amaury 07-23-2013 08:29 PM

Quote:

Originally Posted by Lynne (Post 2435002)
No, you need to do it yourself as there is no converter tool

Which I have absolutely no idea how to do. :(

I wish I knew more coding skills.


All times are GMT. The time now is 06:30 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.01413 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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