anchor.diff:      </tr>
       <tr>
         <td><strong>Posts</strong></td>
  -      <td><%= link_to Post.count(:all, :conditions => "user_id = #{@user.id}"), :controller => "post", :action => "index", :tags => "user:#{@user.name}" %></td>
  +      <td><%= link_to Post.count(:all, :conditions => { :user_id => @user.id.to_i }), :controller => "post", :action => "index", :tags => "user:#{@user.name}" %></td>
       </tr>
       <tr>
         <td><strong>Deleted Posts</strong></td>
  -      <td><%= link_to Post.count(:all, :conditions => "status = 'deleted' and user_id = #{@user.id}"), :controller => "post", :action => "deleted_index", :user_id => @user.id %></td>
  +      <td><%= link_to Post.count(:all, :conditions => { :status => 'deleted', :user_id => @user.id.to_i }), :controller => "post", :action => "deleted_index", :user_id => @user.id %></td>
       </tr>
       <tr>
         <th>Votes</th>
  
positive.code:         <span class="stars">
            <% (1..3).each do |i| %>
              <a class="star star-<%= i %>" href="<%= url_for :controller => "post", :action => "index", :tags => "vote:>=#{i}:#{@user.name} order:vote" %>">
                <%= PostVotes.count(:all, :conditions => "user_id = #{@user.id} AND score = #{i}") %>
                <span class="score-on score-voted score-visible">★</span>
              </a>
            <% end %>
  
negative.code:     </tr>
      <tr>
        <td><strong>Comments</strong></td>
        <td><%= link_to Comment.count(:all, :conditions => { :user_id => @user.id.to_i }), :controller => "comment", :action => "search", :query => "user:#{@user.name}" %></td>
      </tr>
      <tr>
        <td><strong>Edits</strong></td>
        <td><%= link_to History.count(:all, :conditions => { :user_id => @user.id.to_i }), :controller => "history", :action => "index", :search => "user:#{@user.name}" %></td>
      </tr>
      <tr>
        <td><strong>Tag Edits</strong></td>
        <td><%= link_to History.count(:all, :conditions => { :user_id => @user.id.to_i, :group_by_table => 'posts' }), :controller => "history", :action => "index", :search => "type:post user:#{@user.name}" %></td>
      </tr>
      <tr>
        <td><strong>Note Edits</strong></td>
        <td><%= link_to NoteVersion.count(:all, :conditions => { :user_id => @user.id.to_i }), :controller => "note", :action => "history", :user_id => @user.id %></td>
      </tr>
      <tr>
        <td><strong>Wiki Edits</strong></td>
        <td><%= link_to WikiPageVersion.count(:all, :conditions => { :user_id => @user.id.to_i }), :controller => "wiki", :action => "recent_changes", :user_id => @user.id %></td>
      </tr>
      <tr>
        <td><strong>Forum Posts</strong></td>
        <td><%= ForumPost.count(:all, :conditions => { :creator_id => @user.id.to_i }) %></td>
      </tr>
      <% if @user.invited_by %>
        <tr>
  