Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2005, 05:16 AM
fasteddie fasteddie is offline
 
Join Date: Jan 2004
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Total Thread Views?

I've been searching for total thread views for a forum hack, but I can't find it anywhere.

I want what BoxerWorld (www.boxerworld.com/forums) has:

Boxer Board Statistics

Threads: 70,542, Posts: 616,988, Members: 33,720, Thread Views: 17,293,396

I can't find the hack. Help please! THANKS!

Quote:
Originally Posted by fasteddie
I've been searching for total thread views for a forum hack, but I can't find it anywhere.

I want what BoxerWorld (www.boxerworld.com/forums) has:

Boxer Board Statistics

Threads: 70,542, Posts: 616,988, Members: 33,720, Thread Views: 17,293,396

I can't find the hack. Help please! THANKS!
Anyone got any ideas at all? Please? Pretty please?

Quote:
Originally Posted by fasteddie
I've been searching for total thread views for a forum hack, but I can't find it anywhere.

I want what BoxerWorld (www.boxerworld.com/forums) has:

Boxer Board Statistics

Threads: 70,542, Posts: 616,988, Members: 33,720, Thread Views: 17,293,396

I can't find the hack. Help please! THANKS!



Anyone got any ideas at all? Please? Pretty please?
Anyone got any ideas at all? Please? Pretty please?
Reply With Quote
  #2  
Old 09-02-2005, 06:35 AM
fasteddie fasteddie is offline
 
Join Date: Jan 2004
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fasteddie
I've been searching for total thread views for a forum hack, but I can't find it anywhere.

I want what BoxerWorld (www.boxerworld.com/forums) has:

Boxer Board Statistics

Threads: 70,542, Posts: 616,988, Members: 33,720, Thread Views: 17,293,396

I can't find the hack. Help please! THANKS!



Anyone got any ideas at all? Please? Pretty please?



Anyone got any ideas at all? Please? Pretty please?
Does anybody know? TIA!
Reply With Quote
  #3  
Old 09-02-2005, 09:28 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like a hack request so IMO the forum is wrong but nevermind..

(Assuming you use vb 3.0.x)
Edit index.php, find:

PHP Code:
// ### LOGGED IN USERS ################################################# 
before that add:
PHP Code:
// Logician Hack: Calculate Board View Count
$boardviews $DB_site->query_first("SELECT SUM(views) AS threadviews FROM " TABLE_PREFIX "thread");
$totalviews number_format($boardviews[threadviews]);
// Logician Hack: Calculate Board View Count 
Then add $totalviews to somewhere in your forumhome template.

IMPORTANT WARNING: If you have too many threads or too many visitors, this is NOT a performance friendly hack. It puts a burden on your forum home page as it is a pain for MYSQL to compile this stats everytime forum home page is loaded. If you have a small and low traffic forum, you can use it but I dont suggest it installed in a large or high traffic forum.
[/End of Warning]

The performance friendly way of doing it is to index threadviews column in thread table AND tie this code to a vb cron and make it post to the datastore, then read the stats from there but well it requires some work so this is all I can offer. If you want a better version, I'd suggest your request to post it to Hack requests forum.
Reply With Quote
  #4  
Old 09-03-2005, 01:31 AM
fasteddie fasteddie is offline
 
Join Date: Jan 2004
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME. THANK YOU so much. Can I use this in conjunction with the cached stats hack?
Reply With Quote
  #5  
Old 01-26-2007, 12:24 AM
arena's Avatar
arena arena is offline
 
Join Date: Oct 2006
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For 3.6.4 work?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04253 seconds
  • Memory Usage 2,208KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete