Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-1294 now.

'View posts by this user' with users that have 0% of total posts (fix completed in vcs)

When viewing a profile of a user that has 0% of the total number of posts of a user the 'View all posts of this user' link is hidden:

memberlist_view.html:

<td><!-- IF POSTS_PCT neq 0 --><b class="gen">{POSTS}</b><br /><span class="genmed">[{POSTS_PCT} / {POSTS_DAY}]<br /><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></span><!-- ELSE --><b class="gen">{POSTS}</b><!-- ENDIF --></td>


Changing this from POSTS_PCT to POSTS (i.e. number of posts instead of percentage) is an improvement but infallible. This will still go wrong if the user only posted in forums where the post counter (user_posts) doesn't get increased. But that's a bit hard to solve, we could first retrieve the real number of posts but that's a bit too much for something trivial as this. Another option would be always showing the link (even with 0 posts).

Comments / History

Posted by naderman (Development Team Leader) on Jul 25th 2006, 15:10

We will just always show it.

Ticket details