vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   displaying TOTAL thread views vB3.8? (https://vborg.vbsupport.ru/showthread.php?t=291662)

RyanFabbro 11-25-2012 04:21 AM

displaying TOTAL thread views vB3.8?
 
ok so a ran in to this old modification https://www.vbulletin.com/forum/show...hread-Views?s=

which allows you to do total views on every thread together, but this method no longer works for the latest version of vB3

so is there anyway to get somthing like this working

an example would be

Stats:
Threads: 12,354, Posts: 34,125, Members: 1284, Active Members: 734, Total Thread Views: 1,000,000

i would appreciate anything that gave me a result like this in vb3 thanks

i have attempted this myself with BooFoo' (rip) method for vb4

i creatd a plugin on forumhome_complete

Code:

$threadviews = $vbulletin->db->query_first("
    SELECT SUM(views) AS tviews
    FROM " . TABLE_PREFIX . "thread
");

and he says to add
Code:

{vb:raw threadviews.tviews}
so using vb3 i added
Code:

$threadviews.tviews
to forumhome after
Code:

$vbphrase[members]: $numbermembers
but this only resulted with
Total Thread Views: Array.tviews

i will play with this untill i get a reply, but it should be similar because the tables are the same

kh99 11-25-2012 09:43 AM

Try adding this inthe template:

Code:

$threadviews[tviews]

RyanFabbro 11-25-2012 03:40 PM

oh wow really lol, i cant believe it. i spent atleast a good hour on this and thats about the only way i didnt think to put it lol.

mind if i release this?

and yes credit were go were its do =)

kh99 11-25-2012 04:26 PM

I don't need credit for answering questions like that. As for releasing it, I'd say it has more to do with whoever posted the original (I can't give you permission to use that, of course).

RyanFabbro 11-25-2012 11:10 PM

well i got that from BooFoo and it wasnt ever a release it was just in a post like this helping someone i will make this in product form though and release it

kh99 11-25-2012 11:38 PM

I think that will most likely be OK.


All times are GMT. The time now is 09:53 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.00968 seconds
  • Memory Usage 1,718KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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