Juergen Mainka
May 4, 2013, 05:55 PM
Hello Flynax team,
I recognized, that the "search by distance"-plugin doesn't work any more if you build the zip code field into a search form.
The routines and hooks works fine, but the in function modifySqlSelect there is a little bit trouble:
$code = $country_key ? $this -> county_iso[$country_key] : $config['sbd_default_country'];
$content_url = str_replace(array('{zip}', '{code}'), array(urldecode($zip), strtolower($code)), $this -> servers[0]);
$content = $reefless -> getPageContent($content_url);
$reefless -> loadClass('Json');
$content = $GLOBALS['rlJson'] -> decode($content);
The variable $content gets "null". The problem seems the function "getPageContent".
Any help?
Thx
I recognized, that the "search by distance"-plugin doesn't work any more if you build the zip code field into a search form.
The routines and hooks works fine, but the in function modifySqlSelect there is a little bit trouble:
$code = $country_key ? $this -> county_iso[$country_key] : $config['sbd_default_country'];
$content_url = str_replace(array('{zip}', '{code}'), array(urldecode($zip), strtolower($code)), $this -> servers[0]);
$content = $reefless -> getPageContent($content_url);
$reefless -> loadClass('Json');
$content = $GLOBALS['rlJson'] -> decode($content);
The variable $content gets "null". The problem seems the function "getPageContent".
Any help?
Thx