The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Total Views, replies and threads in forumdisplay_threadlist
Would it be possible to show Total Views, replies and threads in forumdisplay_threadlist? Since there is a totalviews template hack and a simalar hack for showthread.
If its not possible I will try at vbulletin.org when they are done with servermove. |
#2
|
|||
|
|||
i think this will require hacking...butim not sure
|
#3
|
|||
|
|||
I was thinking it might be possible to do it through the phpinclude template.
|
#4
|
|||
|
|||
It can be done by phpinclude. Here's a query that should do it:
Code:
mysql> select f.threadcount,f.replycount,sum(t.views) from forum f, thread t where t.forumid = 16 and f.forumid=16 group by t.forumid; +-------------+------------+--------------+ | threadcount | replycount | sum(t.views) | +-------------+------------+--------------+ | 36 | 278 | 2405 | +-------------+------------+--------------+ 1 row in set (0.04 sec) |
#5
|
|||
|
|||
DO I need to run that query for every forum? and how would I apply it in my template?
|
#6
|
|||
|
|||
I'm a bit too busy to release a mod but if somebody else wants to (using PAPI naturally ) that query seems to work nicely. Just remember to add AS clauses everywhere.
|
#7
|
|||
|
|||
Uhm I am afraid I dont understand. [blush]
I would really really apreciate it if someone would release this as a mod. |
#8
|
|||
|
|||
Is there not something like this already released?
|
#9
|
|||
|
|||
no, or I wouldnt have posted this...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|