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)
-   -   Top Statistics - Multiple Types (https://vborg.vbsupport.ru/showthread.php?t=59630)

Chroder 01-03-2004 10:00 PM

Top Statistics - Multiple Types
 
This hack is basically 5 hacks in one: Top Posters, Newest Members, Latest Threads, Latest Posts and Online Today. I've tried to make each as featureful as the singular hacks, though I'm open to suggestions. Each stat type can be turned on and off, and everything save Online Today has a limit variable where you can limit the amount of records to retrieve from the database. A "feature" overview:

  • [Enable/Disable] Top Posters
  • [Enable/Disable] Latest Threads
  • [Enable/Disable] Latest Posts
  • [Enable/Disable] Online Today
  • [Enable/Disable] Newest Members
  • [Limit] Number of Top Posters to display
  • [Limit] Number of Latest Threads to display
  • [Limit] Number of Latest Posts to display
  • [Limit] Number of Newest Members to display
  • Use user permissions when gathering Latest Threads and Latest Posts
  • Specify forums to skip when gathering Latest Threads and Latest Posts (overrides the user permission setting)
  • Specify the specific forums that Latest Threads and Latest Posts should come from (overrides both the above setting, and user permission setting)
  • Online Today also retrieves "openhtml" and "closehtml" (ie. admins are bold and italic)
  • Online Today includes buddy/invisible marks (Buddy: + and Invisible: *)
  • Invisible users remain hidden except to those who can see them
Screen Shot Here
Live Demo
Download Here

Mijae 01-04-2004 05:05 AM

Excellent hack. One question tho, do I just type False instead of true if I want to disable something? The only queries I want my forumhome to run with this hack is the for last threads/posts/top posters.

Link14716 01-04-2004 05:31 AM

I installed this when you posted it at vB.nl, so...

*licks install*

Chroder 01-04-2004 05:45 AM

Quote:

Originally Posted by v0id
Excellent hack. One question tho, do I just type False instead of true if I want to disable something? The only queries I want my forumhome to run with this hack is the for last threads/posts/top posters.

Yep :) false or 0. Here's what yours would look like:

PHP Code:

$suoptions['top_posters']    = true;  // Turn on top posters?
  
$suoptions['latest_threads'] = true;  // Turn on latest threads?
  
$suoptions['latest_posts']   = true;  // Turn on latest posts?
  
$suoptions['newest_members'] = false;  // Turn on newest members?
  
$suoptions['online_today']   = false;  // Turn on online today? 


Chroder 01-04-2004 05:50 AM

Quote:

Originally Posted by Link14716
I installed this when you posted it at vB.nl, so...

*licks install*

I updated it on the 2nd. Minor tweaks to the code and templates -- if you havent already, you may want to look over it again. My post at vb.nl has the HTML file with "updated" titles throughout what was updated.

Boofo 01-04-2004 07:21 AM

Any way to make this a separate stats page? ;)

MindTrix 01-04-2004 11:36 AM

Just installed and works like a Dream, thank god for vB3's collapsing though otherwise it would take up soo much space, i agree with Boofo, a seperate page would be nice :) Or a pop up maybe for each part?

TheAnt 01-04-2004 03:12 PM

Wow, this'll work like a charm with my sidebar mod.

*install

Itworx4me 01-04-2004 03:44 PM

I like your hack except for somethings. It doesn't use the vbphrase system and there are no conditional in your code. Plus you are using standard html and not xml for your templates. Fix your hack and I will think about using it. Good job on the hack though.

TouchingVirus 01-04-2004 04:30 PM

Quote:

Originally Posted by Itworx4me
...Fix your hack and I will think about using it. ....


Fix the hack, there is nothing wrong with it! Just it doesnt have what you want :)

Thanks for the hack Chroder :)


All times are GMT. The time now is 01:46 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.01105 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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