vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Total Views, replies and threads in forumdisplay_threadlist (https://vborg.vbsupport.ru/showthread.php?t=86340)

Owen 02-20-2003 06:26 PM

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.

manex 02-20-2003 06:57 PM

i think this will require hacking...butim not sure

Owen 02-20-2003 07:01 PM

I was thinking it might be possible to do it through the phpinclude template.

filburt1 02-20-2003 07:14 PM

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)


Owen 02-20-2003 07:26 PM

DO I need to run that query for every forum? and how would I apply it in my template?

filburt1 02-20-2003 07:52 PM

I'm a bit too busy to release a mod but if somebody else wants to (using PAPI naturally :p) that query seems to work nicely. Just remember to add AS clauses everywhere.

Owen 02-20-2003 08:18 PM

Uhm I am afraid I dont understand. [blush]

I would really really apreciate it if someone would release this as a mod.

imported_Jamie 02-20-2003 08:21 PM

Is there not something like this already released?

Owen 02-20-2003 08:23 PM

no, or I wouldnt have posted this...


All times are GMT. The time now is 11:16 AM.

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.01041 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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