vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Threads and posts (https://vborg.vbsupport.ru/showthread.php?t=49894)

filburt1 03-10-2003 12:44 PM

Threads and posts
 
How can I find out the number of posts a user has made, but exclude posts that are the first post in a thread?

amykhar 03-10-2003 01:01 PM

I would find the number of posts, then the number of threads but subtract the number of threads from the number of posts. That would exclude all first posts.

Amy

filburt1 03-10-2003 02:01 PM

Possibly but would that be two queries?

amykhar 03-10-2003 03:07 PM

Yep. Because I don't believe posts are normally marked as being the start of a thread unless you have installed certain hacks.

Amy

filburt1 03-10-2003 04:27 PM

Nuts. Any other ideas?

Xenon 03-10-2003 04:29 PM

maybe it's possible with one query, but it would mean you look at the thread and the post table within the same query, which would take time...

this is a thing where two queries are better than one

filburt1 03-10-2003 04:30 PM

K, and I actually know how to code that. Thankies :)

Dean C 03-11-2003 03:15 PM

I'd do it the same as amy :)

- miSt


All times are GMT. The time now is 10:00 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.01090 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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