Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorphaded
    • CommentTimeJul 14th 2006
     # 1
    To have Vanilla display total posts instead of 'discussions started' and 'comments added', or maybe alongside them? I hate math. =o)
  1.  # 2
    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.
    •  
      CommentAuthorphaded
    • CommentTimeJul 14th 2006
     # 3
    ...Alright, I'll give that a shot, thanks.
  2.  # 4
    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?
    •  
      CommentAuthorInky
    • CommentTimeJul 15th 2006 edited
     # 5
    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.
  3.  # 6
    That'd do the job.
    •  
      CommentAuthorphaded
    • CommentTimeJul 15th 2006
     # 7
    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!
Add your comments
    Username Password
  • Format comments as