<?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"
	>
<channel>
	<title>Comments on: Community Builder Advanced Search: Search By Age Interval and Avatar Only Unofficial Hack</title>
	<atom:link href="http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/</link>
	<description>Read . Enjoy . Share</description>
	<pubDate>Thu, 11 Mar 2010 09:59:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Tim Black</title>
		<link>http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-15295</link>
		<dc:creator>Tim Black</dc:creator>
		<pubDate>Tue, 29 Dec 2009 05:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-15295</guid>
		<description>It seems the first patch may not have come through as a comment since it's so big, so here it is: http://pastebin.com/f3bbf3a51.  I had to divide my changes into two patches because I changed file permissions in between, and I think that would have made the diff program display every line of every file as having changed.  So together these two patches are my changes that have fixed some problems in the code.</description>
		<content:encoded><![CDATA[<p>It seems the first patch may not have come through as a comment since it&#8217;s so big, so here it is: <a href="http://pastebin.com/f3bbf3a51" rel="nofollow">http://pastebin.com/f3bbf3a51</a>.  I had to divide my changes into two patches because I changed file permissions in between, and I think that would have made the diff program display every line of every file as having changed.  So together these two patches are my changes that have fixed some problems in the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Black</title>
		<link>http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-15291</link>
		<dc:creator>Tim Black</dc:creator>
		<pubDate>Tue, 29 Dec 2009 05:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-15291</guid>
		<description>Here is the second patch:

=== modified file 'administrator/components/com_cb_search/cb_search.config.php'
--- administrator/components/com_cb_search/cb_search.config.php	2009-08-19 22:32:36 +0000
+++ administrator/components/com_cb_search/cb_search.config.php	2009-08-29 03:18:37 +0000
@@ -2,7 +2,7 @@
 $cbsa_allow_adv_search = '1';
 $cbsa_allow_search_1 = '1';
 $cbsa_allow_search_2 = '1';
-$cbsa_birthday_fieldname = 'cb_birthday';
+$cbsa_birthday_fieldname = 'cb_age';
 $cbsa_comparision = '0';
 $cbsa_deactivate_allowaccess = '0';
 $cbsa_enable_age_search = '1';
@@ -19,4 +19,4 @@
 $cbsa_show_sql_error = '1';
 $cbsa_show_title = '1';
 $cbsa_upper_age_limit = '100';
-?&#62;
+?&#62;
\ No newline at end of file</description>
		<content:encoded><![CDATA[<p>Here is the second patch:</p>
<p>=== modified file &#8216;administrator/components/com_cb_search/cb_search.config.php&#8217;<br />
&#8212; administrator/components/com_cb_search/cb_search.config.php	2009-08-19 22:32:36 +0000<br />
+++ administrator/components/com_cb_search/cb_search.config.php	2009-08-29 03:18:37 +0000<br />
@@ -2,7 +2,7 @@<br />
 $cbsa_allow_adv_search = &#8216;1&#8242;;<br />
 $cbsa_allow_search_1 = &#8216;1&#8242;;<br />
 $cbsa_allow_search_2 = &#8216;1&#8242;;<br />
-$cbsa_birthday_fieldname = &#8216;cb_birthday&#8217;;<br />
+$cbsa_birthday_fieldname = &#8216;cb_age&#8217;;<br />
 $cbsa_comparision = &#8216;0&#8242;;<br />
 $cbsa_deactivate_allowaccess = &#8216;0&#8242;;<br />
 $cbsa_enable_age_search = &#8216;1&#8242;;<br />
@@ -19,4 +19,4 @@<br />
 $cbsa_show_sql_error = &#8216;1&#8242;;<br />
 $cbsa_show_title = &#8216;1&#8242;;<br />
 $cbsa_upper_age_limit = &#8216;100&#8242;;<br />
-?&gt;<br />
+?&gt;<br />
\ No newline at end of file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tech Admin</title>
		<link>http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-12952</link>
		<dc:creator>Tech Admin</dc:creator>
		<pubDate>Sun, 04 Oct 2009 14:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-12952</guid>
		<description>@Tim
thanks for the fix. others may need your fix. if you're kind enough to share your update here, i will be thankful.

as for me, i prefer a total refactoring which means rewriting the component from scratch. this component is just too old and a bit obsolete compared to current joomla version. if there is another fellow developer eager to jump in, i can allocate some spare time for the development.

@carmine.
i haven't checked this hack intensively with joomla 1.0.15. i (may or) will revisit this stuff again after i'm done with my other researches and some free time is there.
thanks for your comment, anyway.</description>
		<content:encoded><![CDATA[<p>@Tim<br />
thanks for the fix. others may need your fix. if you&#8217;re kind enough to share your update here, i will be thankful.</p>
<p>as for me, i prefer a total refactoring which means rewriting the component from scratch. this component is just too old and a bit obsolete compared to current joomla version. if there is another fellow developer eager to jump in, i can allocate some spare time for the development.</p>
<p>@carmine.<br />
i haven&#8217;t checked this hack intensively with joomla 1.0.15. i (may or) will revisit this stuff again after i&#8217;m done with my other researches and some free time is there.<br />
thanks for your comment, anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carmine</title>
		<link>http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-12739</link>
		<dc:creator>Carmine</dc:creator>
		<pubDate>Thu, 24 Sep 2009 15:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-12739</guid>
		<description>I'm testing Community Builder Advanced Search 2.0.4 with the latest 1.0.15 joommla version. All seems working fine the only problem is a popup window with the msg "Handler could not be removed". I've seen that someone has had a similar problem, but there is not the solution. Thanks in advance</description>
		<content:encoded><![CDATA[<p>I&#8217;m testing Community Builder Advanced Search 2.0.4 with the latest 1.0.15 joommla version. All seems working fine the only problem is a popup window with the msg &#8220;Handler could not be removed&#8221;. I&#8217;ve seen that someone has had a similar problem, but there is not the solution. Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Black</title>
		<link>http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-7297</link>
		<dc:creator>Tim Black</dc:creator>
		<pubDate>Fri, 10 Apr 2009 04:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-7297</guid>
		<description>Hm...the pagination links look vulnerable to an SQL injection attack.  Do you have any fixes for that vulnerability?

The pagination links also do not work on my site.  Perhaps that is because I'm running it on Joomla 1.5, but I sort of doubt that is the reason.  Any news on getting the pagination bugs fixed?

I've made some changes to the component to get it working, and to get it working with the gender/age range/photo search module.  Tech Admin, please email me if you like a diff or a copy of the code.</description>
		<content:encoded><![CDATA[<p>Hm&#8230;the pagination links look vulnerable to an SQL injection attack.  Do you have any fixes for that vulnerability?</p>
<p>The pagination links also do not work on my site.  Perhaps that is because I&#8217;m running it on Joomla 1.5, but I sort of doubt that is the reason.  Any news on getting the pagination bugs fixed?</p>
<p>I&#8217;ve made some changes to the component to get it working, and to get it working with the gender/age range/photo search module.  Tech Admin, please email me if you like a diff or a copy of the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-6521</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 11 Mar 2009 22:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-6521</guid>
		<description>@admin,

Here's what fixed the division by zero error for me:

[timblack1@web8 com_cb_search]$ bzr diff -r108..109 cb_search.class.php 
=== modified file 'administrator/components/com_cb_search/cb_search.class.php'
--- administrator/components/com_cb_search/cb_search.class.php	2008-07-05 03:58:46 +0000
+++ administrator/components/com_cb_search/cb_search.class.php	2009-02-09 19:40:26 +0000
@@ -759,6 +759,7 @@
    global $mosConfig_sef;
    $ret="";
 
+   if ($limit =='') $limit = 10; // fix by Tim Black 2-9-2009
    $searchword = mosGetParam( $_REQUEST, 'searchword', '' );
    $phrase     = mosGetParam( $_REQUEST, 'searchphrase', '' );
    $task = mosGetParam( $_REQUEST, 'task', '' );</description>
		<content:encoded><![CDATA[<p>@admin,</p>
<p>Here&#8217;s what fixed the division by zero error for me:</p>
<p>[timblack1@web8 com_cb_search]$ bzr diff -r108..109 cb_search.class.php<br />
=== modified file &#8216;administrator/components/com_cb_search/cb_search.class.php&#8217;<br />
&#8212; administrator/components/com_cb_search/cb_search.class.php	2008-07-05 03:58:46 +0000<br />
+++ administrator/components/com_cb_search/cb_search.class.php	2009-02-09 19:40:26 +0000<br />
@@ -759,6 +759,7 @@<br />
    global $mosConfig_sef;<br />
    $ret=&#8221;";</p>
<p>+   if ($limit ==&#8221;) $limit = 10; // fix by Tim Black 2-9-2009<br />
    $searchword = mosGetParam( $_REQUEST, &#8217;searchword&#8217;, &#8221; );<br />
    $phrase     = mosGetParam( $_REQUEST, &#8217;searchphrase&#8217;, &#8221; );<br />
    $task = mosGetParam( $_REQUEST, &#8216;task&#8217;, &#8221; );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apollonios</title>
		<link>http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-4124</link>
		<dc:creator>apollonios</dc:creator>
		<pubDate>Sun, 09 Nov 2008 21:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/node-6/community-builder-advanced-search-search-by-age-interval-and-avatar-only-unofficial-hack/#comment-4124</guid>
		<description>The component works great! I have problem with pagination on results, is not working!</description>
		<content:encoded><![CDATA[<p>The component works great! I have problem with pagination on results, is not working!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
