phpBB3

Searching own posts from UCP fails

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Resolution: Fixed
  • Affects Version/s: 3.0.x
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    PHP Environment:
    Database:

Description

Make sure you have atleast one post. Go to the UCP main page, Under the section "your activity" choose "search users posts", instead of getting a list of users posts you infact get the ordinary search form.

Cause:
The URL used in the UCPs search is:

http&#58//phpbb.test/search.php?search_author=andy&show_results=posts

Judging by how the link on members list works I think this should be:

http&#58//phpbb.test/search.php?author=andy&sr=posts

In file:./includes/ucp/ucp_main.php line 172:
Contains:

'U_SEARCH_USER'		=> ($auth->acl_get('u_search')) ? "{$phpbb_root_path}search.$phpEx$SID&search_author=" . urlencode($user->data['username']) . "&show_results=posts" &#58 '',

Should be:

'U_SEARCH_USER'		=> ($auth->acl_get('u_search')) ? "{$phpbb_root_path}search.$phpEx$SID&author=" . urlencode($user->data['username']) . "&sr=posts" &#58 '',

I have tested this change and it seems to work ok.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: