Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-94

Searching own posts from UCP fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • 3.0.x
    • None
    • PHP Environment:
      Database:

      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.

            naderman Nils Adermann
            yoda_irc yoda_irc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: