<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: BP Profile Search</title>
	<atom:link href="http://www.blogsweek.com/bp-profile-search/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogsweek.com/bp-profile-search/</link>
	<description>WordPress, blog platforms, content management systems</description>
	<lastBuildDate>Wed, 28 Dec 2011 11:03:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: andrea</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2091</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Mon, 19 Dec 2011 16:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2091</guid>
		<description>Hi Ross,

Thank you for your feedback, I didn&#039;t realize that BP 1.5 changed the required field behaviour.

I&#039;ll look into this over the coming holidays. Should you solve this issue before I do, I&#039;ll happily accept a patch!</description>
		<content:encoded><![CDATA[<p>Hi Ross,</p>
<p>Thank you for your feedback, I didn&#8217;t realize that BP 1.5 changed the required field behaviour.</p>
<p>I&#8217;ll look into this over the coming holidays. Should you solve this issue before I do, I&#8217;ll happily accept a patch!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2089</link>
		<dc:creator>Ross</dc:creator>
		<pubDate>Sun, 18 Dec 2011 13:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2089</guid>
		<description>Hi guys,

Having a big issue with this plugin now that required field behaviour in BP has changed.

No idea why BP changed this behaviour but when you set a field to required that offers a drop down to select from, the first option in the dropdown is selected as default.

The fields no longer has a --------- option at the top, which would ommit it from a search, it MAKES YOU select an answer from the dropdown.

This means that the first option is ALWAYS selected on the search form, which means if you have multiple required fields, a search is impossible as the first option in ALL fields is selected by default.

This way you can&#039;t search by just one field, as all have to be selected.

I know this sounds confusing, but if you set up some profile field dropdowns and make them required you&#039;ll see instantly what I mean.

Such a shame, as BP&#039;s behaviour makes this plugin unusable when you have required fields.

Anything that could be done?

Thanks so much for your time!</description>
		<content:encoded><![CDATA[<p>Hi guys,</p>
<p>Having a big issue with this plugin now that required field behaviour in BP has changed.</p>
<p>No idea why BP changed this behaviour but when you set a field to required that offers a drop down to select from, the first option in the dropdown is selected as default.</p>
<p>The fields no longer has a &#8212;&#8212;&#8212; option at the top, which would ommit it from a search, it MAKES YOU select an answer from the dropdown.</p>
<p>This means that the first option is ALWAYS selected on the search form, which means if you have multiple required fields, a search is impossible as the first option in ALL fields is selected by default.</p>
<p>This way you can&#8217;t search by just one field, as all have to be selected.</p>
<p>I know this sounds confusing, but if you set up some profile field dropdowns and make them required you&#8217;ll see instantly what I mean.</p>
<p>Such a shame, as BP&#8217;s behaviour makes this plugin unusable when you have required fields.</p>
<p>Anything that could be done?</p>
<p>Thanks so much for your time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2062</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sun, 04 Dec 2011 15:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2062</guid>
		<description>&lt;a href=&quot;#comment-2059&quot; rel=&quot;nofollow&quot;&gt;@andrea &lt;/a&gt; 

Thanks. Managed to change all the &#039; &quot; and - 
It works now!</description>
		<content:encoded><![CDATA[<p><a href="#comment-2059" rel="nofollow">@andrea </a> </p>
<p>Thanks. Managed to change all the &#8216; &#8221; and &#8211;<br />
It works now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrea</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2059</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Sun, 04 Dec 2011 00:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2059</guid>
		<description>Hi Joe,

Please make sure you don&#039;t copy and paste the code, you&#039;ll need to retype it, or at least retype the quote characters (both single and double quotes).</description>
		<content:encoded><![CDATA[<p>Hi Joe,</p>
<p>Please make sure you don&#8217;t copy and paste the code, you&#8217;ll need to retype it, or at least retype the quote characters (both single and double quotes).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2057</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 03 Dec 2011 13:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2057</guid>
		<description>&lt;a href=&quot;#comment-2037&quot; rel=&quot;nofollow&quot;&gt;@Julien &lt;/a&gt; 
I tried to implement your changes and got: 

Parse error: syntax error, unexpected T_STRING in /wp-content/plugins/bp-profile-search/bps-functions.php on line 139

The Line 139 it is complaining about is &quot;$from1 = $year – $value;&quot;</description>
		<content:encoded><![CDATA[<p><a href="#comment-2037" rel="nofollow">@Julien </a><br />
I tried to implement your changes and got: </p>
<p>Parse error: syntax error, unexpected T_STRING in /wp-content/plugins/bp-profile-search/bps-functions.php on line 139</p>
<p>The Line 139 it is complaining about is &#8220;$from1 = $year – $value;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrea</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2040</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Sat, 26 Nov 2011 00:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2040</guid>
		<description>Hi Julien,

That&#039;s great! Thank you very much for this patch, I&#039;ll add it to the plugin as soon as possible.</description>
		<content:encoded><![CDATA[<p>Hi Julien,</p>
<p>That&#8217;s great! Thank you very much for this patch, I&#8217;ll add it to the plugin as soon as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2037</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Fri, 25 Nov 2011 16:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2037</guid>
		<description>Hello,

First off all, thank you for this plugin. I found exactly what I want to do with it.

I found an issue with wordpress 3.2.1 and buddypress 1.5.1.

By default in buddypress, the age extented profile field is a datebox which  store a date in mysql date format (YYYY-MM-DD HH-MM-SS) in mysql database. 

The problem is that the search by range date given by BP profile search do a querie with timestamp... 

I have made some change wich can be include in the next release if someone else have the same issue :

case &#039;datebox&#039;:
                                        if ($id != $bps_options[&#039;agerange&#039;])  continue;

                                        $time = time ();
                                        $day = date (&quot;j&quot;, $time);
                                        $month = date (&quot;n&quot;, $time);
                                        $year = date (&quot;Y&quot;, $time);
                                        $from1 = $year - $value;
                                        $to1 = $year - $to -1;
                                        $min = &quot;$to1-$month-$day&quot;;
                                        $max = &quot;$from1-$month-$day&quot;;

                                        $sql = &quot;SELECT user_id from {$bp-&gt;profile-&gt;table_name_data}&quot;;
                                        $sql .= &quot; WHERE field_id = $id AND value &gt;= &#039;$min&#039; AND value &lt;= &#039;$max&#039;&quot;;
                                        break;
                                }

Thanks</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>First off all, thank you for this plugin. I found exactly what I want to do with it.</p>
<p>I found an issue with wordpress 3.2.1 and buddypress 1.5.1.</p>
<p>By default in buddypress, the age extented profile field is a datebox which  store a date in mysql date format (YYYY-MM-DD HH-MM-SS) in mysql database. </p>
<p>The problem is that the search by range date given by BP profile search do a querie with timestamp&#8230; </p>
<p>I have made some change wich can be include in the next release if someone else have the same issue :</p>
<p>case &#8216;datebox&#8217;:<br />
                                        if ($id != $bps_options['agerange'])  continue;</p>
<p>                                        $time = time ();<br />
                                        $day = date (&#8220;j&#8221;, $time);<br />
                                        $month = date (&#8220;n&#8221;, $time);<br />
                                        $year = date (&#8220;Y&#8221;, $time);<br />
                                        $from1 = $year &#8211; $value;<br />
                                        $to1 = $year &#8211; $to -1;<br />
                                        $min = &#8220;$to1-$month-$day&#8221;;<br />
                                        $max = &#8220;$from1-$month-$day&#8221;;</p>
<p>                                        $sql = &#8220;SELECT user_id from {$bp-&gt;profile-&gt;table_name_data}&#8221;;<br />
                                        $sql .= &#8221; WHERE field_id = $id AND value &gt;= &#8216;$min&#8217; AND value &lt;= &#039;$max&#039;&quot;;<br />
                                        break;<br />
                                }</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2039</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Fri, 25 Nov 2011 16:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2039</guid>
		<description>&lt;a href=&quot;#comment-1963&quot; rel=&quot;nofollow&quot;&gt;@Jason &lt;/a&gt; 

Hello Jason,

I am looking to do the exact same thing here, did you figure out how to do this? If so, what changes were made?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1963" rel="nofollow">@Jason </a> </p>
<p>Hello Jason,</p>
<p>I am looking to do the exact same thing here, did you figure out how to do this? If so, what changes were made?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evielutions</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2008</link>
		<dc:creator>Evielutions</dc:creator>
		<pubDate>Fri, 04 Nov 2011 18:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2008</guid>
		<description>&lt;a href=&quot;#comment-2005&quot; rel=&quot;nofollow&quot;&gt;@andrea &lt;/a&gt; Hi Andrea, I have made all of the necessary changes to the settings, selected the search fields but it still doesn&#039;t appear.

Here is my index.php in the directory listed in the instructions.






	

	
		

		

		

			

			

			

				

			&lt;!-- #members-dir-search --&gt;
            
            

			
				
					&lt;a href=&quot;&quot;&gt;&lt;?php printf( __( &#039;All Members %s&#039;, &#039;buddypress&#039; ), bp_get_total_member_count() ); ?&gt;&lt;/a&gt;

					

						&lt;a href=&quot;&quot;&gt;&lt;?php printf( __( &#039;My Friends %s&#039;, &#039;buddypress&#039; ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?&gt;&lt;/a&gt;

					

					

				
			&lt;!-- .item-list-tabs --&gt;

			
				

					

					

						
						
							
							

							

								

							

							

						
					
				
			

			

				

			&lt;!-- #members-dir-list --&gt;

			

			

			

		&lt;!-- #members-directory-form --&gt;

		

		&lt;!-- .padder --&gt;
	&lt;!-- #content --&gt;

	


</description>
		<content:encoded><![CDATA[<p><a href="#comment-2005" rel="nofollow">@andrea </a> Hi Andrea, I have made all of the necessary changes to the settings, selected the search fields but it still doesn&#8217;t appear.</p>
<p>Here is my index.php in the directory listed in the instructions.</p>
<p>			<!-- #members-dir-search --></p>
<p>					&lt;a href=&quot;&#8221;&gt;&lt;?php printf( __( &#039;All Members %s&#8217;, &#8216;buddypress&#8217; ), bp_get_total_member_count() ); ?&gt;</p>
<p>						&lt;a href=&quot;&#8221;&gt;&lt;?php printf( __( &#039;My Friends %s&#8217;, &#8216;buddypress&#8217; ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?&gt;</p>
<p>			<!-- .item-list-tabs --></p>
<p>			<!-- #members-dir-list --></p>
<p>		<!-- #members-directory-form --></p>
<p>		<!-- .padder --><br />
	<!-- #content --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrea</title>
		<link>http://www.blogsweek.com/bp-profile-search/comment-page-3/#comment-2005</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Thu, 03 Nov 2011 12:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogsweek.com/?p=664#comment-2005</guid>
		<description>Probably you need to configure the plugin and enable the fields for the search form. They start off as disabled, I think I&#039;ll change that in a future release.</description>
		<content:encoded><![CDATA[<p>Probably you need to configure the plugin and enable the fields for the search form. They start off as disabled, I think I&#8217;ll change that in a future release.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

