Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Would it be possible...

edited July 2006 in Vanilla 1.0 Help
To have Vanilla display total posts instead of 'discussions started' and 'comments added', or maybe alongside them? I hate math. =o)

Comments

  • Options
    If you download the statistics Add-On you can see how it handles those two operations, and then you can use some copy and paste magic and get it to where you want it.

    Obviously not the easiest solution, but a fairly immediate one.
  • Options
    ...Alright, I'll give that a shot, thanks.
  • Options
    Were you talking about on a per user basis there phaded? Asin you just want a bit on the profile which adds the two numbers together?
  • Options
    edited July 2006
    I was thinking of doing that, but there's one thing I'm not sure of: does starting a discussion also count as adding a comment? i.e. If I start a discussion does that add 1 to both counts, or just to the discussion count?

    If it's the latter, then this code might do the trick:

    <li> <h3>'.$this->Context->GetDefinition('CommentsAdded').'</h3> <p>'.intval($this->User->CountDiscussions + $this->User->CountDiscussions).'</p> </li>

    Also, it might be better to replace 'CommentsAdded' with a new 'TotalPosts' definition.
  • Options
    That'd do the job.
  • Options
    Were you talking about on a per user basis there phaded? Asin you just want a bit on the profile which adds the two numbers together?

    Yep, that's exactly what I'm looking for!
This discussion has been closed.