Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: PopsicleStickChick on September 22, 2006, 11:07:12 AM

Title: Searching for Buddies
Post by: PopsicleStickChick on September 22, 2006, 11:07:12 AM
In composing a new PM, I use the Find Members option.  I put in the * wildcard and check the box to only search for buddies.  I get results showing two pages.  When I try to go to the second page of results, it changes and shows me all members due to the * wildcard.  Any ideas?
Title: Re: Searching for Buddies
Post by: jerm on September 22, 2006, 03:08:01 PM
What smf version you got?
Title: Re: Searching for Buddies
Post by: PopsicleStickChick on September 22, 2006, 03:40:22 PM
Sorry, 1.1 RC3.
Title: Re: Searching for Buddies
Post by: PopsicleStickChick on October 03, 2006, 02:49:38 PM
Another bump.  Is this just release candidate stuff and the final version won't have this bug?
Title: Re: Searching for Buddies
Post by: Oldiesmann on October 03, 2006, 03:40:26 PM
Looks like it's due to a minor typo. I'll report it as a bug, but here's how you can fix it in the meantime...

Sources/Subs-Auth.php

Find
Code (Line 485) Select
$context['page_index'] = constructPageIndex($scripturl . '?action=findmember;search=' . $context['last_search'] . ';sesc=' . $context['session_id'] . ';input=' . $context['input_box_name'] . ($context['quote_results'] ? ';quote=1' : '') . ($context['buddy_search'] ? ';buddy' : ''), $_REQUEST['start'], $total_results, 7);

Replace
$context['page_index'] = constructPageIndex($scripturl . '?action=findmember;search=' . $context['last_search'] . ';sesc=' . $context['session_id'] . ';input=' . $context['input_box_name'] . ($context['quote_results'] ? ';quote=1' : '') . ($context['buddy_search'] ? ';buddies' : ''), $_REQUEST['start'], $total_results, 7);
Title: Re: Searching for Buddies
Post by: PopsicleStickChick on October 05, 2006, 12:18:15 PM
Thanks!
Title: Re: Searching for Buddies
Post by: codenaught on October 07, 2006, 11:42:37 AM
This issue has been fixed for 1.1 final. In the mean time, everyone is welcome to use the fix Oldiesmann posted.

! The "Find Members" box loses track of whether it's buddies only on pagination. (Subs-Auth.php)