thread count in certain forums?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phill2003
    Senior Member
    • Apr 2003
    • 881

    thread count in certain forums?

    Can i find out how many threads (not reply posts) a user has made in certain forums at all?


    thanks...
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74132

    #2
    There is no direct way to do this. You would have to run queries on the database to get the information.

    SELECT count(*) FROM prefix_thread WHERE forumid=XX AND postuserid = YY

    Replace prefix_ with the table prefix defined in your config.php. Replace XX with the forum's id and YY with the user's id. You would have to rerun the query for each forum and user that you want the information for.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • phill2003
      Senior Member
      • Apr 2003
      • 881

      #3
      Thanks for that that will do the trick ....

      Comment

      • VAYC
        Member
        • Jan 2004
        • 54
        • 3.0.0 Release Candidate 4

        #4
        what if we want more than one forum id? please help

        Comment

        • Jose Amaral Rego
          Senior Member
          • Feb 2005
          • 11058
          • 1.1.x

          #5
          # replace what is needed and X,Y,Z with forom identification number.
          SELECT count(*) FROM prefix_thread WHERE forumid IN (X,Y,Z) AND postuserid = YY

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...