Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

  • camo October 2011
  • x00 October 2011

Displaying Total number of views and Discussions

In my vanilla forum installation, I would like to show the grand total of all the discussions and views. How can I do that?

Best Answer

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP
    Answer ✓
    Probably something like

    $TotalCount = Gdn::SQL()->Select('SUM(CountViews) As Total')->From('Discussion')->Value('Total');

    Then you have to decide where you are going to want to put it.

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

    Sampath_Amitash

Answers

Sign In or Register to comment.