Currently the users post count will display with no link being presented to view that users posts (eg, see pic).
So let's make it a link
OPEN
includes/mcp/mcp_notes.php
FIND
Code: Select all
'POSTS' => ($userrow['user_posts']) ? $userrow['user_posts'] : 0,
BEFORE, ADD
Code: Select all
'U_SEARCH_POSTS' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$user_id&sr=posts") : '',
OPEN
styles/xxx/template/mcp_notes_user.html
FIND
Code: Select all
{POSTS}
REPLACE WITH
Code: Select all
<!-- IF POSTS and U_SEARCH_POSTS --><a href="{U_SEARCH_POSTS}">{POSTS}</a><!-- ELSE -->{POSTS}<!-- ENDIF -->
and that's it. The post count will now be a link to the users posts displayed via search within the MCP of that user.
If you want it to open in a new window (instead of right clicking)
Code: Select all
<!-- IF POSTS and U_SEARCH_POSTS --><a href="{U_SEARCH_POSTS}" onclick="window.open(this.href);return false;">{POSTS}</a><!-- ELSE -->{POSTS}<!-- ENDIF -->