Log in

View Full Version : displaying TOTAL thread views vB3.8?


RyanFabbro
11-25-2012, 04:21 AM
ok so a ran in to this old modification https://www.vbulletin.com/forum/showthread.php/14739-Release-VB2-Total-Thread-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

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

and he says to add
{vb:raw threadviews.tviews}

so using vb3 i added
$threadviews.tviews

to forumhome after
$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:

$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.